From 6d0f500c15aeb94528638e7dadd6c0d700a59af9 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 15 Apr 2024 20:03:10 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= 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 --- README.md | 2 +- .../logging/v2/ConfigServiceV2Grpc.java | 2760 ++++++--- .../logging/v2/LoggingServiceV2Grpc.java | 666 +- .../logging/v2/MetricsServiceV2Grpc.java | 816 +++ .../google/cloud/logging/v2/ConfigClient.java | 5514 ----------------- .../cloud/logging/v2/ConfigSettings.java | 628 -- .../cloud/logging/v2/LoggingClient.java | 1536 ----- .../cloud/logging/v2/LoggingSettings.java | 271 - .../cloud/logging/v2/MetricsClient.java | 1003 --- .../cloud/logging/v2/MetricsSettings.java | 238 - .../cloud/logging/v2/gapic_metadata.json | 165 - .../google/cloud/logging/v2/package-info.java | 84 - .../logging/v2/stub/ConfigServiceV2Stub.java | 268 - .../v2/stub/ConfigServiceV2StubSettings.java | 1594 ----- .../GrpcConfigServiceV2CallableFactory.java | 113 - .../v2/stub/GrpcConfigServiceV2Stub.java | 1198 ---- .../GrpcLoggingServiceV2CallableFactory.java | 113 - .../v2/stub/GrpcLoggingServiceV2Stub.java | 357 -- .../GrpcMetricsServiceV2CallableFactory.java | 113 - .../v2/stub/GrpcMetricsServiceV2Stub.java | 299 - .../logging/v2/stub/LoggingServiceV2Stub.java | 95 - .../v2/stub/LoggingServiceV2StubSettings.java | 771 --- .../logging/v2/stub/MetricsServiceV2Stub.java | 69 - .../v2/stub/MetricsServiceV2StubSettings.java | 488 -- .../reflect-config.json | 3116 ---------- .../cloud/logging/v2/ConfigClientTest.java | 3269 ---------- .../cloud/logging/v2/LoggingClientTest.java | 656 -- .../cloud/logging/v2/MetricsClientTest.java | 550 -- .../cloud/logging/v2/MockConfigServiceV2.java | 59 - .../logging/v2/MockConfigServiceV2Impl.java | 762 --- .../logging/v2/MockLoggingServiceV2.java | 59 - .../logging/v2/MockLoggingServiceV2Impl.java | 213 - .../logging/v2/MockMetricsServiceV2.java | 59 - .../logging/v2/MockMetricsServiceV2Impl.java | 173 - .../logging/v2/MetricsServiceV2Grpc.java | 667 -- .../v2/CopyLogEntriesResponseOrBuilder.java | 20 - .../v2/DeleteLogMetricRequestOrBuilder.java | 34 - .../v2/GetLogMetricRequestOrBuilder.java | 34 - .../logging/v2/GetViewRequestOrBuilder.java | 42 - .../logging/v2/LocationMetadataOrBuilder.java | 21 - .../com/google/logging/v2/LogEntryProto.java | 157 - .../google/logging/v2/LoggingConfigProto.java | 1156 ---- .../logging/v2/LoggingMetricsProto.java | 224 - .../com/google/logging/v2/LoggingProto.java | 333 - .../v2/WriteLogEntriesResponseOrBuilder.java | 10 - .../google/logging/v2/BigQueryDataset.java | 308 +- .../logging/v2/BigQueryDatasetOrBuilder.java | 27 +- .../google/logging/v2/BigQueryOptions.java | 327 +- .../logging/v2/BigQueryOptionsOrBuilder.java | 27 +- .../v2/BillingAccountLocationName.java | 0 .../google/logging/v2/BillingAccountName.java | 0 .../com/google/logging/v2/BucketMetadata.java | 673 +- .../logging/v2/BucketMetadataOrBuilder.java | 56 +- .../com/google/logging/v2/CmekSettings.java | 521 +- .../google/logging/v2/CmekSettingsName.java | 116 +- .../logging/v2/CmekSettingsOrBuilder.java | 54 +- .../logging/v2/CopyLogEntriesMetadata.java | 689 +- .../v2/CopyLogEntriesMetadataOrBuilder.java | 63 +- .../logging/v2/CopyLogEntriesRequest.java | 456 +- .../v2/CopyLogEntriesRequestOrBuilder.java | 45 +- .../logging/v2/CopyLogEntriesResponse.java | 277 +- .../v2/CopyLogEntriesResponseOrBuilder.java | 39 + .../logging/v2/CreateBucketRequest.java | 521 +- .../v2/CreateBucketRequestOrBuilder.java | 52 +- .../logging/v2/CreateExclusionRequest.java | 481 +- .../v2/CreateExclusionRequestOrBuilder.java | 52 +- .../google/logging/v2/CreateLinkRequest.java | 490 +- .../v2/CreateLinkRequestOrBuilder.java | 52 +- .../logging/v2/CreateLogMetricRequest.java | 449 +- .../v2/CreateLogMetricRequestOrBuilder.java | 43 +- .../google/logging/v2/CreateSinkRequest.java | 453 +- .../v2/CreateSinkRequestOrBuilder.java | 46 +- .../google/logging/v2/CreateViewRequest.java | 463 +- .../v2/CreateViewRequestOrBuilder.java | 44 +- .../logging/v2/DeleteBucketRequest.java | 340 +- .../v2/DeleteBucketRequestOrBuilder.java | 35 +- .../logging/v2/DeleteExclusionRequest.java | 340 +- .../v2/DeleteExclusionRequestOrBuilder.java | 35 +- .../google/logging/v2/DeleteLinkRequest.java | 337 +- .../v2/DeleteLinkRequestOrBuilder.java | 35 +- .../logging/v2/DeleteLogMetricRequest.java | 340 +- .../v2/DeleteLogMetricRequestOrBuilder.java | 59 + .../google/logging/v2/DeleteLogRequest.java | 333 +- .../logging/v2/DeleteLogRequestOrBuilder.java | 35 +- .../google/logging/v2/DeleteSinkRequest.java | 337 +- .../v2/DeleteSinkRequestOrBuilder.java | 35 +- .../google/logging/v2/DeleteViewRequest.java | 337 +- .../v2/DeleteViewRequestOrBuilder.java | 35 +- .../google/logging/v2/FolderLocationName.java | 0 .../com/google/logging/v2/FolderName.java | 0 .../google/logging/v2/GetBucketRequest.java | 333 +- .../logging/v2/GetBucketRequestOrBuilder.java | 35 +- .../logging/v2/GetCmekSettingsRequest.java | 340 +- .../v2/GetCmekSettingsRequestOrBuilder.java | 35 +- .../logging/v2/GetExclusionRequest.java | 340 +- .../v2/GetExclusionRequestOrBuilder.java | 35 +- .../com/google/logging/v2/GetLinkRequest.java | 333 +- .../logging/v2/GetLinkRequestOrBuilder.java | 35 +- .../logging/v2/GetLogMetricRequest.java | 340 +- .../v2/GetLogMetricRequestOrBuilder.java | 59 + .../google/logging/v2/GetSettingsRequest.java | 337 +- .../v2/GetSettingsRequestOrBuilder.java | 35 +- .../com/google/logging/v2/GetSinkRequest.java | 333 +- .../logging/v2/GetSinkRequestOrBuilder.java | 35 +- .../com/google/logging/v2/GetViewRequest.java | 333 +- .../logging/v2/GetViewRequestOrBuilder.java | 67 + .../com/google/logging/v2/IndexConfig.java | 482 +- .../logging/v2/IndexConfigOrBuilder.java | 50 +- .../java/com/google/logging/v2/IndexType.java | 82 +- .../com/google/logging/v2/LifecycleState.java | 103 +- .../main/java/com/google/logging/v2/Link.java | 683 +- .../com/google/logging/v2/LinkMetadata.java | 673 +- .../logging/v2/LinkMetadataOrBuilder.java | 56 +- .../java/com/google/logging/v2/LinkName.java | 0 .../com/google/logging/v2/LinkOrBuilder.java | 75 +- .../google/logging/v2/ListBucketsRequest.java | 440 +- .../v2/ListBucketsRequestOrBuilder.java | 47 +- .../logging/v2/ListBucketsResponse.java | 474 +- .../v2/ListBucketsResponseOrBuilder.java | 46 +- .../logging/v2/ListExclusionsRequest.java | 443 +- .../v2/ListExclusionsRequestOrBuilder.java | 47 +- .../logging/v2/ListExclusionsResponse.java | 469 +- .../v2/ListExclusionsResponseOrBuilder.java | 45 +- .../google/logging/v2/ListLinksRequest.java | 436 +- .../logging/v2/ListLinksRequestOrBuilder.java | 47 +- .../google/logging/v2/ListLinksResponse.java | 474 +- .../v2/ListLinksResponseOrBuilder.java | 46 +- .../logging/v2/ListLogEntriesRequest.java | 649 +- .../v2/ListLogEntriesRequestOrBuilder.java | 82 +- .../logging/v2/ListLogEntriesResponse.java | 474 +- .../v2/ListLogEntriesResponseOrBuilder.java | 46 +- .../logging/v2/ListLogMetricsRequest.java | 443 +- .../v2/ListLogMetricsRequestOrBuilder.java | 47 +- .../logging/v2/ListLogMetricsResponse.java | 474 +- .../v2/ListLogMetricsResponseOrBuilder.java | 46 +- .../google/logging/v2/ListLogsRequest.java | 599 +- .../logging/v2/ListLogsRequestOrBuilder.java | 81 +- .../google/logging/v2/ListLogsResponse.java | 413 +- .../logging/v2/ListLogsResponseOrBuilder.java | 45 +- ...stMonitoredResourceDescriptorsRequest.java | 367 +- ...edResourceDescriptorsRequestOrBuilder.java | 30 +- ...tMonitoredResourceDescriptorsResponse.java | 486 +- ...dResourceDescriptorsResponseOrBuilder.java | 45 +- .../google/logging/v2/ListSinksRequest.java | 436 +- .../logging/v2/ListSinksRequestOrBuilder.java | 47 +- .../google/logging/v2/ListSinksResponse.java | 474 +- .../v2/ListSinksResponseOrBuilder.java | 46 +- .../google/logging/v2/ListViewsRequest.java | 408 +- .../logging/v2/ListViewsRequestOrBuilder.java | 39 +- .../google/logging/v2/ListViewsResponse.java | 474 +- .../v2/ListViewsResponseOrBuilder.java | 46 +- .../google/logging/v2/LocationMetadata.java | 270 +- .../logging/v2/LocationMetadataOrBuilder.java | 40 + .../com/google/logging/v2/LocationName.java | 0 .../java/com/google/logging/v2/LogBucket.java | 1184 ++-- .../com/google/logging/v2/LogBucketName.java | 0 .../google/logging/v2/LogBucketOrBuilder.java | 137 +- .../java/com/google/logging/v2/LogEntry.java | 2134 ++++--- .../google/logging/v2/LogEntryOperation.java | 449 +- .../v2/LogEntryOperationOrBuilder.java | 42 +- .../google/logging/v2/LogEntryOrBuilder.java | 249 +- .../com/google/logging/v2/LogEntryProto.java | 193 + .../logging/v2/LogEntrySourceLocation.java | 418 +- .../v2/LogEntrySourceLocationOrBuilder.java | 39 +- .../com/google/logging/v2/LogExclusion.java | 750 ++- .../google/logging/v2/LogExclusionName.java | 0 .../logging/v2/LogExclusionOrBuilder.java | 82 +- .../java/com/google/logging/v2/LogMetric.java | 1600 +++-- .../com/google/logging/v2/LogMetricName.java | 0 .../google/logging/v2/LogMetricOrBuilder.java | 205 +- .../java/com/google/logging/v2/LogName.java | 0 .../java/com/google/logging/v2/LogSink.java | 1559 +++-- .../com/google/logging/v2/LogSinkName.java | 0 .../google/logging/v2/LogSinkOrBuilder.java | 195 +- .../java/com/google/logging/v2/LogSplit.java | 361 +- .../google/logging/v2/LogSplitOrBuilder.java | 33 +- .../java/com/google/logging/v2/LogView.java | 710 ++- .../com/google/logging/v2/LogViewName.java | 0 .../google/logging/v2/LogViewOrBuilder.java | 79 +- .../google/logging/v2/LoggingConfigProto.java | 1250 ++++ .../logging/v2/LoggingMetricsProto.java | 257 + .../com/google/logging/v2/LoggingProto.java | 362 ++ .../com/google/logging/v2/OperationState.java | 110 +- .../logging/v2/OrganizationLocationName.java | 0 .../google/logging/v2/OrganizationName.java | 0 .../com/google/logging/v2/ProjectName.java | 0 .../java/com/google/logging/v2/Settings.java | 549 +- .../com/google/logging/v2/SettingsName.java | 0 .../google/logging/v2/SettingsOrBuilder.java | 57 +- .../logging/v2/TailLogEntriesRequest.java | 553 +- .../v2/TailLogEntriesRequestOrBuilder.java | 62 +- .../logging/v2/TailLogEntriesResponse.java | 1109 ++-- .../v2/TailLogEntriesResponseOrBuilder.java | 66 +- .../logging/v2/UndeleteBucketRequest.java | 340 +- .../v2/UndeleteBucketRequestOrBuilder.java | 35 +- .../logging/v2/UpdateBucketRequest.java | 574 +- .../v2/UpdateBucketRequestOrBuilder.java | 60 +- .../logging/v2/UpdateCmekSettingsRequest.java | 585 +- .../UpdateCmekSettingsRequestOrBuilder.java | 64 +- .../logging/v2/UpdateExclusionRequest.java | 606 +- .../v2/UpdateExclusionRequestOrBuilder.java | 69 +- .../logging/v2/UpdateLogMetricRequest.java | 449 +- .../v2/UpdateLogMetricRequestOrBuilder.java | 43 +- .../logging/v2/UpdateSettingsRequest.java | 555 +- .../v2/UpdateSettingsRequestOrBuilder.java | 61 +- .../google/logging/v2/UpdateSinkRequest.java | 578 +- .../v2/UpdateSinkRequestOrBuilder.java | 63 +- .../google/logging/v2/UpdateViewRequest.java | 516 +- .../v2/UpdateViewRequestOrBuilder.java | 52 +- .../v2/WriteLogEntriesPartialErrors.java | 472 +- ...WriteLogEntriesPartialErrorsOrBuilder.java | 48 +- .../logging/v2/WriteLogEntriesRequest.java | 1030 +-- .../v2/WriteLogEntriesRequestOrBuilder.java | 127 +- .../logging/v2/WriteLogEntriesResponse.java | 238 +- .../v2/WriteLogEntriesResponseOrBuilder.java | 25 + .../proto/google/logging/v2/log_entry.proto | 0 .../proto/google/logging/v2/logging.proto | 0 .../google/logging/v2/logging_config.proto | 0 .../google/logging/v2/logging_metrics.proto | 0 219 files changed, 32815 insertions(+), 43651 deletions(-) rename {owl-bot-staging/v2/grpc-google-cloud-logging-v2 => grpc-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java (52%) rename {owl-bot-staging/v2/grpc-google-cloud-logging-v2 => grpc-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java (50%) create mode 100644 grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/resources/META-INF/native-image/com.google.cloud.logging.v2/reflect-config.json delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2.java delete mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java delete mode 100644 owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java delete mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BigQueryDataset.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BigQueryOptions.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BillingAccountLocationName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BillingAccountName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BucketMetadata.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java (81%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CmekSettings.java (80%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CmekSettingsName.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java (87%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java (80%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java (64%) create mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateBucketRequest.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateExclusionRequest.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java (63%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateLinkRequest.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java (62%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateSinkRequest.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateViewRequest.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteBucketRequest.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java (59%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteLinkRequest.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java (58%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java (62%) create mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteLogRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java (60%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteSinkRequest.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteViewRequest.java (64%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java (50%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/FolderLocationName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/FolderName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetBucketRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java (59%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java (62%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetExclusionRequest.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java (56%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetLinkRequest.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java (57%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetLogMetricRequest.java (62%) create mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetSettingsRequest.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java (63%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetSinkRequest.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java (53%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetViewRequest.java (64%) create mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/IndexConfig.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java (75%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/IndexType.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LifecycleState.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/Link.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LinkMetadata.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java (80%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LinkName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LinkOrBuilder.java (78%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListBucketsRequest.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListBucketsResponse.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListExclusionsRequest.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListExclusionsResponse.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLinksRequest.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLinksResponse.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java (77%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java (82%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java (76%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java (78%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java (64%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogsRequest.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java (75%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogsResponse.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListSinksRequest.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListSinksResponse.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListViewsRequest.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListViewsResponse.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LocationMetadata.java (65%) create mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LocationName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogBucket.java (75%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogBucketName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java (83%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntry.java (76%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntryOperation.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java (87%) create mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogExclusion.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogExclusionName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java (80%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogMetric.java (75%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogMetricName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java (85%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogSink.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogSinkName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java (78%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogSplit.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogView.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogViewName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogViewOrBuilder.java (74%) create mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java create mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java create mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/OperationState.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/OrganizationLocationName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/OrganizationName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ProjectName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/Settings.java (79%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/SettingsName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/SettingsOrBuilder.java (86%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java (77%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java (85%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java (79%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java (59%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateBucketRequest.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java (76%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java (76%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java (75%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java (67%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java (63%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java (78%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateSinkRequest.java (77%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java (82%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateViewRequest.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java (79%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java (79%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java (85%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java (62%) create mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/proto/google/logging/v2/log_entry.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/proto/google/logging/v2/logging.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/proto/google/logging/v2/logging_config.proto (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/proto/google/logging/v2/logging_metrics.proto (100%) diff --git a/README.md b/README.md index 05845312b..995310fc1 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.34.0') +implementation platform('com.google.cloud:libraries-bom:26.37.0') implementation 'com.google.cloud:google-cloud-logging' ``` diff --git a/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java similarity index 52% rename from owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java rename to grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java index 2f08027e5..afdf98a8d 100644 --- a/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java +++ b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java @@ -1,8 +1,25 @@ +/* + * 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.logging.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * Service for configuring sinks used to route log entries.
  * 
@@ -18,1043 +35,1357 @@ private ConfigServiceV2Grpc() {} public static final java.lang.String SERVICE_NAME = "google.logging.v2.ConfigServiceV2"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListBucketsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.ListBucketsRequest, com.google.logging.v2.ListBucketsResponse> + getListBucketsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListBuckets", requestType = com.google.logging.v2.ListBucketsRequest.class, responseType = com.google.logging.v2.ListBucketsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListBucketsMethod() { - io.grpc.MethodDescriptor getListBucketsMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.ListBucketsRequest, com.google.logging.v2.ListBucketsResponse> + getListBucketsMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.ListBucketsRequest, com.google.logging.v2.ListBucketsResponse> + getListBucketsMethod; if ((getListBucketsMethod = ConfigServiceV2Grpc.getListBucketsMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getListBucketsMethod = ConfigServiceV2Grpc.getListBucketsMethod) == null) { - ConfigServiceV2Grpc.getListBucketsMethod = getListBucketsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBuckets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListBucketsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListBucketsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListBuckets")) - .build(); + ConfigServiceV2Grpc.getListBucketsMethod = + getListBucketsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBuckets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListBucketsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListBucketsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("ListBuckets")) + .build(); } } } return getListBucketsMethod; } - private static volatile io.grpc.MethodDescriptor getGetBucketMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.GetBucketRequest, com.google.logging.v2.LogBucket> + getGetBucketMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetBucket", requestType = com.google.logging.v2.GetBucketRequest.class, responseType = com.google.logging.v2.LogBucket.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBucketMethod() { - io.grpc.MethodDescriptor getGetBucketMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.GetBucketRequest, com.google.logging.v2.LogBucket> + getGetBucketMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.GetBucketRequest, com.google.logging.v2.LogBucket> + getGetBucketMethod; if ((getGetBucketMethod = ConfigServiceV2Grpc.getGetBucketMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getGetBucketMethod = ConfigServiceV2Grpc.getGetBucketMethod) == null) { - ConfigServiceV2Grpc.getGetBucketMethod = getGetBucketMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBucket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetBucketRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogBucket.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetBucket")) - .build(); + ConfigServiceV2Grpc.getGetBucketMethod = + getGetBucketMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBucket")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetBucketRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogBucket.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetBucket")) + .build(); } } } return getGetBucketMethod; } - private static volatile io.grpc.MethodDescriptor getCreateBucketAsyncMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation> + getCreateBucketAsyncMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateBucketAsync", requestType = com.google.logging.v2.CreateBucketRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateBucketAsyncMethod() { - io.grpc.MethodDescriptor getCreateBucketAsyncMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation> + getCreateBucketAsyncMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation> + getCreateBucketAsyncMethod; if ((getCreateBucketAsyncMethod = ConfigServiceV2Grpc.getCreateBucketAsyncMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getCreateBucketAsyncMethod = ConfigServiceV2Grpc.getCreateBucketAsyncMethod) == null) { - ConfigServiceV2Grpc.getCreateBucketAsyncMethod = getCreateBucketAsyncMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucketAsync")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CreateBucketRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("CreateBucketAsync")) - .build(); + ConfigServiceV2Grpc.getCreateBucketAsyncMethod = + getCreateBucketAsyncMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucketAsync")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateBucketRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("CreateBucketAsync")) + .build(); } } } return getCreateBucketAsyncMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateBucketAsyncMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation> + getUpdateBucketAsyncMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateBucketAsync", requestType = com.google.logging.v2.UpdateBucketRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateBucketAsyncMethod() { - io.grpc.MethodDescriptor getUpdateBucketAsyncMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation> + getUpdateBucketAsyncMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation> + getUpdateBucketAsyncMethod; if ((getUpdateBucketAsyncMethod = ConfigServiceV2Grpc.getUpdateBucketAsyncMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getUpdateBucketAsyncMethod = ConfigServiceV2Grpc.getUpdateBucketAsyncMethod) == null) { - ConfigServiceV2Grpc.getUpdateBucketAsyncMethod = getUpdateBucketAsyncMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucketAsync")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateBucketRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UpdateBucketAsync")) - .build(); + ConfigServiceV2Grpc.getUpdateBucketAsyncMethod = + getUpdateBucketAsyncMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucketAsync")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateBucketRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("UpdateBucketAsync")) + .build(); } } } return getUpdateBucketAsyncMethod; } - private static volatile io.grpc.MethodDescriptor getCreateBucketMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.LogBucket> + getCreateBucketMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateBucket", requestType = com.google.logging.v2.CreateBucketRequest.class, responseType = com.google.logging.v2.LogBucket.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateBucketMethod() { - io.grpc.MethodDescriptor getCreateBucketMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.LogBucket> + getCreateBucketMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.LogBucket> + getCreateBucketMethod; if ((getCreateBucketMethod = ConfigServiceV2Grpc.getCreateBucketMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getCreateBucketMethod = ConfigServiceV2Grpc.getCreateBucketMethod) == null) { - ConfigServiceV2Grpc.getCreateBucketMethod = getCreateBucketMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CreateBucketRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogBucket.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("CreateBucket")) - .build(); + ConfigServiceV2Grpc.getCreateBucketMethod = + getCreateBucketMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucket")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateBucketRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogBucket.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("CreateBucket")) + .build(); } } } return getCreateBucketMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateBucketMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.LogBucket> + getUpdateBucketMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateBucket", requestType = com.google.logging.v2.UpdateBucketRequest.class, responseType = com.google.logging.v2.LogBucket.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateBucketMethod() { - io.grpc.MethodDescriptor getUpdateBucketMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.LogBucket> + getUpdateBucketMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.LogBucket> + getUpdateBucketMethod; if ((getUpdateBucketMethod = ConfigServiceV2Grpc.getUpdateBucketMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getUpdateBucketMethod = ConfigServiceV2Grpc.getUpdateBucketMethod) == null) { - ConfigServiceV2Grpc.getUpdateBucketMethod = getUpdateBucketMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateBucketRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogBucket.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UpdateBucket")) - .build(); + ConfigServiceV2Grpc.getUpdateBucketMethod = + getUpdateBucketMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucket")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateBucketRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogBucket.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("UpdateBucket")) + .build(); } } } return getUpdateBucketMethod; } - private static volatile io.grpc.MethodDescriptor getDeleteBucketMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteBucketRequest, com.google.protobuf.Empty> + getDeleteBucketMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteBucket", requestType = com.google.logging.v2.DeleteBucketRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteBucketMethod() { - io.grpc.MethodDescriptor getDeleteBucketMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteBucketRequest, com.google.protobuf.Empty> + getDeleteBucketMethod() { + io.grpc.MethodDescriptor + getDeleteBucketMethod; if ((getDeleteBucketMethod = ConfigServiceV2Grpc.getDeleteBucketMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getDeleteBucketMethod = ConfigServiceV2Grpc.getDeleteBucketMethod) == null) { - ConfigServiceV2Grpc.getDeleteBucketMethod = getDeleteBucketMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBucket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.DeleteBucketRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("DeleteBucket")) - .build(); + ConfigServiceV2Grpc.getDeleteBucketMethod = + getDeleteBucketMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBucket")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteBucketRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("DeleteBucket")) + .build(); } } } return getDeleteBucketMethod; } - private static volatile io.grpc.MethodDescriptor getUndeleteBucketMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.UndeleteBucketRequest, com.google.protobuf.Empty> + getUndeleteBucketMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UndeleteBucket", requestType = com.google.logging.v2.UndeleteBucketRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUndeleteBucketMethod() { - io.grpc.MethodDescriptor getUndeleteBucketMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.UndeleteBucketRequest, com.google.protobuf.Empty> + getUndeleteBucketMethod() { + io.grpc.MethodDescriptor + getUndeleteBucketMethod; if ((getUndeleteBucketMethod = ConfigServiceV2Grpc.getUndeleteBucketMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getUndeleteBucketMethod = ConfigServiceV2Grpc.getUndeleteBucketMethod) == null) { - ConfigServiceV2Grpc.getUndeleteBucketMethod = getUndeleteBucketMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteBucket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UndeleteBucketRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UndeleteBucket")) - .build(); + ConfigServiceV2Grpc.getUndeleteBucketMethod = + getUndeleteBucketMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteBucket")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UndeleteBucketRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("UndeleteBucket")) + .build(); } } } return getUndeleteBucketMethod; } - private static volatile io.grpc.MethodDescriptor getListViewsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.ListViewsRequest, com.google.logging.v2.ListViewsResponse> + getListViewsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListViews", requestType = com.google.logging.v2.ListViewsRequest.class, responseType = com.google.logging.v2.ListViewsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListViewsMethod() { - io.grpc.MethodDescriptor getListViewsMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.ListViewsRequest, com.google.logging.v2.ListViewsResponse> + getListViewsMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.ListViewsRequest, com.google.logging.v2.ListViewsResponse> + getListViewsMethod; if ((getListViewsMethod = ConfigServiceV2Grpc.getListViewsMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getListViewsMethod = ConfigServiceV2Grpc.getListViewsMethod) == null) { - ConfigServiceV2Grpc.getListViewsMethod = getListViewsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListViews")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListViewsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListViewsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListViews")) - .build(); + ConfigServiceV2Grpc.getListViewsMethod = + getListViewsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListViews")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListViewsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListViewsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListViews")) + .build(); } } } return getListViewsMethod; } - private static volatile io.grpc.MethodDescriptor getGetViewMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.GetViewRequest, com.google.logging.v2.LogView> + getGetViewMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetView", requestType = com.google.logging.v2.GetViewRequest.class, responseType = com.google.logging.v2.LogView.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetViewMethod() { - io.grpc.MethodDescriptor getGetViewMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.GetViewRequest, com.google.logging.v2.LogView> + getGetViewMethod() { + io.grpc.MethodDescriptor + getGetViewMethod; if ((getGetViewMethod = ConfigServiceV2Grpc.getGetViewMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getGetViewMethod = ConfigServiceV2Grpc.getGetViewMethod) == null) { - ConfigServiceV2Grpc.getGetViewMethod = getGetViewMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetView")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetViewRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogView.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetView")) - .build(); + ConfigServiceV2Grpc.getGetViewMethod = + getGetViewMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetViewRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogView.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetView")) + .build(); } } } return getGetViewMethod; } - private static volatile io.grpc.MethodDescriptor getCreateViewMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.CreateViewRequest, com.google.logging.v2.LogView> + getCreateViewMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateView", requestType = com.google.logging.v2.CreateViewRequest.class, responseType = com.google.logging.v2.LogView.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateViewMethod() { - io.grpc.MethodDescriptor getCreateViewMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.CreateViewRequest, com.google.logging.v2.LogView> + getCreateViewMethod() { + io.grpc.MethodDescriptor + getCreateViewMethod; if ((getCreateViewMethod = ConfigServiceV2Grpc.getCreateViewMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getCreateViewMethod = ConfigServiceV2Grpc.getCreateViewMethod) == null) { - ConfigServiceV2Grpc.getCreateViewMethod = getCreateViewMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateView")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CreateViewRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogView.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("CreateView")) - .build(); + ConfigServiceV2Grpc.getCreateViewMethod = + getCreateViewMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateViewRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogView.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("CreateView")) + .build(); } } } return getCreateViewMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateViewMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateViewRequest, com.google.logging.v2.LogView> + getUpdateViewMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateView", requestType = com.google.logging.v2.UpdateViewRequest.class, responseType = com.google.logging.v2.LogView.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateViewMethod() { - io.grpc.MethodDescriptor getUpdateViewMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateViewRequest, com.google.logging.v2.LogView> + getUpdateViewMethod() { + io.grpc.MethodDescriptor + getUpdateViewMethod; if ((getUpdateViewMethod = ConfigServiceV2Grpc.getUpdateViewMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getUpdateViewMethod = ConfigServiceV2Grpc.getUpdateViewMethod) == null) { - ConfigServiceV2Grpc.getUpdateViewMethod = getUpdateViewMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateView")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateViewRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogView.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UpdateView")) - .build(); + ConfigServiceV2Grpc.getUpdateViewMethod = + getUpdateViewMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateViewRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogView.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("UpdateView")) + .build(); } } } return getUpdateViewMethod; } - private static volatile io.grpc.MethodDescriptor getDeleteViewMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteViewRequest, com.google.protobuf.Empty> + getDeleteViewMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteView", requestType = com.google.logging.v2.DeleteViewRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteViewMethod() { - io.grpc.MethodDescriptor getDeleteViewMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteViewRequest, com.google.protobuf.Empty> + getDeleteViewMethod() { + io.grpc.MethodDescriptor + getDeleteViewMethod; if ((getDeleteViewMethod = ConfigServiceV2Grpc.getDeleteViewMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getDeleteViewMethod = ConfigServiceV2Grpc.getDeleteViewMethod) == null) { - ConfigServiceV2Grpc.getDeleteViewMethod = getDeleteViewMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteView")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.DeleteViewRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("DeleteView")) - .build(); + ConfigServiceV2Grpc.getDeleteViewMethod = + getDeleteViewMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteView")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteViewRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("DeleteView")) + .build(); } } } return getDeleteViewMethod; } - private static volatile io.grpc.MethodDescriptor getListSinksMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.ListSinksRequest, com.google.logging.v2.ListSinksResponse> + getListSinksMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListSinks", requestType = com.google.logging.v2.ListSinksRequest.class, responseType = com.google.logging.v2.ListSinksResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSinksMethod() { - io.grpc.MethodDescriptor getListSinksMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.ListSinksRequest, com.google.logging.v2.ListSinksResponse> + getListSinksMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.ListSinksRequest, com.google.logging.v2.ListSinksResponse> + getListSinksMethod; if ((getListSinksMethod = ConfigServiceV2Grpc.getListSinksMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getListSinksMethod = ConfigServiceV2Grpc.getListSinksMethod) == null) { - ConfigServiceV2Grpc.getListSinksMethod = getListSinksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListSinksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListSinksResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListSinks")) - .build(); + ConfigServiceV2Grpc.getListSinksMethod = + getListSinksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSinks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListSinksRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListSinksResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListSinks")) + .build(); } } } return getListSinksMethod; } - private static volatile io.grpc.MethodDescriptor getGetSinkMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.GetSinkRequest, com.google.logging.v2.LogSink> + getGetSinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSink", requestType = com.google.logging.v2.GetSinkRequest.class, responseType = com.google.logging.v2.LogSink.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSinkMethod() { - io.grpc.MethodDescriptor getGetSinkMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.GetSinkRequest, com.google.logging.v2.LogSink> + getGetSinkMethod() { + io.grpc.MethodDescriptor + getGetSinkMethod; if ((getGetSinkMethod = ConfigServiceV2Grpc.getGetSinkMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getGetSinkMethod = ConfigServiceV2Grpc.getGetSinkMethod) == null) { - ConfigServiceV2Grpc.getGetSinkMethod = getGetSinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetSinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogSink.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetSink")) - .build(); + ConfigServiceV2Grpc.getGetSinkMethod = + getGetSinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetSinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogSink.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetSink")) + .build(); } } } return getGetSinkMethod; } - private static volatile io.grpc.MethodDescriptor getCreateSinkMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.CreateSinkRequest, com.google.logging.v2.LogSink> + getCreateSinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateSink", requestType = com.google.logging.v2.CreateSinkRequest.class, responseType = com.google.logging.v2.LogSink.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSinkMethod() { - io.grpc.MethodDescriptor getCreateSinkMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.CreateSinkRequest, com.google.logging.v2.LogSink> + getCreateSinkMethod() { + io.grpc.MethodDescriptor + getCreateSinkMethod; if ((getCreateSinkMethod = ConfigServiceV2Grpc.getCreateSinkMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getCreateSinkMethod = ConfigServiceV2Grpc.getCreateSinkMethod) == null) { - ConfigServiceV2Grpc.getCreateSinkMethod = getCreateSinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CreateSinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogSink.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("CreateSink")) - .build(); + ConfigServiceV2Grpc.getCreateSinkMethod = + getCreateSinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateSinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogSink.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("CreateSink")) + .build(); } } } return getCreateSinkMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateSinkMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateSinkRequest, com.google.logging.v2.LogSink> + getUpdateSinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateSink", requestType = com.google.logging.v2.UpdateSinkRequest.class, responseType = com.google.logging.v2.LogSink.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSinkMethod() { - io.grpc.MethodDescriptor getUpdateSinkMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateSinkRequest, com.google.logging.v2.LogSink> + getUpdateSinkMethod() { + io.grpc.MethodDescriptor + getUpdateSinkMethod; if ((getUpdateSinkMethod = ConfigServiceV2Grpc.getUpdateSinkMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getUpdateSinkMethod = ConfigServiceV2Grpc.getUpdateSinkMethod) == null) { - ConfigServiceV2Grpc.getUpdateSinkMethod = getUpdateSinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateSinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogSink.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UpdateSink")) - .build(); + ConfigServiceV2Grpc.getUpdateSinkMethod = + getUpdateSinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateSinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogSink.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("UpdateSink")) + .build(); } } } return getUpdateSinkMethod; } - private static volatile io.grpc.MethodDescriptor getDeleteSinkMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteSinkRequest, com.google.protobuf.Empty> + getDeleteSinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteSink", requestType = com.google.logging.v2.DeleteSinkRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSinkMethod() { - io.grpc.MethodDescriptor getDeleteSinkMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteSinkRequest, com.google.protobuf.Empty> + getDeleteSinkMethod() { + io.grpc.MethodDescriptor + getDeleteSinkMethod; if ((getDeleteSinkMethod = ConfigServiceV2Grpc.getDeleteSinkMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getDeleteSinkMethod = ConfigServiceV2Grpc.getDeleteSinkMethod) == null) { - ConfigServiceV2Grpc.getDeleteSinkMethod = getDeleteSinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.DeleteSinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("DeleteSink")) - .build(); + ConfigServiceV2Grpc.getDeleteSinkMethod = + getDeleteSinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteSinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("DeleteSink")) + .build(); } } } return getDeleteSinkMethod; } - private static volatile io.grpc.MethodDescriptor getCreateLinkMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation> + getCreateLinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateLink", requestType = com.google.logging.v2.CreateLinkRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateLinkMethod() { - io.grpc.MethodDescriptor getCreateLinkMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation> + getCreateLinkMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation> + getCreateLinkMethod; if ((getCreateLinkMethod = ConfigServiceV2Grpc.getCreateLinkMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getCreateLinkMethod = ConfigServiceV2Grpc.getCreateLinkMethod) == null) { - ConfigServiceV2Grpc.getCreateLinkMethod = getCreateLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CreateLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("CreateLink")) - .build(); + ConfigServiceV2Grpc.getCreateLinkMethod = + getCreateLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("CreateLink")) + .build(); } } } return getCreateLinkMethod; } - private static volatile io.grpc.MethodDescriptor getDeleteLinkMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation> + getDeleteLinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteLink", requestType = com.google.logging.v2.DeleteLinkRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteLinkMethod() { - io.grpc.MethodDescriptor getDeleteLinkMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation> + getDeleteLinkMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation> + getDeleteLinkMethod; if ((getDeleteLinkMethod = ConfigServiceV2Grpc.getDeleteLinkMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getDeleteLinkMethod = ConfigServiceV2Grpc.getDeleteLinkMethod) == null) { - ConfigServiceV2Grpc.getDeleteLinkMethod = getDeleteLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.DeleteLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("DeleteLink")) - .build(); + ConfigServiceV2Grpc.getDeleteLinkMethod = + getDeleteLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("DeleteLink")) + .build(); } } } return getDeleteLinkMethod; } - private static volatile io.grpc.MethodDescriptor getListLinksMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.ListLinksRequest, com.google.logging.v2.ListLinksResponse> + getListLinksMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListLinks", requestType = com.google.logging.v2.ListLinksRequest.class, responseType = com.google.logging.v2.ListLinksResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListLinksMethod() { - io.grpc.MethodDescriptor getListLinksMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.ListLinksRequest, com.google.logging.v2.ListLinksResponse> + getListLinksMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.ListLinksRequest, com.google.logging.v2.ListLinksResponse> + getListLinksMethod; if ((getListLinksMethod = ConfigServiceV2Grpc.getListLinksMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getListLinksMethod = ConfigServiceV2Grpc.getListLinksMethod) == null) { - ConfigServiceV2Grpc.getListLinksMethod = getListLinksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLinksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLinksResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListLinks")) - .build(); + ConfigServiceV2Grpc.getListLinksMethod = + getListLinksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLinks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLinksResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListLinks")) + .build(); } } } return getListLinksMethod; } - private static volatile io.grpc.MethodDescriptor getGetLinkMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.GetLinkRequest, com.google.logging.v2.Link> + getGetLinkMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetLink", requestType = com.google.logging.v2.GetLinkRequest.class, responseType = com.google.logging.v2.Link.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetLinkMethod() { - io.grpc.MethodDescriptor getGetLinkMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.GetLinkRequest, com.google.logging.v2.Link> + getGetLinkMethod() { + io.grpc.MethodDescriptor + getGetLinkMethod; if ((getGetLinkMethod = ConfigServiceV2Grpc.getGetLinkMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getGetLinkMethod = ConfigServiceV2Grpc.getGetLinkMethod) == null) { - ConfigServiceV2Grpc.getGetLinkMethod = getGetLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.Link.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetLink")) - .build(); + ConfigServiceV2Grpc.getGetLinkMethod = + getGetLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.Link.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetLink")) + .build(); } } } return getGetLinkMethod; } - private static volatile io.grpc.MethodDescriptor getListExclusionsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.ListExclusionsRequest, com.google.logging.v2.ListExclusionsResponse> + getListExclusionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListExclusions", requestType = com.google.logging.v2.ListExclusionsRequest.class, responseType = com.google.logging.v2.ListExclusionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListExclusionsMethod() { - io.grpc.MethodDescriptor getListExclusionsMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.ListExclusionsRequest, com.google.logging.v2.ListExclusionsResponse> + getListExclusionsMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.ListExclusionsRequest, + com.google.logging.v2.ListExclusionsResponse> + getListExclusionsMethod; if ((getListExclusionsMethod = ConfigServiceV2Grpc.getListExclusionsMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getListExclusionsMethod = ConfigServiceV2Grpc.getListExclusionsMethod) == null) { - ConfigServiceV2Grpc.getListExclusionsMethod = getListExclusionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExclusions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListExclusionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListExclusionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListExclusions")) - .build(); + ConfigServiceV2Grpc.getListExclusionsMethod = + getListExclusionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExclusions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListExclusionsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListExclusionsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("ListExclusions")) + .build(); } } } return getListExclusionsMethod; } - private static volatile io.grpc.MethodDescriptor getGetExclusionMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.GetExclusionRequest, com.google.logging.v2.LogExclusion> + getGetExclusionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetExclusion", requestType = com.google.logging.v2.GetExclusionRequest.class, responseType = com.google.logging.v2.LogExclusion.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetExclusionMethod() { - io.grpc.MethodDescriptor getGetExclusionMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.GetExclusionRequest, com.google.logging.v2.LogExclusion> + getGetExclusionMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.GetExclusionRequest, com.google.logging.v2.LogExclusion> + getGetExclusionMethod; if ((getGetExclusionMethod = ConfigServiceV2Grpc.getGetExclusionMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getGetExclusionMethod = ConfigServiceV2Grpc.getGetExclusionMethod) == null) { - ConfigServiceV2Grpc.getGetExclusionMethod = getGetExclusionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExclusion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetExclusionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogExclusion.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetExclusion")) - .build(); + ConfigServiceV2Grpc.getGetExclusionMethod = + getGetExclusionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExclusion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetExclusionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogExclusion.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("GetExclusion")) + .build(); } } } return getGetExclusionMethod; } - private static volatile io.grpc.MethodDescriptor getCreateExclusionMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.CreateExclusionRequest, com.google.logging.v2.LogExclusion> + getCreateExclusionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateExclusion", requestType = com.google.logging.v2.CreateExclusionRequest.class, responseType = com.google.logging.v2.LogExclusion.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateExclusionMethod() { - io.grpc.MethodDescriptor getCreateExclusionMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.CreateExclusionRequest, com.google.logging.v2.LogExclusion> + getCreateExclusionMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.CreateExclusionRequest, com.google.logging.v2.LogExclusion> + getCreateExclusionMethod; if ((getCreateExclusionMethod = ConfigServiceV2Grpc.getCreateExclusionMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getCreateExclusionMethod = ConfigServiceV2Grpc.getCreateExclusionMethod) == null) { - ConfigServiceV2Grpc.getCreateExclusionMethod = getCreateExclusionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExclusion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CreateExclusionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogExclusion.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("CreateExclusion")) - .build(); + ConfigServiceV2Grpc.getCreateExclusionMethod = + getCreateExclusionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExclusion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateExclusionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogExclusion.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("CreateExclusion")) + .build(); } } } return getCreateExclusionMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateExclusionMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateExclusionRequest, com.google.logging.v2.LogExclusion> + getUpdateExclusionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateExclusion", requestType = com.google.logging.v2.UpdateExclusionRequest.class, responseType = com.google.logging.v2.LogExclusion.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateExclusionMethod() { - io.grpc.MethodDescriptor getUpdateExclusionMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateExclusionRequest, com.google.logging.v2.LogExclusion> + getUpdateExclusionMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateExclusionRequest, com.google.logging.v2.LogExclusion> + getUpdateExclusionMethod; if ((getUpdateExclusionMethod = ConfigServiceV2Grpc.getUpdateExclusionMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getUpdateExclusionMethod = ConfigServiceV2Grpc.getUpdateExclusionMethod) == null) { - ConfigServiceV2Grpc.getUpdateExclusionMethod = getUpdateExclusionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateExclusion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateExclusionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogExclusion.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UpdateExclusion")) - .build(); + ConfigServiceV2Grpc.getUpdateExclusionMethod = + getUpdateExclusionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateExclusion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateExclusionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogExclusion.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("UpdateExclusion")) + .build(); } } } return getUpdateExclusionMethod; } - private static volatile io.grpc.MethodDescriptor getDeleteExclusionMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty> + getDeleteExclusionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteExclusion", requestType = com.google.logging.v2.DeleteExclusionRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteExclusionMethod() { - io.grpc.MethodDescriptor getDeleteExclusionMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty> + getDeleteExclusionMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty> + getDeleteExclusionMethod; if ((getDeleteExclusionMethod = ConfigServiceV2Grpc.getDeleteExclusionMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getDeleteExclusionMethod = ConfigServiceV2Grpc.getDeleteExclusionMethod) == null) { - ConfigServiceV2Grpc.getDeleteExclusionMethod = getDeleteExclusionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteExclusion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.DeleteExclusionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("DeleteExclusion")) - .build(); + ConfigServiceV2Grpc.getDeleteExclusionMethod = + getDeleteExclusionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteExclusion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteExclusionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("DeleteExclusion")) + .build(); } } } return getDeleteExclusionMethod; } - private static volatile io.grpc.MethodDescriptor getGetCmekSettingsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.GetCmekSettingsRequest, com.google.logging.v2.CmekSettings> + getGetCmekSettingsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetCmekSettings", requestType = com.google.logging.v2.GetCmekSettingsRequest.class, responseType = com.google.logging.v2.CmekSettings.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCmekSettingsMethod() { - io.grpc.MethodDescriptor getGetCmekSettingsMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.GetCmekSettingsRequest, com.google.logging.v2.CmekSettings> + getGetCmekSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.GetCmekSettingsRequest, com.google.logging.v2.CmekSettings> + getGetCmekSettingsMethod; if ((getGetCmekSettingsMethod = ConfigServiceV2Grpc.getGetCmekSettingsMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getGetCmekSettingsMethod = ConfigServiceV2Grpc.getGetCmekSettingsMethod) == null) { - ConfigServiceV2Grpc.getGetCmekSettingsMethod = getGetCmekSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCmekSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetCmekSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CmekSettings.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetCmekSettings")) - .build(); + ConfigServiceV2Grpc.getGetCmekSettingsMethod = + getGetCmekSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCmekSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetCmekSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CmekSettings.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("GetCmekSettings")) + .build(); } } } return getGetCmekSettingsMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateCmekSettingsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateCmekSettingsRequest, com.google.logging.v2.CmekSettings> + getUpdateCmekSettingsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateCmekSettings", requestType = com.google.logging.v2.UpdateCmekSettingsRequest.class, responseType = com.google.logging.v2.CmekSettings.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCmekSettingsMethod() { - io.grpc.MethodDescriptor getUpdateCmekSettingsMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateCmekSettingsRequest, com.google.logging.v2.CmekSettings> + getUpdateCmekSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateCmekSettingsRequest, com.google.logging.v2.CmekSettings> + getUpdateCmekSettingsMethod; if ((getUpdateCmekSettingsMethod = ConfigServiceV2Grpc.getUpdateCmekSettingsMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { - if ((getUpdateCmekSettingsMethod = ConfigServiceV2Grpc.getUpdateCmekSettingsMethod) == null) { - ConfigServiceV2Grpc.getUpdateCmekSettingsMethod = getUpdateCmekSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCmekSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateCmekSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CmekSettings.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UpdateCmekSettings")) - .build(); + if ((getUpdateCmekSettingsMethod = ConfigServiceV2Grpc.getUpdateCmekSettingsMethod) + == null) { + ConfigServiceV2Grpc.getUpdateCmekSettingsMethod = + getUpdateCmekSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCmekSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateCmekSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CmekSettings.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("UpdateCmekSettings")) + .build(); } } } return getUpdateCmekSettingsMethod; } - private static volatile io.grpc.MethodDescriptor getGetSettingsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings> + getGetSettingsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSettings", requestType = com.google.logging.v2.GetSettingsRequest.class, responseType = com.google.logging.v2.Settings.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSettingsMethod() { - io.grpc.MethodDescriptor getGetSettingsMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings> + getGetSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings> + getGetSettingsMethod; if ((getGetSettingsMethod = ConfigServiceV2Grpc.getGetSettingsMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getGetSettingsMethod = ConfigServiceV2Grpc.getGetSettingsMethod) == null) { - ConfigServiceV2Grpc.getGetSettingsMethod = getGetSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.Settings.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetSettings")) - .build(); + ConfigServiceV2Grpc.getGetSettingsMethod = + getGetSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.Settings.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("GetSettings")) + .build(); } } } return getGetSettingsMethod; } - private static volatile io.grpc.MethodDescriptor getUpdateSettingsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings> + getUpdateSettingsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateSettings", requestType = com.google.logging.v2.UpdateSettingsRequest.class, responseType = com.google.logging.v2.Settings.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSettingsMethod() { - io.grpc.MethodDescriptor getUpdateSettingsMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings> + getUpdateSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings> + getUpdateSettingsMethod; if ((getUpdateSettingsMethod = ConfigServiceV2Grpc.getUpdateSettingsMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getUpdateSettingsMethod = ConfigServiceV2Grpc.getUpdateSettingsMethod) == null) { - ConfigServiceV2Grpc.getUpdateSettingsMethod = getUpdateSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.Settings.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("UpdateSettings")) - .build(); + ConfigServiceV2Grpc.getUpdateSettingsMethod = + getUpdateSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.Settings.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("UpdateSettings")) + .build(); } } } return getUpdateSettingsMethod; } - private static volatile io.grpc.MethodDescriptor getCopyLogEntriesMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.CopyLogEntriesRequest, com.google.longrunning.Operation> + getCopyLogEntriesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CopyLogEntries", requestType = com.google.logging.v2.CopyLogEntriesRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCopyLogEntriesMethod() { - io.grpc.MethodDescriptor getCopyLogEntriesMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.CopyLogEntriesRequest, com.google.longrunning.Operation> + getCopyLogEntriesMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.CopyLogEntriesRequest, com.google.longrunning.Operation> + getCopyLogEntriesMethod; if ((getCopyLogEntriesMethod = ConfigServiceV2Grpc.getCopyLogEntriesMethod) == null) { synchronized (ConfigServiceV2Grpc.class) { if ((getCopyLogEntriesMethod = ConfigServiceV2Grpc.getCopyLogEntriesMethod) == null) { - ConfigServiceV2Grpc.getCopyLogEntriesMethod = getCopyLogEntriesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CopyLogEntries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("CopyLogEntries")) - .build(); + ConfigServiceV2Grpc.getCopyLogEntriesMethod = + getCopyLogEntriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CopyLogEntries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("CopyLogEntries")) + .build(); } } } return getCopyLogEntriesMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static ConfigServiceV2Stub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfigServiceV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfigServiceV2Stub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfigServiceV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfigServiceV2Stub(channel, callOptions); + } + }; return ConfigServiceV2Stub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static ConfigServiceV2BlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static ConfigServiceV2BlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfigServiceV2BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfigServiceV2BlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfigServiceV2BlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfigServiceV2BlockingStub(channel, callOptions); + } + }; return ConfigServiceV2BlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ConfigServiceV2FutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ConfigServiceV2FutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConfigServiceV2FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfigServiceV2FutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConfigServiceV2FutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfigServiceV2FutureStub(channel, callOptions); + } + }; return ConfigServiceV2FutureStub.newStub(factory, channel); } /** + * + * *
    * Service for configuring sinks used to route log entries.
    * 
@@ -1062,37 +1393,50 @@ public ConfigServiceV2FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOp public interface AsyncService { /** + * + * *
      * Lists log buckets.
      * 
*/ - default void listBuckets(com.google.logging.v2.ListBucketsRequest request, + default void listBuckets( + com.google.logging.v2.ListBucketsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBucketsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBucketsMethod(), responseObserver); } /** + * + * *
      * Gets a log bucket.
      * 
*/ - default void getBucket(com.google.logging.v2.GetBucketRequest request, + default void getBucket( + com.google.logging.v2.GetBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBucketMethod(), responseObserver); } /** + * + * *
      * Creates a log bucket asynchronously that can be used to store log entries.
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - default void createBucketAsync(com.google.logging.v2.CreateBucketRequest request, + default void createBucketAsync( + com.google.logging.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBucketAsyncMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBucketAsyncMethod(), responseObserver); } /** + * + * *
      * Updates a log bucket asynchronously.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -1100,23 +1444,31 @@ default void createBucketAsync(com.google.logging.v2.CreateBucketRequest request
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - default void updateBucketAsync(com.google.logging.v2.UpdateBucketRequest request, + default void updateBucketAsync( + com.google.logging.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBucketAsyncMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBucketAsyncMethod(), responseObserver); } /** + * + * *
      * Creates a log bucket that can be used to store log entries. After a bucket
      * has been created, the bucket's location cannot be changed.
      * 
*/ - default void createBucket(com.google.logging.v2.CreateBucketRequest request, + default void createBucket( + com.google.logging.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBucketMethod(), responseObserver); } /** + * + * *
      * Updates a log bucket.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -1124,12 +1476,16 @@ default void createBucket(com.google.logging.v2.CreateBucketRequest request,
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - default void updateBucket(com.google.logging.v2.UpdateBucketRequest request, + default void updateBucket( + com.google.logging.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBucketMethod(), responseObserver); } /** + * + * *
      * Deletes a log bucket.
      * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state.
@@ -1137,54 +1493,71 @@ default void updateBucket(com.google.logging.v2.UpdateBucketRequest request,
      * will be permanently deleted.
      * 
*/ - default void deleteBucket(com.google.logging.v2.DeleteBucketRequest request, + default void deleteBucket( + com.google.logging.v2.DeleteBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBucketMethod(), responseObserver); } /** + * + * *
      * Undeletes a log bucket. A bucket that has been deleted can be undeleted
      * within the grace period of 7 days.
      * 
*/ - default void undeleteBucket(com.google.logging.v2.UndeleteBucketRequest request, + default void undeleteBucket( + com.google.logging.v2.UndeleteBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeleteBucketMethod(), responseObserver); } /** + * + * *
      * Lists views on a log bucket.
      * 
*/ - default void listViews(com.google.logging.v2.ListViewsRequest request, + default void listViews( + com.google.logging.v2.ListViewsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListViewsMethod(), responseObserver); } /** + * + * *
      * Gets a view on a log bucket..
      * 
*/ - default void getView(com.google.logging.v2.GetViewRequest request, + default void getView( + com.google.logging.v2.GetViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetViewMethod(), responseObserver); } /** + * + * *
      * Creates a view over log entries in a log bucket. A bucket may contain a
      * maximum of 30 views.
      * 
*/ - default void createView(com.google.logging.v2.CreateViewRequest request, + default void createView( + com.google.logging.v2.CreateViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateViewMethod(), responseObserver); } /** + * + * *
      * Updates a view on a log bucket. This method replaces the following fields
      * in the existing view with values from the new view: `filter`.
@@ -1193,12 +1566,15 @@ default void createView(com.google.logging.v2.CreateViewRequest request,
      * few minutes.
      * 
*/ - default void updateView(com.google.logging.v2.UpdateViewRequest request, + default void updateView( + com.google.logging.v2.UpdateViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateViewMethod(), responseObserver); } /** + * + * *
      * Deletes a view on a log bucket.
      * If an `UNAVAILABLE` error is returned, this indicates that system is not in
@@ -1206,32 +1582,41 @@ default void updateView(com.google.logging.v2.UpdateViewRequest request,
      * few minutes.
      * 
*/ - default void deleteView(com.google.logging.v2.DeleteViewRequest request, + default void deleteView( + com.google.logging.v2.DeleteViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteViewMethod(), responseObserver); } /** + * + * *
      * Lists sinks.
      * 
*/ - default void listSinks(com.google.logging.v2.ListSinksRequest request, + default void listSinks( + com.google.logging.v2.ListSinksRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSinksMethod(), responseObserver); } /** + * + * *
      * Gets a sink.
      * 
*/ - default void getSink(com.google.logging.v2.GetSinkRequest request, + default void getSink( + com.google.logging.v2.GetSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSinkMethod(), responseObserver); } /** + * + * *
      * Creates a sink that exports specified log entries to a destination. The
      * export of newly-ingested log entries begins immediately, unless the sink's
@@ -1239,12 +1624,15 @@ default void getSink(com.google.logging.v2.GetSinkRequest request,
      * export log entries only from the resource owning the sink.
      * 
*/ - default void createSink(com.google.logging.v2.CreateSinkRequest request, + default void createSink( + com.google.logging.v2.CreateSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSinkMethod(), responseObserver); } /** + * + * *
      * Updates a sink. This method replaces the following fields in the existing
      * sink with values from the new sink: `destination`, and `filter`.
@@ -1252,119 +1640,158 @@ default void createSink(com.google.logging.v2.CreateSinkRequest request,
      * `unique_writer_identity` field.
      * 
*/ - default void updateSink(com.google.logging.v2.UpdateSinkRequest request, + default void updateSink( + com.google.logging.v2.UpdateSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSinkMethod(), responseObserver); } /** + * + * *
      * Deletes a sink. If the sink has a unique `writer_identity`, then that
      * service account is also deleted.
      * 
*/ - default void deleteSink(com.google.logging.v2.DeleteSinkRequest request, + default void deleteSink( + com.google.logging.v2.DeleteSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSinkMethod(), responseObserver); } /** + * + * *
      * Asynchronously creates a linked dataset in BigQuery which makes it possible
      * to use BigQuery to read the logs stored in the log bucket. A log bucket may
      * currently only contain one link.
      * 
*/ - default void createLink(com.google.logging.v2.CreateLinkRequest request, + default void createLink( + com.google.logging.v2.CreateLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateLinkMethod(), responseObserver); } /** + * + * *
      * Deletes a link. This will also delete the corresponding BigQuery linked
      * dataset.
      * 
*/ - default void deleteLink(com.google.logging.v2.DeleteLinkRequest request, + default void deleteLink( + com.google.logging.v2.DeleteLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteLinkMethod(), responseObserver); } /** + * + * *
      * Lists links.
      * 
*/ - default void listLinks(com.google.logging.v2.ListLinksRequest request, + default void listLinks( + com.google.logging.v2.ListLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLinksMethod(), responseObserver); } /** + * + * *
      * Gets a link.
      * 
*/ - default void getLink(com.google.logging.v2.GetLinkRequest request, + default void getLink( + com.google.logging.v2.GetLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLinkMethod(), responseObserver); } /** + * + * *
      * Lists all the exclusions on the _Default sink in a parent resource.
      * 
*/ - default void listExclusions(com.google.logging.v2.ListExclusionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListExclusionsMethod(), responseObserver); + default void listExclusions( + com.google.logging.v2.ListExclusionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExclusionsMethod(), responseObserver); } /** + * + * *
      * Gets the description of an exclusion in the _Default sink.
      * 
*/ - default void getExclusion(com.google.logging.v2.GetExclusionRequest request, + default void getExclusion( + com.google.logging.v2.GetExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExclusionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetExclusionMethod(), responseObserver); } /** + * + * *
      * Creates a new exclusion in the _Default sink in a specified parent
      * resource. Only log entries belonging to that resource can be excluded. You
      * can have up to 10 exclusions in a resource.
      * 
*/ - default void createExclusion(com.google.logging.v2.CreateExclusionRequest request, + default void createExclusion( + com.google.logging.v2.CreateExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateExclusionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateExclusionMethod(), responseObserver); } /** + * + * *
      * Changes one or more properties of an existing exclusion in the _Default
      * sink.
      * 
*/ - default void updateExclusion(com.google.logging.v2.UpdateExclusionRequest request, + default void updateExclusion( + com.google.logging.v2.UpdateExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateExclusionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateExclusionMethod(), responseObserver); } /** + * + * *
      * Deletes an exclusion in the _Default sink.
      * 
*/ - default void deleteExclusion(com.google.logging.v2.DeleteExclusionRequest request, + default void deleteExclusion( + com.google.logging.v2.DeleteExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteExclusionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteExclusionMethod(), responseObserver); } /** + * + * *
      * Gets the Logging CMEK settings for the given resource.
      * Note: CMEK for the Log Router can be configured for Google Cloud projects,
@@ -1376,12 +1803,16 @@ default void deleteExclusion(com.google.logging.v2.DeleteExclusionRequest reques
      * for more information.
      * 
*/ - default void getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request, + default void getCmekSettings( + com.google.logging.v2.GetCmekSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCmekSettingsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCmekSettingsMethod(), responseObserver); } /** + * + * *
      * Updates the Log Router CMEK settings for the given resource.
      * Note: CMEK for the Log Router can currently only be configured for Google
@@ -1397,12 +1828,16 @@ default void getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest reques
      * for more information.
      * 
*/ - default void updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest request, + default void updateCmekSettings( + com.google.logging.v2.UpdateCmekSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCmekSettingsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCmekSettingsMethod(), responseObserver); } /** + * + * *
      * Gets the Log Router settings for the given resource.
      * Note: Settings for the Log Router can be get for Google Cloud projects,
@@ -1414,12 +1849,16 @@ default void updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest
      * for more information.
      * 
*/ - default void getSettings(com.google.logging.v2.GetSettingsRequest request, + default void getSettings( + com.google.logging.v2.GetSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSettingsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSettingsMethod(), responseObserver); } /** + * + * *
      * Updates the Log Router settings for the given resource.
      * Note: Settings for the Log Router can currently only be configured for
@@ -1436,90 +1875,112 @@ default void getSettings(com.google.logging.v2.GetSettingsRequest request,
      * for more information.
      * 
*/ - default void updateSettings(com.google.logging.v2.UpdateSettingsRequest request, + default void updateSettings( + com.google.logging.v2.UpdateSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSettingsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSettingsMethod(), responseObserver); } /** + * + * *
      * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
      * 
*/ - default void copyLogEntries(com.google.logging.v2.CopyLogEntriesRequest request, + default void copyLogEntries( + com.google.logging.v2.CopyLogEntriesRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCopyLogEntriesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCopyLogEntriesMethod(), responseObserver); } } /** * Base class for the server implementation of the service ConfigServiceV2. + * *
    * Service for configuring sinks used to route log entries.
    * 
*/ - public static abstract class ConfigServiceV2ImplBase + public abstract static class ConfigServiceV2ImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return ConfigServiceV2Grpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service ConfigServiceV2. + * *
    * Service for configuring sinks used to route log entries.
    * 
*/ public static final class ConfigServiceV2Stub extends io.grpc.stub.AbstractAsyncStub { - private ConfigServiceV2Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private ConfigServiceV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected ConfigServiceV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected ConfigServiceV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConfigServiceV2Stub(channel, callOptions); } /** + * + * *
      * Lists log buckets.
      * 
*/ - public void listBuckets(com.google.logging.v2.ListBucketsRequest request, + public void listBuckets( + com.google.logging.v2.ListBucketsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBucketsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListBucketsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets a log bucket.
      * 
*/ - public void getBucket(com.google.logging.v2.GetBucketRequest request, + public void getBucket( + com.google.logging.v2.GetBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetBucketMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Creates a log bucket asynchronously that can be used to store log entries.
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public void createBucketAsync(com.google.logging.v2.CreateBucketRequest request, + public void createBucketAsync( + com.google.logging.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBucketAsyncMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateBucketAsyncMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates a log bucket asynchronously.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -1527,25 +1988,35 @@ public void createBucketAsync(com.google.logging.v2.CreateBucketRequest request,
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public void updateBucketAsync(com.google.logging.v2.UpdateBucketRequest request, + public void updateBucketAsync( + com.google.logging.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBucketAsyncMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateBucketAsyncMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates a log bucket that can be used to store log entries. After a bucket
      * has been created, the bucket's location cannot be changed.
      * 
*/ - public void createBucket(com.google.logging.v2.CreateBucketRequest request, + public void createBucket( + com.google.logging.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateBucketMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateBucketMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates a log bucket.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -1553,13 +2024,18 @@ public void createBucket(com.google.logging.v2.CreateBucketRequest request,
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public void updateBucket(com.google.logging.v2.UpdateBucketRequest request, + public void updateBucket( + com.google.logging.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes a log bucket.
      * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state.
@@ -1567,59 +2043,78 @@ public void updateBucket(com.google.logging.v2.UpdateBucketRequest request,
      * will be permanently deleted.
      * 
*/ - public void deleteBucket(com.google.logging.v2.DeleteBucketRequest request, + public void deleteBucket( + com.google.logging.v2.DeleteBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteBucketMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteBucketMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Undeletes a log bucket. A bucket that has been deleted can be undeleted
      * within the grace period of 7 days.
      * 
*/ - public void undeleteBucket(com.google.logging.v2.UndeleteBucketRequest request, + public void undeleteBucket( + com.google.logging.v2.UndeleteBucketRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeleteBucketMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUndeleteBucketMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists views on a log bucket.
      * 
*/ - public void listViews(com.google.logging.v2.ListViewsRequest request, + public void listViews( + com.google.logging.v2.ListViewsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListViewsMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Gets a view on a log bucket..
      * 
*/ - public void getView(com.google.logging.v2.GetViewRequest request, + public void getView( + com.google.logging.v2.GetViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetViewMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Creates a view over log entries in a log bucket. A bucket may contain a
      * maximum of 30 views.
      * 
*/ - public void createView(com.google.logging.v2.CreateViewRequest request, + public void createView( + com.google.logging.v2.CreateViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateViewMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Updates a view on a log bucket. This method replaces the following fields
      * in the existing view with values from the new view: `filter`.
@@ -1628,13 +2123,16 @@ public void createView(com.google.logging.v2.CreateViewRequest request,
      * few minutes.
      * 
*/ - public void updateView(com.google.logging.v2.UpdateViewRequest request, + public void updateView( + com.google.logging.v2.UpdateViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateViewMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Deletes a view on a log bucket.
      * If an `UNAVAILABLE` error is returned, this indicates that system is not in
@@ -1642,35 +2140,44 @@ public void updateView(com.google.logging.v2.UpdateViewRequest request,
      * few minutes.
      * 
*/ - public void deleteView(com.google.logging.v2.DeleteViewRequest request, + public void deleteView( + com.google.logging.v2.DeleteViewRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteViewMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Lists sinks.
      * 
*/ - public void listSinks(com.google.logging.v2.ListSinksRequest request, + public void listSinks( + com.google.logging.v2.ListSinksRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSinksMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Gets a sink.
      * 
*/ - public void getSink(com.google.logging.v2.GetSinkRequest request, + public void getSink( + com.google.logging.v2.GetSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSinkMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Creates a sink that exports specified log entries to a destination. The
      * export of newly-ingested log entries begins immediately, unless the sink's
@@ -1678,13 +2185,16 @@ public void getSink(com.google.logging.v2.GetSinkRequest request,
      * export log entries only from the resource owning the sink.
      * 
*/ - public void createSink(com.google.logging.v2.CreateSinkRequest request, + public void createSink( + com.google.logging.v2.CreateSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateSinkMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Updates a sink. This method replaces the following fields in the existing
      * sink with values from the new sink: `destination`, and `filter`.
@@ -1692,130 +2202,174 @@ public void createSink(com.google.logging.v2.CreateSinkRequest request,
      * `unique_writer_identity` field.
      * 
*/ - public void updateSink(com.google.logging.v2.UpdateSinkRequest request, + public void updateSink( + com.google.logging.v2.UpdateSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateSinkMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Deletes a sink. If the sink has a unique `writer_identity`, then that
      * service account is also deleted.
      * 
*/ - public void deleteSink(com.google.logging.v2.DeleteSinkRequest request, + public void deleteSink( + com.google.logging.v2.DeleteSinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteSinkMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Asynchronously creates a linked dataset in BigQuery which makes it possible
      * to use BigQuery to read the logs stored in the log bucket. A log bucket may
      * currently only contain one link.
      * 
*/ - public void createLink(com.google.logging.v2.CreateLinkRequest request, + public void createLink( + com.google.logging.v2.CreateLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateLinkMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Deletes a link. This will also delete the corresponding BigQuery linked
      * dataset.
      * 
*/ - public void deleteLink(com.google.logging.v2.DeleteLinkRequest request, + public void deleteLink( + com.google.logging.v2.DeleteLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteLinkMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Lists links.
      * 
*/ - public void listLinks(com.google.logging.v2.ListLinksRequest request, + public void listLinks( + com.google.logging.v2.ListLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListLinksMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Gets a link.
      * 
*/ - public void getLink(com.google.logging.v2.GetLinkRequest request, + public void getLink( + com.google.logging.v2.GetLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetLinkMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Lists all the exclusions on the _Default sink in a parent resource.
      * 
*/ - public void listExclusions(com.google.logging.v2.ListExclusionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listExclusions( + com.google.logging.v2.ListExclusionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListExclusionsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListExclusionsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the description of an exclusion in the _Default sink.
      * 
*/ - public void getExclusion(com.google.logging.v2.GetExclusionRequest request, + public void getExclusion( + com.google.logging.v2.GetExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetExclusionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetExclusionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Creates a new exclusion in the _Default sink in a specified parent
      * resource. Only log entries belonging to that resource can be excluded. You
      * can have up to 10 exclusions in a resource.
      * 
*/ - public void createExclusion(com.google.logging.v2.CreateExclusionRequest request, + public void createExclusion( + com.google.logging.v2.CreateExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateExclusionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateExclusionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Changes one or more properties of an existing exclusion in the _Default
      * sink.
      * 
*/ - public void updateExclusion(com.google.logging.v2.UpdateExclusionRequest request, + public void updateExclusion( + com.google.logging.v2.UpdateExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateExclusionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateExclusionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Deletes an exclusion in the _Default sink.
      * 
*/ - public void deleteExclusion(com.google.logging.v2.DeleteExclusionRequest request, + public void deleteExclusion( + com.google.logging.v2.DeleteExclusionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteExclusionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getDeleteExclusionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the Logging CMEK settings for the given resource.
      * Note: CMEK for the Log Router can be configured for Google Cloud projects,
@@ -1827,13 +2381,18 @@ public void deleteExclusion(com.google.logging.v2.DeleteExclusionRequest request
      * for more information.
      * 
*/ - public void getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request, + public void getCmekSettings( + com.google.logging.v2.GetCmekSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCmekSettingsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetCmekSettingsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates the Log Router CMEK settings for the given resource.
      * Note: CMEK for the Log Router can currently only be configured for Google
@@ -1849,13 +2408,18 @@ public void getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request
      * for more information.
      * 
*/ - public void updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest request, + public void updateCmekSettings( + com.google.logging.v2.UpdateCmekSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCmekSettingsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateCmekSettingsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Gets the Log Router settings for the given resource.
      * Note: Settings for the Log Router can be get for Google Cloud projects,
@@ -1867,13 +2431,18 @@ public void updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest r
      * for more information.
      * 
*/ - public void getSettings(com.google.logging.v2.GetSettingsRequest request, + public void getSettings( + com.google.logging.v2.GetSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSettingsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetSettingsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Updates the Log Router settings for the given resource.
      * Note: Settings for the Log Router can currently only be configured for
@@ -1890,34 +2459,42 @@ public void getSettings(com.google.logging.v2.GetSettingsRequest request,
      * for more information.
      * 
*/ - public void updateSettings(com.google.logging.v2.UpdateSettingsRequest request, + public void updateSettings( + com.google.logging.v2.UpdateSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSettingsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateSettingsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
      * 
*/ - public void copyLogEntries(com.google.logging.v2.CopyLogEntriesRequest request, + public void copyLogEntries( + com.google.logging.v2.CopyLogEntriesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCopyLogEntriesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCopyLogEntriesMethod(), getCallOptions()), + request, + responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service ConfigServiceV2. + * *
    * Service for configuring sinks used to route log entries.
    * 
*/ public static final class ConfigServiceV2BlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ConfigServiceV2BlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private ConfigServiceV2BlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1928,37 +2505,48 @@ protected ConfigServiceV2BlockingStub build( } /** + * + * *
      * Lists log buckets.
      * 
*/ - public com.google.logging.v2.ListBucketsResponse listBuckets(com.google.logging.v2.ListBucketsRequest request) { + public com.google.logging.v2.ListBucketsResponse listBuckets( + com.google.logging.v2.ListBucketsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBucketsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets a log bucket.
      * 
*/ - public com.google.logging.v2.LogBucket getBucket(com.google.logging.v2.GetBucketRequest request) { + public com.google.logging.v2.LogBucket getBucket( + com.google.logging.v2.GetBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBucketMethod(), getCallOptions(), request); } /** + * + * *
      * Creates a log bucket asynchronously that can be used to store log entries.
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public com.google.longrunning.Operation createBucketAsync(com.google.logging.v2.CreateBucketRequest request) { + public com.google.longrunning.Operation createBucketAsync( + com.google.logging.v2.CreateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBucketAsyncMethod(), getCallOptions(), request); } /** + * + * *
      * Updates a log bucket asynchronously.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -1966,23 +2554,29 @@ public com.google.longrunning.Operation createBucketAsync(com.google.logging.v2.
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public com.google.longrunning.Operation updateBucketAsync(com.google.logging.v2.UpdateBucketRequest request) { + public com.google.longrunning.Operation updateBucketAsync( + com.google.logging.v2.UpdateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBucketAsyncMethod(), getCallOptions(), request); } /** + * + * *
      * Creates a log bucket that can be used to store log entries. After a bucket
      * has been created, the bucket's location cannot be changed.
      * 
*/ - public com.google.logging.v2.LogBucket createBucket(com.google.logging.v2.CreateBucketRequest request) { + public com.google.logging.v2.LogBucket createBucket( + com.google.logging.v2.CreateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBucketMethod(), getCallOptions(), request); } /** + * + * *
      * Updates a log bucket.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -1990,12 +2584,15 @@ public com.google.logging.v2.LogBucket createBucket(com.google.logging.v2.Create
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public com.google.logging.v2.LogBucket updateBucket(com.google.logging.v2.UpdateBucketRequest request) { + public com.google.logging.v2.LogBucket updateBucket( + com.google.logging.v2.UpdateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBucketMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes a log bucket.
      * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state.
@@ -2003,33 +2600,42 @@ public com.google.logging.v2.LogBucket updateBucket(com.google.logging.v2.Update
      * will be permanently deleted.
      * 
*/ - public com.google.protobuf.Empty deleteBucket(com.google.logging.v2.DeleteBucketRequest request) { + public com.google.protobuf.Empty deleteBucket( + com.google.logging.v2.DeleteBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBucketMethod(), getCallOptions(), request); } /** + * + * *
      * Undeletes a log bucket. A bucket that has been deleted can be undeleted
      * within the grace period of 7 days.
      * 
*/ - public com.google.protobuf.Empty undeleteBucket(com.google.logging.v2.UndeleteBucketRequest request) { + public com.google.protobuf.Empty undeleteBucket( + com.google.logging.v2.UndeleteBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUndeleteBucketMethod(), getCallOptions(), request); } /** + * + * *
      * Lists views on a log bucket.
      * 
*/ - public com.google.logging.v2.ListViewsResponse listViews(com.google.logging.v2.ListViewsRequest request) { + public com.google.logging.v2.ListViewsResponse listViews( + com.google.logging.v2.ListViewsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListViewsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets a view on a log bucket..
      * 
@@ -2040,17 +2646,22 @@ public com.google.logging.v2.LogView getView(com.google.logging.v2.GetViewReques } /** + * + * *
      * Creates a view over log entries in a log bucket. A bucket may contain a
      * maximum of 30 views.
      * 
*/ - public com.google.logging.v2.LogView createView(com.google.logging.v2.CreateViewRequest request) { + public com.google.logging.v2.LogView createView( + com.google.logging.v2.CreateViewRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateViewMethod(), getCallOptions(), request); } /** + * + * *
      * Updates a view on a log bucket. This method replaces the following fields
      * in the existing view with values from the new view: `filter`.
@@ -2059,12 +2670,15 @@ public com.google.logging.v2.LogView createView(com.google.logging.v2.CreateView
      * few minutes.
      * 
*/ - public com.google.logging.v2.LogView updateView(com.google.logging.v2.UpdateViewRequest request) { + public com.google.logging.v2.LogView updateView( + com.google.logging.v2.UpdateViewRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateViewMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes a view on a log bucket.
      * If an `UNAVAILABLE` error is returned, this indicates that system is not in
@@ -2078,16 +2692,21 @@ public com.google.protobuf.Empty deleteView(com.google.logging.v2.DeleteViewRequ
     }
 
     /**
+     *
+     *
      * 
      * Lists sinks.
      * 
*/ - public com.google.logging.v2.ListSinksResponse listSinks(com.google.logging.v2.ListSinksRequest request) { + public com.google.logging.v2.ListSinksResponse listSinks( + com.google.logging.v2.ListSinksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSinksMethod(), getCallOptions(), request); } /** + * + * *
      * Gets a sink.
      * 
@@ -2098,6 +2717,8 @@ public com.google.logging.v2.LogSink getSink(com.google.logging.v2.GetSinkReques } /** + * + * *
      * Creates a sink that exports specified log entries to a destination. The
      * export of newly-ingested log entries begins immediately, unless the sink's
@@ -2105,12 +2726,15 @@ public com.google.logging.v2.LogSink getSink(com.google.logging.v2.GetSinkReques
      * export log entries only from the resource owning the sink.
      * 
*/ - public com.google.logging.v2.LogSink createSink(com.google.logging.v2.CreateSinkRequest request) { + public com.google.logging.v2.LogSink createSink( + com.google.logging.v2.CreateSinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSinkMethod(), getCallOptions(), request); } /** + * + * *
      * Updates a sink. This method replaces the following fields in the existing
      * sink with values from the new sink: `destination`, and `filter`.
@@ -2118,12 +2742,15 @@ public com.google.logging.v2.LogSink createSink(com.google.logging.v2.CreateSink
      * `unique_writer_identity` field.
      * 
*/ - public com.google.logging.v2.LogSink updateSink(com.google.logging.v2.UpdateSinkRequest request) { + public com.google.logging.v2.LogSink updateSink( + com.google.logging.v2.UpdateSinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSinkMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes a sink. If the sink has a unique `writer_identity`, then that
      * service account is also deleted.
@@ -2135,39 +2762,50 @@ public com.google.protobuf.Empty deleteSink(com.google.logging.v2.DeleteSinkRequ
     }
 
     /**
+     *
+     *
      * 
      * Asynchronously creates a linked dataset in BigQuery which makes it possible
      * to use BigQuery to read the logs stored in the log bucket. A log bucket may
      * currently only contain one link.
      * 
*/ - public com.google.longrunning.Operation createLink(com.google.logging.v2.CreateLinkRequest request) { + public com.google.longrunning.Operation createLink( + com.google.logging.v2.CreateLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateLinkMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes a link. This will also delete the corresponding BigQuery linked
      * dataset.
      * 
*/ - public com.google.longrunning.Operation deleteLink(com.google.logging.v2.DeleteLinkRequest request) { + public com.google.longrunning.Operation deleteLink( + com.google.logging.v2.DeleteLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteLinkMethod(), getCallOptions(), request); } /** + * + * *
      * Lists links.
      * 
*/ - public com.google.logging.v2.ListLinksResponse listLinks(com.google.logging.v2.ListLinksRequest request) { + public com.google.logging.v2.ListLinksResponse listLinks( + com.google.logging.v2.ListLinksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLinksMethod(), getCallOptions(), request); } /** + * + * *
      * Gets a link.
      * 
@@ -2178,59 +2816,76 @@ public com.google.logging.v2.Link getLink(com.google.logging.v2.GetLinkRequest r } /** + * + * *
      * Lists all the exclusions on the _Default sink in a parent resource.
      * 
*/ - public com.google.logging.v2.ListExclusionsResponse listExclusions(com.google.logging.v2.ListExclusionsRequest request) { + public com.google.logging.v2.ListExclusionsResponse listExclusions( + com.google.logging.v2.ListExclusionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListExclusionsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets the description of an exclusion in the _Default sink.
      * 
*/ - public com.google.logging.v2.LogExclusion getExclusion(com.google.logging.v2.GetExclusionRequest request) { + public com.google.logging.v2.LogExclusion getExclusion( + com.google.logging.v2.GetExclusionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetExclusionMethod(), getCallOptions(), request); } /** + * + * *
      * Creates a new exclusion in the _Default sink in a specified parent
      * resource. Only log entries belonging to that resource can be excluded. You
      * can have up to 10 exclusions in a resource.
      * 
*/ - public com.google.logging.v2.LogExclusion createExclusion(com.google.logging.v2.CreateExclusionRequest request) { + public com.google.logging.v2.LogExclusion createExclusion( + com.google.logging.v2.CreateExclusionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateExclusionMethod(), getCallOptions(), request); } /** + * + * *
      * Changes one or more properties of an existing exclusion in the _Default
      * sink.
      * 
*/ - public com.google.logging.v2.LogExclusion updateExclusion(com.google.logging.v2.UpdateExclusionRequest request) { + public com.google.logging.v2.LogExclusion updateExclusion( + com.google.logging.v2.UpdateExclusionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateExclusionMethod(), getCallOptions(), request); } /** + * + * *
      * Deletes an exclusion in the _Default sink.
      * 
*/ - public com.google.protobuf.Empty deleteExclusion(com.google.logging.v2.DeleteExclusionRequest request) { + public com.google.protobuf.Empty deleteExclusion( + com.google.logging.v2.DeleteExclusionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteExclusionMethod(), getCallOptions(), request); } /** + * + * *
      * Gets the Logging CMEK settings for the given resource.
      * Note: CMEK for the Log Router can be configured for Google Cloud projects,
@@ -2242,12 +2897,15 @@ public com.google.protobuf.Empty deleteExclusion(com.google.logging.v2.DeleteExc
      * for more information.
      * 
*/ - public com.google.logging.v2.CmekSettings getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request) { + public com.google.logging.v2.CmekSettings getCmekSettings( + com.google.logging.v2.GetCmekSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetCmekSettingsMethod(), getCallOptions(), request); } /** + * + * *
      * Updates the Log Router CMEK settings for the given resource.
      * Note: CMEK for the Log Router can currently only be configured for Google
@@ -2263,12 +2921,15 @@ public com.google.logging.v2.CmekSettings getCmekSettings(com.google.logging.v2.
      * for more information.
      * 
*/ - public com.google.logging.v2.CmekSettings updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest request) { + public com.google.logging.v2.CmekSettings updateCmekSettings( + com.google.logging.v2.UpdateCmekSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateCmekSettingsMethod(), getCallOptions(), request); } /** + * + * *
      * Gets the Log Router settings for the given resource.
      * Note: Settings for the Log Router can be get for Google Cloud projects,
@@ -2280,12 +2941,15 @@ public com.google.logging.v2.CmekSettings updateCmekSettings(com.google.logging.
      * for more information.
      * 
*/ - public com.google.logging.v2.Settings getSettings(com.google.logging.v2.GetSettingsRequest request) { + public com.google.logging.v2.Settings getSettings( + com.google.logging.v2.GetSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSettingsMethod(), getCallOptions(), request); } /** + * + * *
      * Updates the Log Router settings for the given resource.
      * Note: Settings for the Log Router can currently only be configured for
@@ -2302,17 +2966,21 @@ public com.google.logging.v2.Settings getSettings(com.google.logging.v2.GetSetti
      * for more information.
      * 
*/ - public com.google.logging.v2.Settings updateSettings(com.google.logging.v2.UpdateSettingsRequest request) { + public com.google.logging.v2.Settings updateSettings( + com.google.logging.v2.UpdateSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSettingsMethod(), getCallOptions(), request); } /** + * + * *
      * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
      * 
*/ - public com.google.longrunning.Operation copyLogEntries(com.google.logging.v2.CopyLogEntriesRequest request) { + public com.google.longrunning.Operation copyLogEntries( + com.google.logging.v2.CopyLogEntriesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCopyLogEntriesMethod(), getCallOptions(), request); } @@ -2320,14 +2988,14 @@ public com.google.longrunning.Operation copyLogEntries(com.google.logging.v2.Cop /** * A stub to allow clients to do ListenableFuture-style rpc calls to service ConfigServiceV2. + * *
    * Service for configuring sinks used to route log entries.
    * 
*/ public static final class ConfigServiceV2FutureStub extends io.grpc.stub.AbstractFutureStub { - private ConfigServiceV2FutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private ConfigServiceV2FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -2338,40 +3006,49 @@ protected ConfigServiceV2FutureStub build( } /** + * + * *
      * Lists log buckets.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listBuckets( - com.google.logging.v2.ListBucketsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.logging.v2.ListBucketsResponse> + listBuckets(com.google.logging.v2.ListBucketsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListBucketsMethod(), getCallOptions()), request); } /** + * + * *
      * Gets a log bucket.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getBucket( - com.google.logging.v2.GetBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getBucket(com.google.logging.v2.GetBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBucketMethod(), getCallOptions()), request); } /** + * + * *
      * Creates a log bucket asynchronously that can be used to store log entries.
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createBucketAsync( - com.google.logging.v2.CreateBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createBucketAsync(com.google.logging.v2.CreateBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBucketAsyncMethod(), getCallOptions()), request); } /** + * + * *
      * Updates a log bucket asynchronously.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -2379,25 +3056,29 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateBucketAsync(
-        com.google.logging.v2.UpdateBucketRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateBucketAsync(com.google.logging.v2.UpdateBucketRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateBucketAsyncMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Creates a log bucket that can be used to store log entries. After a bucket
      * has been created, the bucket's location cannot be changed.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createBucket( - com.google.logging.v2.CreateBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createBucket(com.google.logging.v2.CreateBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateBucketMethod(), getCallOptions()), request); } /** + * + * *
      * Updates a log bucket.
      * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
@@ -2405,13 +3086,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateBucket(
-        com.google.logging.v2.UpdateBucketRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateBucket(com.google.logging.v2.UpdateBucketRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateBucketMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Deletes a log bucket.
      * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state.
@@ -2419,59 +3102,70 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture deleteBucket(
-        com.google.logging.v2.DeleteBucketRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        deleteBucket(com.google.logging.v2.DeleteBucketRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getDeleteBucketMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Undeletes a log bucket. A bucket that has been deleted can be undeleted
      * within the grace period of 7 days.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture undeleteBucket( - com.google.logging.v2.UndeleteBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture + undeleteBucket(com.google.logging.v2.UndeleteBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUndeleteBucketMethod(), getCallOptions()), request); } /** + * + * *
      * Lists views on a log bucket.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listViews( - com.google.logging.v2.ListViewsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.logging.v2.ListViewsResponse> + listViews(com.google.logging.v2.ListViewsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListViewsMethod(), getCallOptions()), request); } /** + * + * *
      * Gets a view on a log bucket..
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getView( - com.google.logging.v2.GetViewRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getView(com.google.logging.v2.GetViewRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetViewMethod(), getCallOptions()), request); } /** + * + * *
      * Creates a view over log entries in a log bucket. A bucket may contain a
      * maximum of 30 views.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createView( - com.google.logging.v2.CreateViewRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createView(com.google.logging.v2.CreateViewRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateViewMethod(), getCallOptions()), request); } /** + * + * *
      * Updates a view on a log bucket. This method replaces the following fields
      * in the existing view with values from the new view: `filter`.
@@ -2480,13 +3174,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateView(
-        com.google.logging.v2.UpdateViewRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateView(com.google.logging.v2.UpdateViewRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateViewMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Deletes a view on a log bucket.
      * If an `UNAVAILABLE` error is returned, this indicates that system is not in
@@ -2501,28 +3197,35 @@ public com.google.common.util.concurrent.ListenableFuture
      * Lists sinks.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listSinks( - com.google.logging.v2.ListSinksRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.logging.v2.ListSinksResponse> + listSinks(com.google.logging.v2.ListSinksRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSinksMethod(), getCallOptions()), request); } /** + * + * *
      * Gets a sink.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getSink( - com.google.logging.v2.GetSinkRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getSink(com.google.logging.v2.GetSinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSinkMethod(), getCallOptions()), request); } /** + * + * *
      * Creates a sink that exports specified log entries to a destination. The
      * export of newly-ingested log entries begins immediately, unless the sink's
@@ -2530,13 +3233,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture createSink(
-        com.google.logging.v2.CreateSinkRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        createSink(com.google.logging.v2.CreateSinkRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getCreateSinkMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Updates a sink. This method replaces the following fields in the existing
      * sink with values from the new sink: `destination`, and `filter`.
@@ -2544,13 +3249,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateSink(
-        com.google.logging.v2.UpdateSinkRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateSink(com.google.logging.v2.UpdateSinkRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateSinkMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Deletes a sink. If the sink has a unique `writer_identity`, then that
      * service account is also deleted.
@@ -2563,42 +3270,51 @@ public com.google.common.util.concurrent.ListenableFuture
      * Asynchronously creates a linked dataset in BigQuery which makes it possible
      * to use BigQuery to read the logs stored in the log bucket. A log bucket may
      * currently only contain one link.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createLink( - com.google.logging.v2.CreateLinkRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createLink(com.google.logging.v2.CreateLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateLinkMethod(), getCallOptions()), request); } /** + * + * *
      * Deletes a link. This will also delete the corresponding BigQuery linked
      * dataset.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteLink( - com.google.logging.v2.DeleteLinkRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteLink(com.google.logging.v2.DeleteLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteLinkMethod(), getCallOptions()), request); } /** + * + * *
      * Lists links.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listLinks( - com.google.logging.v2.ListLinksRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.logging.v2.ListLinksResponse> + listLinks(com.google.logging.v2.ListLinksRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListLinksMethod(), getCallOptions()), request); } /** + * + * *
      * Gets a link.
      * 
@@ -2610,64 +3326,77 @@ public com.google.common.util.concurrent.ListenableFuture * Lists all the exclusions on the _Default sink in a parent resource. *
*/ - public com.google.common.util.concurrent.ListenableFuture listExclusions( - com.google.logging.v2.ListExclusionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.logging.v2.ListExclusionsResponse> + listExclusions(com.google.logging.v2.ListExclusionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListExclusionsMethod(), getCallOptions()), request); } /** + * + * *
      * Gets the description of an exclusion in the _Default sink.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture getExclusion( - com.google.logging.v2.GetExclusionRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getExclusion(com.google.logging.v2.GetExclusionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetExclusionMethod(), getCallOptions()), request); } /** + * + * *
      * Creates a new exclusion in the _Default sink in a specified parent
      * resource. Only log entries belonging to that resource can be excluded. You
      * can have up to 10 exclusions in a resource.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createExclusion( - com.google.logging.v2.CreateExclusionRequest request) { + public com.google.common.util.concurrent.ListenableFuture + createExclusion(com.google.logging.v2.CreateExclusionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateExclusionMethod(), getCallOptions()), request); } /** + * + * *
      * Changes one or more properties of an existing exclusion in the _Default
      * sink.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture updateExclusion( - com.google.logging.v2.UpdateExclusionRequest request) { + public com.google.common.util.concurrent.ListenableFuture + updateExclusion(com.google.logging.v2.UpdateExclusionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateExclusionMethod(), getCallOptions()), request); } /** + * + * *
      * Deletes an exclusion in the _Default sink.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture deleteExclusion( - com.google.logging.v2.DeleteExclusionRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteExclusion(com.google.logging.v2.DeleteExclusionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteExclusionMethod(), getCallOptions()), request); } /** + * + * *
      * Gets the Logging CMEK settings for the given resource.
      * Note: CMEK for the Log Router can be configured for Google Cloud projects,
@@ -2679,13 +3408,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture getCmekSettings(
-        com.google.logging.v2.GetCmekSettingsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getGetCmekSettingsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Updates the Log Router CMEK settings for the given resource.
      * Note: CMEK for the Log Router can currently only be configured for Google
@@ -2701,13 +3432,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateCmekSettings(
-        com.google.logging.v2.UpdateCmekSettingsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateCmekSettingsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Gets the Log Router settings for the given resource.
      * Note: Settings for the Log Router can be get for Google Cloud projects,
@@ -2719,13 +3452,15 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture getSettings(
-        com.google.logging.v2.GetSettingsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        getSettings(com.google.logging.v2.GetSettingsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getGetSettingsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Updates the Log Router settings for the given resource.
      * Note: Settings for the Log Router can currently only be configured for
@@ -2742,19 +3477,21 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture updateSettings(
-        com.google.logging.v2.UpdateSettingsRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        updateSettings(com.google.logging.v2.UpdateSettingsRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getUpdateSettingsMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture copyLogEntries( - com.google.logging.v2.CopyLogEntriesRequest request) { + public com.google.common.util.concurrent.ListenableFuture + copyLogEntries(com.google.logging.v2.CopyLogEntriesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCopyLogEntriesMethod(), getCallOptions()), request); } @@ -2793,11 +3530,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -2811,131 +3548,168 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_BUCKETS: - serviceImpl.listBuckets((com.google.logging.v2.ListBucketsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listBuckets( + (com.google.logging.v2.ListBucketsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_BUCKET: - serviceImpl.getBucket((com.google.logging.v2.GetBucketRequest) request, + serviceImpl.getBucket( + (com.google.logging.v2.GetBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_BUCKET_ASYNC: - serviceImpl.createBucketAsync((com.google.logging.v2.CreateBucketRequest) request, + serviceImpl.createBucketAsync( + (com.google.logging.v2.CreateBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_BUCKET_ASYNC: - serviceImpl.updateBucketAsync((com.google.logging.v2.UpdateBucketRequest) request, + serviceImpl.updateBucketAsync( + (com.google.logging.v2.UpdateBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_BUCKET: - serviceImpl.createBucket((com.google.logging.v2.CreateBucketRequest) request, + serviceImpl.createBucket( + (com.google.logging.v2.CreateBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_BUCKET: - serviceImpl.updateBucket((com.google.logging.v2.UpdateBucketRequest) request, + serviceImpl.updateBucket( + (com.google.logging.v2.UpdateBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_BUCKET: - serviceImpl.deleteBucket((com.google.logging.v2.DeleteBucketRequest) request, + serviceImpl.deleteBucket( + (com.google.logging.v2.DeleteBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UNDELETE_BUCKET: - serviceImpl.undeleteBucket((com.google.logging.v2.UndeleteBucketRequest) request, + serviceImpl.undeleteBucket( + (com.google.logging.v2.UndeleteBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_VIEWS: - serviceImpl.listViews((com.google.logging.v2.ListViewsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listViews( + (com.google.logging.v2.ListViewsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_VIEW: - serviceImpl.getView((com.google.logging.v2.GetViewRequest) request, + serviceImpl.getView( + (com.google.logging.v2.GetViewRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_VIEW: - serviceImpl.createView((com.google.logging.v2.CreateViewRequest) request, + serviceImpl.createView( + (com.google.logging.v2.CreateViewRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_VIEW: - serviceImpl.updateView((com.google.logging.v2.UpdateViewRequest) request, + serviceImpl.updateView( + (com.google.logging.v2.UpdateViewRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_VIEW: - serviceImpl.deleteView((com.google.logging.v2.DeleteViewRequest) request, + serviceImpl.deleteView( + (com.google.logging.v2.DeleteViewRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_SINKS: - serviceImpl.listSinks((com.google.logging.v2.ListSinksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listSinks( + (com.google.logging.v2.ListSinksRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_SINK: - serviceImpl.getSink((com.google.logging.v2.GetSinkRequest) request, + serviceImpl.getSink( + (com.google.logging.v2.GetSinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_SINK: - serviceImpl.createSink((com.google.logging.v2.CreateSinkRequest) request, + serviceImpl.createSink( + (com.google.logging.v2.CreateSinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_SINK: - serviceImpl.updateSink((com.google.logging.v2.UpdateSinkRequest) request, + serviceImpl.updateSink( + (com.google.logging.v2.UpdateSinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_SINK: - serviceImpl.deleteSink((com.google.logging.v2.DeleteSinkRequest) request, + serviceImpl.deleteSink( + (com.google.logging.v2.DeleteSinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_LINK: - serviceImpl.createLink((com.google.logging.v2.CreateLinkRequest) request, + serviceImpl.createLink( + (com.google.logging.v2.CreateLinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_LINK: - serviceImpl.deleteLink((com.google.logging.v2.DeleteLinkRequest) request, + serviceImpl.deleteLink( + (com.google.logging.v2.DeleteLinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_LINKS: - serviceImpl.listLinks((com.google.logging.v2.ListLinksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listLinks( + (com.google.logging.v2.ListLinksRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_LINK: - serviceImpl.getLink((com.google.logging.v2.GetLinkRequest) request, + serviceImpl.getLink( + (com.google.logging.v2.GetLinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_EXCLUSIONS: - serviceImpl.listExclusions((com.google.logging.v2.ListExclusionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listExclusions( + (com.google.logging.v2.ListExclusionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_GET_EXCLUSION: - serviceImpl.getExclusion((com.google.logging.v2.GetExclusionRequest) request, + serviceImpl.getExclusion( + (com.google.logging.v2.GetExclusionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_EXCLUSION: - serviceImpl.createExclusion((com.google.logging.v2.CreateExclusionRequest) request, + serviceImpl.createExclusion( + (com.google.logging.v2.CreateExclusionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_EXCLUSION: - serviceImpl.updateExclusion((com.google.logging.v2.UpdateExclusionRequest) request, + serviceImpl.updateExclusion( + (com.google.logging.v2.UpdateExclusionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_EXCLUSION: - serviceImpl.deleteExclusion((com.google.logging.v2.DeleteExclusionRequest) request, + serviceImpl.deleteExclusion( + (com.google.logging.v2.DeleteExclusionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_CMEK_SETTINGS: - serviceImpl.getCmekSettings((com.google.logging.v2.GetCmekSettingsRequest) request, + serviceImpl.getCmekSettings( + (com.google.logging.v2.GetCmekSettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_CMEK_SETTINGS: - serviceImpl.updateCmekSettings((com.google.logging.v2.UpdateCmekSettingsRequest) request, + serviceImpl.updateCmekSettings( + (com.google.logging.v2.UpdateCmekSettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SETTINGS: - serviceImpl.getSettings((com.google.logging.v2.GetSettingsRequest) request, + serviceImpl.getSettings( + (com.google.logging.v2.GetSettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_SETTINGS: - serviceImpl.updateSettings((com.google.logging.v2.UpdateSettingsRequest) request, + serviceImpl.updateSettings( + (com.google.logging.v2.UpdateSettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COPY_LOG_ENTRIES: - serviceImpl.copyLogEntries((com.google.logging.v2.CopyLogEntriesRequest) request, + serviceImpl.copyLogEntries( + (com.google.logging.v2.CopyLogEntriesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: @@ -2957,234 +3731,204 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getListBucketsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListBucketsRequest, - com.google.logging.v2.ListBucketsResponse>( - service, METHODID_LIST_BUCKETS))) + getListBucketsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListBucketsRequest, + com.google.logging.v2.ListBucketsResponse>(service, METHODID_LIST_BUCKETS))) .addMethod( - getGetBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetBucketRequest, - com.google.logging.v2.LogBucket>( - service, METHODID_GET_BUCKET))) + getGetBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetBucketRequest, com.google.logging.v2.LogBucket>( + service, METHODID_GET_BUCKET))) .addMethod( - getCreateBucketAsyncMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateBucketRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_BUCKET_ASYNC))) + getCreateBucketAsyncMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation>( + service, METHODID_CREATE_BUCKET_ASYNC))) .addMethod( - getUpdateBucketAsyncMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateBucketRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_BUCKET_ASYNC))) + getUpdateBucketAsyncMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation>( + service, METHODID_UPDATE_BUCKET_ASYNC))) .addMethod( - getCreateBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateBucketRequest, - com.google.logging.v2.LogBucket>( - service, METHODID_CREATE_BUCKET))) + getCreateBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.LogBucket>( + service, METHODID_CREATE_BUCKET))) .addMethod( - getUpdateBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateBucketRequest, - com.google.logging.v2.LogBucket>( - service, METHODID_UPDATE_BUCKET))) + getUpdateBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.LogBucket>( + service, METHODID_UPDATE_BUCKET))) .addMethod( - getDeleteBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteBucketRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_BUCKET))) + getDeleteBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteBucketRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_BUCKET))) .addMethod( - getUndeleteBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UndeleteBucketRequest, - com.google.protobuf.Empty>( - service, METHODID_UNDELETE_BUCKET))) + getUndeleteBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UndeleteBucketRequest, com.google.protobuf.Empty>( + service, METHODID_UNDELETE_BUCKET))) .addMethod( - getListViewsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListViewsRequest, - com.google.logging.v2.ListViewsResponse>( - service, METHODID_LIST_VIEWS))) + getListViewsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListViewsRequest, + com.google.logging.v2.ListViewsResponse>(service, METHODID_LIST_VIEWS))) .addMethod( - getGetViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetViewRequest, - com.google.logging.v2.LogView>( - service, METHODID_GET_VIEW))) + getGetViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetViewRequest, com.google.logging.v2.LogView>( + service, METHODID_GET_VIEW))) .addMethod( - getCreateViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateViewRequest, - com.google.logging.v2.LogView>( - service, METHODID_CREATE_VIEW))) + getCreateViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateViewRequest, com.google.logging.v2.LogView>( + service, METHODID_CREATE_VIEW))) .addMethod( - getUpdateViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateViewRequest, - com.google.logging.v2.LogView>( - service, METHODID_UPDATE_VIEW))) + getUpdateViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateViewRequest, com.google.logging.v2.LogView>( + service, METHODID_UPDATE_VIEW))) .addMethod( - getDeleteViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteViewRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_VIEW))) + getDeleteViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteViewRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_VIEW))) .addMethod( - getListSinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListSinksRequest, - com.google.logging.v2.ListSinksResponse>( - service, METHODID_LIST_SINKS))) + getListSinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListSinksRequest, + com.google.logging.v2.ListSinksResponse>(service, METHODID_LIST_SINKS))) .addMethod( - getGetSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetSinkRequest, - com.google.logging.v2.LogSink>( - service, METHODID_GET_SINK))) + getGetSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetSinkRequest, com.google.logging.v2.LogSink>( + service, METHODID_GET_SINK))) .addMethod( - getCreateSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateSinkRequest, - com.google.logging.v2.LogSink>( - service, METHODID_CREATE_SINK))) + getCreateSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateSinkRequest, com.google.logging.v2.LogSink>( + service, METHODID_CREATE_SINK))) .addMethod( - getUpdateSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateSinkRequest, - com.google.logging.v2.LogSink>( - service, METHODID_UPDATE_SINK))) + getUpdateSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateSinkRequest, com.google.logging.v2.LogSink>( + service, METHODID_UPDATE_SINK))) .addMethod( - getDeleteSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteSinkRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_SINK))) + getDeleteSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteSinkRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_SINK))) .addMethod( - getCreateLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateLinkRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_LINK))) + getCreateLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation>( + service, METHODID_CREATE_LINK))) .addMethod( - getDeleteLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteLinkRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_LINK))) + getDeleteLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation>( + service, METHODID_DELETE_LINK))) .addMethod( - getListLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListLinksRequest, - com.google.logging.v2.ListLinksResponse>( - service, METHODID_LIST_LINKS))) + getListLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListLinksRequest, + com.google.logging.v2.ListLinksResponse>(service, METHODID_LIST_LINKS))) .addMethod( - getGetLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetLinkRequest, - com.google.logging.v2.Link>( - service, METHODID_GET_LINK))) + getGetLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetLinkRequest, com.google.logging.v2.Link>( + service, METHODID_GET_LINK))) .addMethod( - getListExclusionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListExclusionsRequest, - com.google.logging.v2.ListExclusionsResponse>( - service, METHODID_LIST_EXCLUSIONS))) + getListExclusionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListExclusionsRequest, + com.google.logging.v2.ListExclusionsResponse>( + service, METHODID_LIST_EXCLUSIONS))) .addMethod( - getGetExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetExclusionRequest, - com.google.logging.v2.LogExclusion>( - service, METHODID_GET_EXCLUSION))) + getGetExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetExclusionRequest, com.google.logging.v2.LogExclusion>( + service, METHODID_GET_EXCLUSION))) .addMethod( - getCreateExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateExclusionRequest, - com.google.logging.v2.LogExclusion>( - service, METHODID_CREATE_EXCLUSION))) + getCreateExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateExclusionRequest, + com.google.logging.v2.LogExclusion>(service, METHODID_CREATE_EXCLUSION))) .addMethod( - getUpdateExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateExclusionRequest, - com.google.logging.v2.LogExclusion>( - service, METHODID_UPDATE_EXCLUSION))) + getUpdateExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateExclusionRequest, + com.google.logging.v2.LogExclusion>(service, METHODID_UPDATE_EXCLUSION))) .addMethod( - getDeleteExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteExclusionRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_EXCLUSION))) + getDeleteExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_EXCLUSION))) .addMethod( - getGetCmekSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetCmekSettingsRequest, - com.google.logging.v2.CmekSettings>( - service, METHODID_GET_CMEK_SETTINGS))) + getGetCmekSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetCmekSettingsRequest, + com.google.logging.v2.CmekSettings>(service, METHODID_GET_CMEK_SETTINGS))) .addMethod( - getUpdateCmekSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateCmekSettingsRequest, - com.google.logging.v2.CmekSettings>( - service, METHODID_UPDATE_CMEK_SETTINGS))) + getUpdateCmekSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateCmekSettingsRequest, + com.google.logging.v2.CmekSettings>(service, METHODID_UPDATE_CMEK_SETTINGS))) .addMethod( - getGetSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetSettingsRequest, - com.google.logging.v2.Settings>( - service, METHODID_GET_SETTINGS))) + getGetSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings>( + service, METHODID_GET_SETTINGS))) .addMethod( - getUpdateSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateSettingsRequest, - com.google.logging.v2.Settings>( - service, METHODID_UPDATE_SETTINGS))) + getUpdateSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings>( + service, METHODID_UPDATE_SETTINGS))) .addMethod( - getCopyLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CopyLogEntriesRequest, - com.google.longrunning.Operation>( - service, METHODID_COPY_LOG_ENTRIES))) + getCopyLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CopyLogEntriesRequest, com.google.longrunning.Operation>( + service, METHODID_COPY_LOG_ENTRIES))) .build(); } - private static abstract class ConfigServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class ConfigServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { ConfigServiceV2BaseDescriptorSupplier() {} @java.lang.Override @@ -3226,41 +3970,43 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ConfigServiceV2Grpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConfigServiceV2FileDescriptorSupplier()) - .addMethod(getListBucketsMethod()) - .addMethod(getGetBucketMethod()) - .addMethod(getCreateBucketAsyncMethod()) - .addMethod(getUpdateBucketAsyncMethod()) - .addMethod(getCreateBucketMethod()) - .addMethod(getUpdateBucketMethod()) - .addMethod(getDeleteBucketMethod()) - .addMethod(getUndeleteBucketMethod()) - .addMethod(getListViewsMethod()) - .addMethod(getGetViewMethod()) - .addMethod(getCreateViewMethod()) - .addMethod(getUpdateViewMethod()) - .addMethod(getDeleteViewMethod()) - .addMethod(getListSinksMethod()) - .addMethod(getGetSinkMethod()) - .addMethod(getCreateSinkMethod()) - .addMethod(getUpdateSinkMethod()) - .addMethod(getDeleteSinkMethod()) - .addMethod(getCreateLinkMethod()) - .addMethod(getDeleteLinkMethod()) - .addMethod(getListLinksMethod()) - .addMethod(getGetLinkMethod()) - .addMethod(getListExclusionsMethod()) - .addMethod(getGetExclusionMethod()) - .addMethod(getCreateExclusionMethod()) - .addMethod(getUpdateExclusionMethod()) - .addMethod(getDeleteExclusionMethod()) - .addMethod(getGetCmekSettingsMethod()) - .addMethod(getUpdateCmekSettingsMethod()) - .addMethod(getGetSettingsMethod()) - .addMethod(getUpdateSettingsMethod()) - .addMethod(getCopyLogEntriesMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConfigServiceV2FileDescriptorSupplier()) + .addMethod(getListBucketsMethod()) + .addMethod(getGetBucketMethod()) + .addMethod(getCreateBucketAsyncMethod()) + .addMethod(getUpdateBucketAsyncMethod()) + .addMethod(getCreateBucketMethod()) + .addMethod(getUpdateBucketMethod()) + .addMethod(getDeleteBucketMethod()) + .addMethod(getUndeleteBucketMethod()) + .addMethod(getListViewsMethod()) + .addMethod(getGetViewMethod()) + .addMethod(getCreateViewMethod()) + .addMethod(getUpdateViewMethod()) + .addMethod(getDeleteViewMethod()) + .addMethod(getListSinksMethod()) + .addMethod(getGetSinkMethod()) + .addMethod(getCreateSinkMethod()) + .addMethod(getUpdateSinkMethod()) + .addMethod(getDeleteSinkMethod()) + .addMethod(getCreateLinkMethod()) + .addMethod(getDeleteLinkMethod()) + .addMethod(getListLinksMethod()) + .addMethod(getGetLinkMethod()) + .addMethod(getListExclusionsMethod()) + .addMethod(getGetExclusionMethod()) + .addMethod(getCreateExclusionMethod()) + .addMethod(getUpdateExclusionMethod()) + .addMethod(getDeleteExclusionMethod()) + .addMethod(getGetCmekSettingsMethod()) + .addMethod(getUpdateCmekSettingsMethod()) + .addMethod(getGetSettingsMethod()) + .addMethod(getUpdateSettingsMethod()) + .addMethod(getCopyLogEntriesMethod()) + .build(); } } } diff --git a/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java similarity index 50% rename from owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java rename to grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java index 0355029b0..b3ff536ee 100644 --- a/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java +++ b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java @@ -1,8 +1,25 @@ +/* + * 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.logging.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * Service for ingesting and querying logs.
  * 
@@ -18,237 +35,315 @@ private LoggingServiceV2Grpc() {} public static final java.lang.String SERVICE_NAME = "google.logging.v2.LoggingServiceV2"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getDeleteLogMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteLogRequest, com.google.protobuf.Empty> + getDeleteLogMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteLog", requestType = com.google.logging.v2.DeleteLogRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteLogMethod() { - io.grpc.MethodDescriptor getDeleteLogMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteLogRequest, com.google.protobuf.Empty> + getDeleteLogMethod() { + io.grpc.MethodDescriptor + getDeleteLogMethod; if ((getDeleteLogMethod = LoggingServiceV2Grpc.getDeleteLogMethod) == null) { synchronized (LoggingServiceV2Grpc.class) { if ((getDeleteLogMethod = LoggingServiceV2Grpc.getDeleteLogMethod) == null) { - LoggingServiceV2Grpc.getDeleteLogMethod = getDeleteLogMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLog")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.DeleteLogRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new LoggingServiceV2MethodDescriptorSupplier("DeleteLog")) - .build(); + LoggingServiceV2Grpc.getDeleteLogMethod = + getDeleteLogMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLog")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteLogRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new LoggingServiceV2MethodDescriptorSupplier("DeleteLog")) + .build(); } } } return getDeleteLogMethod; } - private static volatile io.grpc.MethodDescriptor getWriteLogEntriesMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.WriteLogEntriesRequest, + com.google.logging.v2.WriteLogEntriesResponse> + getWriteLogEntriesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "WriteLogEntries", requestType = com.google.logging.v2.WriteLogEntriesRequest.class, responseType = com.google.logging.v2.WriteLogEntriesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getWriteLogEntriesMethod() { - io.grpc.MethodDescriptor getWriteLogEntriesMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.WriteLogEntriesRequest, + com.google.logging.v2.WriteLogEntriesResponse> + getWriteLogEntriesMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.WriteLogEntriesRequest, + com.google.logging.v2.WriteLogEntriesResponse> + getWriteLogEntriesMethod; if ((getWriteLogEntriesMethod = LoggingServiceV2Grpc.getWriteLogEntriesMethod) == null) { synchronized (LoggingServiceV2Grpc.class) { if ((getWriteLogEntriesMethod = LoggingServiceV2Grpc.getWriteLogEntriesMethod) == null) { - LoggingServiceV2Grpc.getWriteLogEntriesMethod = getWriteLogEntriesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteLogEntries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.WriteLogEntriesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.WriteLogEntriesResponse.getDefaultInstance())) - .setSchemaDescriptor(new LoggingServiceV2MethodDescriptorSupplier("WriteLogEntries")) - .build(); + LoggingServiceV2Grpc.getWriteLogEntriesMethod = + getWriteLogEntriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "WriteLogEntries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.WriteLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.WriteLogEntriesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new LoggingServiceV2MethodDescriptorSupplier("WriteLogEntries")) + .build(); } } } return getWriteLogEntriesMethod; } - private static volatile io.grpc.MethodDescriptor getListLogEntriesMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.ListLogEntriesRequest, com.google.logging.v2.ListLogEntriesResponse> + getListLogEntriesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListLogEntries", requestType = com.google.logging.v2.ListLogEntriesRequest.class, responseType = com.google.logging.v2.ListLogEntriesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListLogEntriesMethod() { - io.grpc.MethodDescriptor getListLogEntriesMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.ListLogEntriesRequest, com.google.logging.v2.ListLogEntriesResponse> + getListLogEntriesMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.ListLogEntriesRequest, + com.google.logging.v2.ListLogEntriesResponse> + getListLogEntriesMethod; if ((getListLogEntriesMethod = LoggingServiceV2Grpc.getListLogEntriesMethod) == null) { synchronized (LoggingServiceV2Grpc.class) { if ((getListLogEntriesMethod = LoggingServiceV2Grpc.getListLogEntriesMethod) == null) { - LoggingServiceV2Grpc.getListLogEntriesMethod = getListLogEntriesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLogEntries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLogEntriesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLogEntriesResponse.getDefaultInstance())) - .setSchemaDescriptor(new LoggingServiceV2MethodDescriptorSupplier("ListLogEntries")) - .build(); + LoggingServiceV2Grpc.getListLogEntriesMethod = + getListLogEntriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLogEntries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLogEntriesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new LoggingServiceV2MethodDescriptorSupplier("ListLogEntries")) + .build(); } } } return getListLogEntriesMethod; } - private static volatile io.grpc.MethodDescriptor getListMonitoredResourceDescriptorsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse> + getListMonitoredResourceDescriptorsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListMonitoredResourceDescriptors", requestType = com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.class, responseType = com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListMonitoredResourceDescriptorsMethod() { - io.grpc.MethodDescriptor getListMonitoredResourceDescriptorsMethod; - if ((getListMonitoredResourceDescriptorsMethod = LoggingServiceV2Grpc.getListMonitoredResourceDescriptorsMethod) == null) { + public static io.grpc.MethodDescriptor< + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse> + getListMonitoredResourceDescriptorsMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse> + getListMonitoredResourceDescriptorsMethod; + if ((getListMonitoredResourceDescriptorsMethod = + LoggingServiceV2Grpc.getListMonitoredResourceDescriptorsMethod) + == null) { synchronized (LoggingServiceV2Grpc.class) { - if ((getListMonitoredResourceDescriptorsMethod = LoggingServiceV2Grpc.getListMonitoredResourceDescriptorsMethod) == null) { - LoggingServiceV2Grpc.getListMonitoredResourceDescriptorsMethod = getListMonitoredResourceDescriptorsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMonitoredResourceDescriptors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.getDefaultInstance())) - .setSchemaDescriptor(new LoggingServiceV2MethodDescriptorSupplier("ListMonitoredResourceDescriptors")) - .build(); + if ((getListMonitoredResourceDescriptorsMethod = + LoggingServiceV2Grpc.getListMonitoredResourceDescriptorsMethod) + == null) { + LoggingServiceV2Grpc.getListMonitoredResourceDescriptorsMethod = + getListMonitoredResourceDescriptorsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMonitoredResourceDescriptors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new LoggingServiceV2MethodDescriptorSupplier( + "ListMonitoredResourceDescriptors")) + .build(); } } } return getListMonitoredResourceDescriptorsMethod; } - private static volatile io.grpc.MethodDescriptor getListLogsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.ListLogsRequest, com.google.logging.v2.ListLogsResponse> + getListLogsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListLogs", requestType = com.google.logging.v2.ListLogsRequest.class, responseType = com.google.logging.v2.ListLogsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListLogsMethod() { - io.grpc.MethodDescriptor getListLogsMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.ListLogsRequest, com.google.logging.v2.ListLogsResponse> + getListLogsMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.ListLogsRequest, com.google.logging.v2.ListLogsResponse> + getListLogsMethod; if ((getListLogsMethod = LoggingServiceV2Grpc.getListLogsMethod) == null) { synchronized (LoggingServiceV2Grpc.class) { if ((getListLogsMethod = LoggingServiceV2Grpc.getListLogsMethod) == null) { - LoggingServiceV2Grpc.getListLogsMethod = getListLogsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLogs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLogsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLogsResponse.getDefaultInstance())) - .setSchemaDescriptor(new LoggingServiceV2MethodDescriptorSupplier("ListLogs")) - .build(); + LoggingServiceV2Grpc.getListLogsMethod = + getListLogsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLogs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLogsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLogsResponse.getDefaultInstance())) + .setSchemaDescriptor(new LoggingServiceV2MethodDescriptorSupplier("ListLogs")) + .build(); } } } return getListLogsMethod; } - private static volatile io.grpc.MethodDescriptor getTailLogEntriesMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.TailLogEntriesRequest, com.google.logging.v2.TailLogEntriesResponse> + getTailLogEntriesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "TailLogEntries", requestType = com.google.logging.v2.TailLogEntriesRequest.class, responseType = com.google.logging.v2.TailLogEntriesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getTailLogEntriesMethod() { - io.grpc.MethodDescriptor getTailLogEntriesMethod; + public static io.grpc.MethodDescriptor< + com.google.logging.v2.TailLogEntriesRequest, com.google.logging.v2.TailLogEntriesResponse> + getTailLogEntriesMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.TailLogEntriesRequest, + com.google.logging.v2.TailLogEntriesResponse> + getTailLogEntriesMethod; if ((getTailLogEntriesMethod = LoggingServiceV2Grpc.getTailLogEntriesMethod) == null) { synchronized (LoggingServiceV2Grpc.class) { if ((getTailLogEntriesMethod = LoggingServiceV2Grpc.getTailLogEntriesMethod) == null) { - LoggingServiceV2Grpc.getTailLogEntriesMethod = getTailLogEntriesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TailLogEntries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.TailLogEntriesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.TailLogEntriesResponse.getDefaultInstance())) - .setSchemaDescriptor(new LoggingServiceV2MethodDescriptorSupplier("TailLogEntries")) - .build(); + LoggingServiceV2Grpc.getTailLogEntriesMethod = + getTailLogEntriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TailLogEntries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.TailLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.TailLogEntriesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new LoggingServiceV2MethodDescriptorSupplier("TailLogEntries")) + .build(); } } } return getTailLogEntriesMethod; } - /** - * Creates a new async stub that supports all call types for the service - */ + /** Creates a new async stub that supports all call types for the service */ public static LoggingServiceV2Stub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LoggingServiceV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LoggingServiceV2Stub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LoggingServiceV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LoggingServiceV2Stub(channel, callOptions); + } + }; return LoggingServiceV2Stub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static LoggingServiceV2BlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static LoggingServiceV2BlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LoggingServiceV2BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LoggingServiceV2BlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LoggingServiceV2BlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LoggingServiceV2BlockingStub(channel, callOptions); + } + }; return LoggingServiceV2BlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static LoggingServiceV2FutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static LoggingServiceV2FutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LoggingServiceV2FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LoggingServiceV2FutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LoggingServiceV2FutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LoggingServiceV2FutureStub(channel, callOptions); + } + }; return LoggingServiceV2FutureStub.newStub(factory, channel); } /** + * + * *
    * Service for ingesting and querying logs.
    * 
@@ -256,6 +351,8 @@ public LoggingServiceV2FutureStub newStub(io.grpc.Channel channel, io.grpc.CallO public interface AsyncService { /** + * + * *
      * Deletes all the log entries in a log for the _Default Log Bucket. The log
      * reappears if it receives new entries. Log entries written shortly before
@@ -263,12 +360,15 @@ public interface AsyncService {
      * delete operation with a timestamp before the operation will be deleted.
      * 
*/ - default void deleteLog(com.google.logging.v2.DeleteLogRequest request, + default void deleteLog( + com.google.logging.v2.DeleteLogRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteLogMethod(), responseObserver); } /** + * + * *
      * Writes log entries to Logging. This API method is the
      * only way to send log entries to Logging. This method
@@ -279,12 +379,17 @@ default void deleteLog(com.google.logging.v2.DeleteLogRequest request,
      * folders)
      * 
*/ - default void writeLogEntries(com.google.logging.v2.WriteLogEntriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWriteLogEntriesMethod(), responseObserver); + default void writeLogEntries( + com.google.logging.v2.WriteLogEntriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getWriteLogEntriesMethod(), responseObserver); } /** + * + * *
      * Lists log entries.  Use this method to retrieve log entries that originated
      * from a project/folder/organization/billing account.  For ways to export log
@@ -292,78 +397,96 @@ default void writeLogEntries(com.google.logging.v2.WriteLogEntriesRequest reques
      * Logs](https://cloud.google.com/logging/docs/export).
      * 
*/ - default void listLogEntries(com.google.logging.v2.ListLogEntriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLogEntriesMethod(), responseObserver); + default void listLogEntries( + com.google.logging.v2.ListLogEntriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLogEntriesMethod(), responseObserver); } /** + * + * *
      * Lists the descriptors for monitored resource types used by Logging.
      * 
*/ - default void listMonitoredResourceDescriptors(com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMonitoredResourceDescriptorsMethod(), responseObserver); + default void listMonitoredResourceDescriptors( + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMonitoredResourceDescriptorsMethod(), responseObserver); } /** + * + * *
      * Lists the logs in projects, organizations, folders, or billing accounts.
      * Only logs that have entries are listed.
      * 
*/ - default void listLogs(com.google.logging.v2.ListLogsRequest request, + default void listLogs( + com.google.logging.v2.ListLogsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLogsMethod(), responseObserver); } /** + * + * *
      * Streaming read of log entries as they are ingested. Until the stream is
      * terminated, it will continue reading logs.
      * 
*/ default io.grpc.stub.StreamObserver tailLogEntries( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getTailLogEntriesMethod(), responseObserver); + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getTailLogEntriesMethod(), responseObserver); } } /** * Base class for the server implementation of the service LoggingServiceV2. + * *
    * Service for ingesting and querying logs.
    * 
*/ - public static abstract class LoggingServiceV2ImplBase + public abstract static class LoggingServiceV2ImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return LoggingServiceV2Grpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service LoggingServiceV2. + * *
    * Service for ingesting and querying logs.
    * 
*/ public static final class LoggingServiceV2Stub extends io.grpc.stub.AbstractAsyncStub { - private LoggingServiceV2Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private LoggingServiceV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected LoggingServiceV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected LoggingServiceV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LoggingServiceV2Stub(channel, callOptions); } /** + * + * *
      * Deletes all the log entries in a log for the _Default Log Bucket. The log
      * reappears if it receives new entries. Log entries written shortly before
@@ -371,13 +494,16 @@ protected LoggingServiceV2Stub build(
      * delete operation with a timestamp before the operation will be deleted.
      * 
*/ - public void deleteLog(com.google.logging.v2.DeleteLogRequest request, + public void deleteLog( + com.google.logging.v2.DeleteLogRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteLogMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Writes log entries to Logging. This API method is the
      * only way to send log entries to Logging. This method
@@ -388,13 +514,19 @@ public void deleteLog(com.google.logging.v2.DeleteLogRequest request,
      * folders)
      * 
*/ - public void writeLogEntries(com.google.logging.v2.WriteLogEntriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void writeLogEntries( + com.google.logging.v2.WriteLogEntriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getWriteLogEntriesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getWriteLogEntriesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists log entries.  Use this method to retrieve log entries that originated
      * from a project/folder/organization/billing account.  For ways to export log
@@ -402,43 +534,59 @@ public void writeLogEntries(com.google.logging.v2.WriteLogEntriesRequest request
      * Logs](https://cloud.google.com/logging/docs/export).
      * 
*/ - public void listLogEntries(com.google.logging.v2.ListLogEntriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listLogEntries( + com.google.logging.v2.ListLogEntriesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLogEntriesMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListLogEntriesMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists the descriptors for monitored resource types used by Logging.
      * 
*/ - public void listMonitoredResourceDescriptors(com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listMonitoredResourceDescriptors( + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Lists the logs in projects, organizations, folders, or billing accounts.
      * Only logs that have entries are listed.
      * 
*/ - public void listLogs(com.google.logging.v2.ListLogsRequest request, + public void listLogs( + com.google.logging.v2.ListLogsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListLogsMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Streaming read of log entries as they are ingested. Until the stream is
      * terminated, it will continue reading logs.
      * 
*/ public io.grpc.stub.StreamObserver tailLogEntries( - io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.StreamObserver + responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getTailLogEntriesMethod(), getCallOptions()), responseObserver); } @@ -446,14 +594,14 @@ public io.grpc.stub.StreamObserver /** * A stub to allow clients to do synchronous rpc calls to service LoggingServiceV2. + * *
    * Service for ingesting and querying logs.
    * 
*/ public static final class LoggingServiceV2BlockingStub extends io.grpc.stub.AbstractBlockingStub { - private LoggingServiceV2BlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private LoggingServiceV2BlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -464,6 +612,8 @@ protected LoggingServiceV2BlockingStub build( } /** + * + * *
      * Deletes all the log entries in a log for the _Default Log Bucket. The log
      * reappears if it receives new entries. Log entries written shortly before
@@ -477,6 +627,8 @@ public com.google.protobuf.Empty deleteLog(com.google.logging.v2.DeleteLogReques
     }
 
     /**
+     *
+     *
      * 
      * Writes log entries to Logging. This API method is the
      * only way to send log entries to Logging. This method
@@ -487,12 +639,15 @@ public com.google.protobuf.Empty deleteLog(com.google.logging.v2.DeleteLogReques
      * folders)
      * 
*/ - public com.google.logging.v2.WriteLogEntriesResponse writeLogEntries(com.google.logging.v2.WriteLogEntriesRequest request) { + public com.google.logging.v2.WriteLogEntriesResponse writeLogEntries( + com.google.logging.v2.WriteLogEntriesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getWriteLogEntriesMethod(), getCallOptions(), request); } /** + * + * *
      * Lists log entries.  Use this method to retrieve log entries that originated
      * from a project/folder/organization/billing account.  For ways to export log
@@ -500,28 +655,36 @@ public com.google.logging.v2.WriteLogEntriesResponse writeLogEntries(com.google.
      * Logs](https://cloud.google.com/logging/docs/export).
      * 
*/ - public com.google.logging.v2.ListLogEntriesResponse listLogEntries(com.google.logging.v2.ListLogEntriesRequest request) { + public com.google.logging.v2.ListLogEntriesResponse listLogEntries( + com.google.logging.v2.ListLogEntriesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLogEntriesMethod(), getCallOptions(), request); } /** + * + * *
      * Lists the descriptors for monitored resource types used by Logging.
      * 
*/ - public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse listMonitoredResourceDescriptors(com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request) { + public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse + listMonitoredResourceDescriptors( + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListMonitoredResourceDescriptorsMethod(), getCallOptions(), request); } /** + * + * *
      * Lists the logs in projects, organizations, folders, or billing accounts.
      * Only logs that have entries are listed.
      * 
*/ - public com.google.logging.v2.ListLogsResponse listLogs(com.google.logging.v2.ListLogsRequest request) { + public com.google.logging.v2.ListLogsResponse listLogs( + com.google.logging.v2.ListLogsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLogsMethod(), getCallOptions(), request); } @@ -529,14 +692,14 @@ public com.google.logging.v2.ListLogsResponse listLogs(com.google.logging.v2.Lis /** * A stub to allow clients to do ListenableFuture-style rpc calls to service LoggingServiceV2. + * *
    * Service for ingesting and querying logs.
    * 
*/ public static final class LoggingServiceV2FutureStub extends io.grpc.stub.AbstractFutureStub { - private LoggingServiceV2FutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private LoggingServiceV2FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -547,6 +710,8 @@ protected LoggingServiceV2FutureStub build( } /** + * + * *
      * Deletes all the log entries in a log for the _Default Log Bucket. The log
      * reappears if it receives new entries. Log entries written shortly before
@@ -561,6 +726,8 @@ public com.google.common.util.concurrent.ListenableFuture
      * Writes log entries to Logging. This API method is the
      * only way to send log entries to Logging. This method
@@ -571,13 +738,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture writeLogEntries(
-        com.google.logging.v2.WriteLogEntriesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.logging.v2.WriteLogEntriesResponse>
+        writeLogEntries(com.google.logging.v2.WriteLogEntriesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getWriteLogEntriesMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Lists log entries.  Use this method to retrieve log entries that originated
      * from a project/folder/organization/billing account.  For ways to export log
@@ -585,31 +755,40 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture listLogEntries(
-        com.google.logging.v2.ListLogEntriesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.logging.v2.ListLogEntriesResponse>
+        listLogEntries(com.google.logging.v2.ListLogEntriesRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getListLogEntriesMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Lists the descriptors for monitored resource types used by Logging.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listMonitoredResourceDescriptors( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse> + listMonitoredResourceDescriptors( + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), request); + getChannel().newCall(getListMonitoredResourceDescriptorsMethod(), getCallOptions()), + request); } /** + * + * *
      * Lists the logs in projects, organizations, folders, or billing accounts.
      * Only logs that have entries are listed.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listLogs( - com.google.logging.v2.ListLogsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.logging.v2.ListLogsResponse> + listLogs(com.google.logging.v2.ListLogsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListLogsMethod(), getCallOptions()), request); } @@ -622,11 +801,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; @@ -640,24 +819,34 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_DELETE_LOG: - serviceImpl.deleteLog((com.google.logging.v2.DeleteLogRequest) request, + serviceImpl.deleteLog( + (com.google.logging.v2.DeleteLogRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_WRITE_LOG_ENTRIES: - serviceImpl.writeLogEntries((com.google.logging.v2.WriteLogEntriesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.writeLogEntries( + (com.google.logging.v2.WriteLogEntriesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_LIST_LOG_ENTRIES: - serviceImpl.listLogEntries((com.google.logging.v2.ListLogEntriesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listLogEntries( + (com.google.logging.v2.ListLogEntriesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS: - serviceImpl.listMonitoredResourceDescriptors((com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listMonitoredResourceDescriptors( + (com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse>) + responseObserver); break; case METHODID_LIST_LOGS: - serviceImpl.listLogs((com.google.logging.v2.ListLogsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listLogs( + (com.google.logging.v2.ListLogsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); break; default: throw new AssertionError(); @@ -670,8 +859,10 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_TAIL_LOG_ENTRIES: - return (io.grpc.stub.StreamObserver) serviceImpl.tailLogEntries( - (io.grpc.stub.StreamObserver) responseObserver); + return (io.grpc.stub.StreamObserver) + serviceImpl.tailLogEntries( + (io.grpc.stub.StreamObserver) + responseObserver); default: throw new AssertionError(); } @@ -681,52 +872,51 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getDeleteLogMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteLogRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_LOG))) + getDeleteLogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteLogRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_LOG))) .addMethod( - getWriteLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.WriteLogEntriesRequest, - com.google.logging.v2.WriteLogEntriesResponse>( - service, METHODID_WRITE_LOG_ENTRIES))) + getWriteLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.WriteLogEntriesRequest, + com.google.logging.v2.WriteLogEntriesResponse>( + service, METHODID_WRITE_LOG_ENTRIES))) .addMethod( - getListLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListLogEntriesRequest, - com.google.logging.v2.ListLogEntriesResponse>( - service, METHODID_LIST_LOG_ENTRIES))) + getListLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListLogEntriesRequest, + com.google.logging.v2.ListLogEntriesResponse>( + service, METHODID_LIST_LOG_ENTRIES))) .addMethod( - getListMonitoredResourceDescriptorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse>( - service, METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS))) + getListMonitoredResourceDescriptorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse>( + service, METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS))) .addMethod( - getListLogsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListLogsRequest, - com.google.logging.v2.ListLogsResponse>( - service, METHODID_LIST_LOGS))) + getListLogsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListLogsRequest, com.google.logging.v2.ListLogsResponse>( + service, METHODID_LIST_LOGS))) .addMethod( - getTailLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.logging.v2.TailLogEntriesRequest, - com.google.logging.v2.TailLogEntriesResponse>( - service, METHODID_TAIL_LOG_ENTRIES))) + getTailLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.logging.v2.TailLogEntriesRequest, + com.google.logging.v2.TailLogEntriesResponse>( + service, METHODID_TAIL_LOG_ENTRIES))) .build(); } - private static abstract class LoggingServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class LoggingServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { LoggingServiceV2BaseDescriptorSupplier() {} @java.lang.Override @@ -768,15 +958,17 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (LoggingServiceV2Grpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LoggingServiceV2FileDescriptorSupplier()) - .addMethod(getDeleteLogMethod()) - .addMethod(getWriteLogEntriesMethod()) - .addMethod(getListLogEntriesMethod()) - .addMethod(getListMonitoredResourceDescriptorsMethod()) - .addMethod(getListLogsMethod()) - .addMethod(getTailLogEntriesMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LoggingServiceV2FileDescriptorSupplier()) + .addMethod(getDeleteLogMethod()) + .addMethod(getWriteLogEntriesMethod()) + .addMethod(getListLogEntriesMethod()) + .addMethod(getListMonitoredResourceDescriptorsMethod()) + .addMethod(getListLogsMethod()) + .addMethod(getTailLogEntriesMethod()) + .build(); } } } diff --git a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java new file mode 100644 index 000000000..0d3a0a2a0 --- /dev/null +++ b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java @@ -0,0 +1,816 @@ +/* + * 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.logging.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service for configuring logs-based metrics.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/logging/v2/logging_metrics.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class MetricsServiceV2Grpc { + + private MetricsServiceV2Grpc() {} + + public static final java.lang.String SERVICE_NAME = "google.logging.v2.MetricsServiceV2"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.ListLogMetricsRequest, com.google.logging.v2.ListLogMetricsResponse> + getListLogMetricsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLogMetrics", + requestType = com.google.logging.v2.ListLogMetricsRequest.class, + responseType = com.google.logging.v2.ListLogMetricsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.logging.v2.ListLogMetricsRequest, com.google.logging.v2.ListLogMetricsResponse> + getListLogMetricsMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.ListLogMetricsRequest, + com.google.logging.v2.ListLogMetricsResponse> + getListLogMetricsMethod; + if ((getListLogMetricsMethod = MetricsServiceV2Grpc.getListLogMetricsMethod) == null) { + synchronized (MetricsServiceV2Grpc.class) { + if ((getListLogMetricsMethod = MetricsServiceV2Grpc.getListLogMetricsMethod) == null) { + MetricsServiceV2Grpc.getListLogMetricsMethod = + getListLogMetricsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLogMetrics")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLogMetricsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLogMetricsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new MetricsServiceV2MethodDescriptorSupplier("ListLogMetrics")) + .build(); + } + } + } + return getListLogMetricsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.GetLogMetricRequest, com.google.logging.v2.LogMetric> + getGetLogMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLogMetric", + requestType = com.google.logging.v2.GetLogMetricRequest.class, + responseType = com.google.logging.v2.LogMetric.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.logging.v2.GetLogMetricRequest, com.google.logging.v2.LogMetric> + getGetLogMetricMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.GetLogMetricRequest, com.google.logging.v2.LogMetric> + getGetLogMetricMethod; + if ((getGetLogMetricMethod = MetricsServiceV2Grpc.getGetLogMetricMethod) == null) { + synchronized (MetricsServiceV2Grpc.class) { + if ((getGetLogMetricMethod = MetricsServiceV2Grpc.getGetLogMetricMethod) == null) { + MetricsServiceV2Grpc.getGetLogMetricMethod = + getGetLogMetricMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLogMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetLogMetricRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogMetric.getDefaultInstance())) + .setSchemaDescriptor( + new MetricsServiceV2MethodDescriptorSupplier("GetLogMetric")) + .build(); + } + } + } + return getGetLogMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.CreateLogMetricRequest, com.google.logging.v2.LogMetric> + getCreateLogMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateLogMetric", + requestType = com.google.logging.v2.CreateLogMetricRequest.class, + responseType = com.google.logging.v2.LogMetric.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.logging.v2.CreateLogMetricRequest, com.google.logging.v2.LogMetric> + getCreateLogMetricMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.CreateLogMetricRequest, com.google.logging.v2.LogMetric> + getCreateLogMetricMethod; + if ((getCreateLogMetricMethod = MetricsServiceV2Grpc.getCreateLogMetricMethod) == null) { + synchronized (MetricsServiceV2Grpc.class) { + if ((getCreateLogMetricMethod = MetricsServiceV2Grpc.getCreateLogMetricMethod) == null) { + MetricsServiceV2Grpc.getCreateLogMetricMethod = + getCreateLogMetricMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateLogMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateLogMetricRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogMetric.getDefaultInstance())) + .setSchemaDescriptor( + new MetricsServiceV2MethodDescriptorSupplier("CreateLogMetric")) + .build(); + } + } + } + return getCreateLogMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateLogMetricRequest, com.google.logging.v2.LogMetric> + getUpdateLogMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateLogMetric", + requestType = com.google.logging.v2.UpdateLogMetricRequest.class, + responseType = com.google.logging.v2.LogMetric.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateLogMetricRequest, com.google.logging.v2.LogMetric> + getUpdateLogMetricMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateLogMetricRequest, com.google.logging.v2.LogMetric> + getUpdateLogMetricMethod; + if ((getUpdateLogMetricMethod = MetricsServiceV2Grpc.getUpdateLogMetricMethod) == null) { + synchronized (MetricsServiceV2Grpc.class) { + if ((getUpdateLogMetricMethod = MetricsServiceV2Grpc.getUpdateLogMetricMethod) == null) { + MetricsServiceV2Grpc.getUpdateLogMetricMethod = + getUpdateLogMetricMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateLogMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateLogMetricRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.LogMetric.getDefaultInstance())) + .setSchemaDescriptor( + new MetricsServiceV2MethodDescriptorSupplier("UpdateLogMetric")) + .build(); + } + } + } + return getUpdateLogMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteLogMetricRequest, com.google.protobuf.Empty> + getDeleteLogMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteLogMetric", + requestType = com.google.logging.v2.DeleteLogMetricRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteLogMetricRequest, com.google.protobuf.Empty> + getDeleteLogMetricMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteLogMetricRequest, com.google.protobuf.Empty> + getDeleteLogMetricMethod; + if ((getDeleteLogMetricMethod = MetricsServiceV2Grpc.getDeleteLogMetricMethod) == null) { + synchronized (MetricsServiceV2Grpc.class) { + if ((getDeleteLogMetricMethod = MetricsServiceV2Grpc.getDeleteLogMetricMethod) == null) { + MetricsServiceV2Grpc.getDeleteLogMetricMethod = + getDeleteLogMetricMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLogMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteLogMetricRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new MetricsServiceV2MethodDescriptorSupplier("DeleteLogMetric")) + .build(); + } + } + } + return getDeleteLogMetricMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static MetricsServiceV2Stub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetricsServiceV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricsServiceV2Stub(channel, callOptions); + } + }; + return MetricsServiceV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static MetricsServiceV2BlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetricsServiceV2BlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricsServiceV2BlockingStub(channel, callOptions); + } + }; + return MetricsServiceV2BlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static MetricsServiceV2FutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public MetricsServiceV2FutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricsServiceV2FutureStub(channel, callOptions); + } + }; + return MetricsServiceV2FutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for configuring logs-based metrics.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists logs-based metrics.
+     * 
+ */ + default void listLogMetrics( + com.google.logging.v2.ListLogMetricsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLogMetricsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a logs-based metric.
+     * 
+ */ + default void getLogMetric( + com.google.logging.v2.GetLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetLogMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a logs-based metric.
+     * 
+ */ + default void createLogMetric( + com.google.logging.v2.CreateLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateLogMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates or updates a logs-based metric.
+     * 
+ */ + default void updateLogMetric( + com.google.logging.v2.UpdateLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateLogMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a logs-based metric.
+     * 
+ */ + default void deleteLogMetric( + com.google.logging.v2.DeleteLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteLogMetricMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service MetricsServiceV2. + * + *
+   * Service for configuring logs-based metrics.
+   * 
+ */ + public abstract static class MetricsServiceV2ImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return MetricsServiceV2Grpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service MetricsServiceV2. + * + *
+   * Service for configuring logs-based metrics.
+   * 
+ */ + public static final class MetricsServiceV2Stub + extends io.grpc.stub.AbstractAsyncStub { + private MetricsServiceV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetricsServiceV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricsServiceV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Lists logs-based metrics.
+     * 
+ */ + public void listLogMetrics( + com.google.logging.v2.ListLogMetricsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLogMetricsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a logs-based metric.
+     * 
+ */ + public void getLogMetric( + com.google.logging.v2.GetLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLogMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a logs-based metric.
+     * 
+ */ + public void createLogMetric( + com.google.logging.v2.CreateLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateLogMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates or updates a logs-based metric.
+     * 
+ */ + public void updateLogMetric( + com.google.logging.v2.UpdateLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateLogMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a logs-based metric.
+     * 
+ */ + public void deleteLogMetric( + com.google.logging.v2.DeleteLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteLogMetricMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service MetricsServiceV2. + * + *
+   * Service for configuring logs-based metrics.
+   * 
+ */ + public static final class MetricsServiceV2BlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private MetricsServiceV2BlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetricsServiceV2BlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricsServiceV2BlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists logs-based metrics.
+     * 
+ */ + public com.google.logging.v2.ListLogMetricsResponse listLogMetrics( + com.google.logging.v2.ListLogMetricsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLogMetricsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a logs-based metric.
+     * 
+ */ + public com.google.logging.v2.LogMetric getLogMetric( + com.google.logging.v2.GetLogMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLogMetricMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a logs-based metric.
+     * 
+ */ + public com.google.logging.v2.LogMetric createLogMetric( + com.google.logging.v2.CreateLogMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateLogMetricMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates or updates a logs-based metric.
+     * 
+ */ + public com.google.logging.v2.LogMetric updateLogMetric( + com.google.logging.v2.UpdateLogMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateLogMetricMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a logs-based metric.
+     * 
+ */ + public com.google.protobuf.Empty deleteLogMetric( + com.google.logging.v2.DeleteLogMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteLogMetricMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service MetricsServiceV2. + * + *
+   * Service for configuring logs-based metrics.
+   * 
+ */ + public static final class MetricsServiceV2FutureStub + extends io.grpc.stub.AbstractFutureStub { + private MetricsServiceV2FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected MetricsServiceV2FutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new MetricsServiceV2FutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists logs-based metrics.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.logging.v2.ListLogMetricsResponse> + listLogMetrics(com.google.logging.v2.ListLogMetricsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLogMetricsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a logs-based metric.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getLogMetric(com.google.logging.v2.GetLogMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLogMetricMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a logs-based metric.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createLogMetric(com.google.logging.v2.CreateLogMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateLogMetricMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates or updates a logs-based metric.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateLogMetric(com.google.logging.v2.UpdateLogMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateLogMetricMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a logs-based metric.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteLogMetric(com.google.logging.v2.DeleteLogMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteLogMetricMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_LOG_METRICS = 0; + private static final int METHODID_GET_LOG_METRIC = 1; + private static final int METHODID_CREATE_LOG_METRIC = 2; + private static final int METHODID_UPDATE_LOG_METRIC = 3; + private static final int METHODID_DELETE_LOG_METRIC = 4; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private 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_LOG_METRICS: + serviceImpl.listLogMetrics( + (com.google.logging.v2.ListLogMetricsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_LOG_METRIC: + serviceImpl.getLogMetric( + (com.google.logging.v2.GetLogMetricRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_LOG_METRIC: + serviceImpl.createLogMetric( + (com.google.logging.v2.CreateLogMetricRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_LOG_METRIC: + serviceImpl.updateLogMetric( + (com.google.logging.v2.UpdateLogMetricRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_LOG_METRIC: + serviceImpl.deleteLogMetric( + (com.google.logging.v2.DeleteLogMetricRequest) 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( + getListLogMetricsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListLogMetricsRequest, + com.google.logging.v2.ListLogMetricsResponse>( + service, METHODID_LIST_LOG_METRICS))) + .addMethod( + getGetLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetLogMetricRequest, com.google.logging.v2.LogMetric>( + service, METHODID_GET_LOG_METRIC))) + .addMethod( + getCreateLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateLogMetricRequest, com.google.logging.v2.LogMetric>( + service, METHODID_CREATE_LOG_METRIC))) + .addMethod( + getUpdateLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateLogMetricRequest, com.google.logging.v2.LogMetric>( + service, METHODID_UPDATE_LOG_METRIC))) + .addMethod( + getDeleteLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteLogMetricRequest, com.google.protobuf.Empty>( + service, METHODID_DELETE_LOG_METRIC))) + .build(); + } + + private abstract static class MetricsServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + MetricsServiceV2BaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.logging.v2.LoggingMetricsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("MetricsServiceV2"); + } + } + + private static final class MetricsServiceV2FileDescriptorSupplier + extends MetricsServiceV2BaseDescriptorSupplier { + MetricsServiceV2FileDescriptorSupplier() {} + } + + private static final class MetricsServiceV2MethodDescriptorSupplier + extends MetricsServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + MetricsServiceV2MethodDescriptorSupplier(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 (MetricsServiceV2Grpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new MetricsServiceV2FileDescriptorSupplier()) + .addMethod(getListLogMetricsMethod()) + .addMethod(getGetLogMetricMethod()) + .addMethod(getCreateLogMetricMethod()) + .addMethod(getUpdateLogMetricMethod()) + .addMethod(getDeleteLogMetricMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java deleted file mode 100644 index 55229d6f4..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java +++ /dev/null @@ -1,5514 +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.logging.v2; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.logging.v2.stub.ConfigServiceV2Stub; -import com.google.cloud.logging.v2.stub.ConfigServiceV2StubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.logging.v2.BillingAccountLocationName; -import com.google.logging.v2.BillingAccountName; -import com.google.logging.v2.BucketMetadata; -import com.google.logging.v2.CmekSettings; -import com.google.logging.v2.CopyLogEntriesMetadata; -import com.google.logging.v2.CopyLogEntriesRequest; -import com.google.logging.v2.CopyLogEntriesResponse; -import com.google.logging.v2.CreateBucketRequest; -import com.google.logging.v2.CreateExclusionRequest; -import com.google.logging.v2.CreateLinkRequest; -import com.google.logging.v2.CreateSinkRequest; -import com.google.logging.v2.CreateViewRequest; -import com.google.logging.v2.DeleteBucketRequest; -import com.google.logging.v2.DeleteExclusionRequest; -import com.google.logging.v2.DeleteLinkRequest; -import com.google.logging.v2.DeleteSinkRequest; -import com.google.logging.v2.DeleteViewRequest; -import com.google.logging.v2.FolderLocationName; -import com.google.logging.v2.FolderName; -import com.google.logging.v2.GetBucketRequest; -import com.google.logging.v2.GetCmekSettingsRequest; -import com.google.logging.v2.GetExclusionRequest; -import com.google.logging.v2.GetLinkRequest; -import com.google.logging.v2.GetSettingsRequest; -import com.google.logging.v2.GetSinkRequest; -import com.google.logging.v2.GetViewRequest; -import com.google.logging.v2.Link; -import com.google.logging.v2.LinkMetadata; -import com.google.logging.v2.LinkName; -import com.google.logging.v2.ListBucketsRequest; -import com.google.logging.v2.ListBucketsResponse; -import com.google.logging.v2.ListExclusionsRequest; -import com.google.logging.v2.ListExclusionsResponse; -import com.google.logging.v2.ListLinksRequest; -import com.google.logging.v2.ListLinksResponse; -import com.google.logging.v2.ListSinksRequest; -import com.google.logging.v2.ListSinksResponse; -import com.google.logging.v2.ListViewsRequest; -import com.google.logging.v2.ListViewsResponse; -import com.google.logging.v2.LocationName; -import com.google.logging.v2.LogBucket; -import com.google.logging.v2.LogBucketName; -import com.google.logging.v2.LogExclusion; -import com.google.logging.v2.LogExclusionName; -import com.google.logging.v2.LogSink; -import com.google.logging.v2.LogSinkName; -import com.google.logging.v2.LogView; -import com.google.logging.v2.OrganizationLocationName; -import com.google.logging.v2.OrganizationName; -import com.google.logging.v2.ProjectName; -import com.google.logging.v2.Settings; -import com.google.logging.v2.SettingsName; -import com.google.logging.v2.UndeleteBucketRequest; -import com.google.logging.v2.UpdateBucketRequest; -import com.google.logging.v2.UpdateCmekSettingsRequest; -import com.google.logging.v2.UpdateExclusionRequest; -import com.google.logging.v2.UpdateSettingsRequest; -import com.google.logging.v2.UpdateSinkRequest; -import com.google.logging.v2.UpdateViewRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Service for configuring sinks used to route log entries. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (ConfigClient configClient = ConfigClient.create()) {
- *   GetBucketRequest request =
- *       GetBucketRequest.newBuilder()
- *           .setName(
- *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
- *                   .toString())
- *           .build();
- *   LogBucket response = configClient.getBucket(request);
- * }
- * }
- * - *

Note: close() needs to be called on the ConfigClient object to clean up resources such as - * threads. In the example above, try-with-resources is used, which automatically calls close(). - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Methods
MethodDescriptionMethod Variants

ListBuckets

Lists log buckets.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • listBuckets(ListBucketsRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • listBuckets(BillingAccountLocationName parent) - *

  • listBuckets(FolderLocationName parent) - *

  • listBuckets(LocationName parent) - *

  • listBuckets(OrganizationLocationName parent) - *

  • listBuckets(String parent) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • listBucketsPagedCallable() - *

  • listBucketsCallable() - *

- *

GetBucket

Gets a log bucket.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • getBucket(GetBucketRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • getBucketCallable() - *

- *

CreateBucketAsync

Creates a log bucket asynchronously that can be used to store log entries. - *

After a bucket has been created, the bucket's location cannot be changed.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • createBucketAsyncAsync(CreateBucketRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • createBucketAsyncOperationCallable() - *

  • createBucketAsyncCallable() - *

- *

UpdateBucketAsync

Updates a log bucket asynchronously. - *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will be returned. - *

After a bucket has been created, the bucket's location cannot be changed.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • updateBucketAsyncAsync(UpdateBucketRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • updateBucketAsyncOperationCallable() - *

  • updateBucketAsyncCallable() - *

- *

CreateBucket

Creates a log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • createBucket(CreateBucketRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • createBucketCallable() - *

- *

UpdateBucket

Updates a log bucket. - *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will be returned. - *

After a bucket has been created, the bucket's location cannot be changed.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • updateBucket(UpdateBucketRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • updateBucketCallable() - *

- *

DeleteBucket

Deletes a log bucket. - *

Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. After 7 days, the bucket will be purged and all log entries in the bucket will be permanently deleted.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • deleteBucket(DeleteBucketRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • deleteBucketCallable() - *

- *

UndeleteBucket

Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period of 7 days.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • undeleteBucket(UndeleteBucketRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • undeleteBucketCallable() - *

- *

ListViews

Lists views on a log bucket.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • listViews(ListViewsRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • listViews(String parent) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • listViewsPagedCallable() - *

  • listViewsCallable() - *

- *

GetView

Gets a view on a log bucket..

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • getView(GetViewRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • getViewCallable() - *

- *

CreateView

Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • createView(CreateViewRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • createViewCallable() - *

- *

UpdateView

Updates a view on a log bucket. This method replaces the following fields in the existing view with values from the new view: `filter`. If an `UNAVAILABLE` error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • updateView(UpdateViewRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • updateViewCallable() - *

- *

DeleteView

Deletes a view on a log bucket. If an `UNAVAILABLE` error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • deleteView(DeleteViewRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • deleteViewCallable() - *

- *

ListSinks

Lists sinks.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • listSinks(ListSinksRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • listSinks(BillingAccountName parent) - *

  • listSinks(FolderName parent) - *

  • listSinks(OrganizationName parent) - *

  • listSinks(ProjectName parent) - *

  • listSinks(String parent) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • listSinksPagedCallable() - *

  • listSinksCallable() - *

- *

GetSink

Gets a sink.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • getSink(GetSinkRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • getSink(LogSinkName sinkName) - *

  • getSink(String sinkName) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • getSinkCallable() - *

- *

CreateSink

Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • createSink(CreateSinkRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • createSink(BillingAccountName parent, LogSink sink) - *

  • createSink(FolderName parent, LogSink sink) - *

  • createSink(OrganizationName parent, LogSink sink) - *

  • createSink(ProjectName parent, LogSink sink) - *

  • createSink(String parent, LogSink sink) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • createSinkCallable() - *

- *

UpdateSink

Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: `destination`, and `filter`. - *

The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` field.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • updateSink(UpdateSinkRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • updateSink(LogSinkName sinkName, LogSink sink) - *

  • updateSink(String sinkName, LogSink sink) - *

  • updateSink(LogSinkName sinkName, LogSink sink, FieldMask updateMask) - *

  • updateSink(String sinkName, LogSink sink, FieldMask updateMask) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • updateSinkCallable() - *

- *

DeleteSink

Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also deleted.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • deleteSink(DeleteSinkRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • deleteSink(LogSinkName sinkName) - *

  • deleteSink(String sinkName) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • deleteSinkCallable() - *

- *

CreateLink

Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • createLinkAsync(CreateLinkRequest request) - *

- *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

- *
    - *
  • createLinkAsync(LogBucketName parent, Link link, String linkId) - *

  • createLinkAsync(String parent, Link link, String linkId) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • createLinkOperationCallable() - *

  • createLinkCallable() - *

- *

DeleteLink

Deletes a link. This will also delete the corresponding BigQuery linked dataset.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • deleteLinkAsync(DeleteLinkRequest request) - *

- *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

- *
    - *
  • deleteLinkAsync(LinkName name) - *

  • deleteLinkAsync(String name) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • deleteLinkOperationCallable() - *

  • deleteLinkCallable() - *

- *

ListLinks

Lists links.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • listLinks(ListLinksRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • listLinks(LogBucketName parent) - *

  • listLinks(String parent) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • listLinksPagedCallable() - *

  • listLinksCallable() - *

- *

GetLink

Gets a link.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • getLink(GetLinkRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • getLink(LinkName name) - *

  • getLink(String name) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • getLinkCallable() - *

- *

ListExclusions

Lists all the exclusions on the _Default sink in a parent resource.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • listExclusions(ListExclusionsRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • listExclusions(BillingAccountName parent) - *

  • listExclusions(FolderName parent) - *

  • listExclusions(OrganizationName parent) - *

  • listExclusions(ProjectName parent) - *

  • listExclusions(String parent) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • listExclusionsPagedCallable() - *

  • listExclusionsCallable() - *

- *

GetExclusion

Gets the description of an exclusion in the _Default sink.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • getExclusion(GetExclusionRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • getExclusion(LogExclusionName name) - *

  • getExclusion(String name) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • getExclusionCallable() - *

- *

CreateExclusion

Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • createExclusion(CreateExclusionRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • createExclusion(BillingAccountName parent, LogExclusion exclusion) - *

  • createExclusion(FolderName parent, LogExclusion exclusion) - *

  • createExclusion(OrganizationName parent, LogExclusion exclusion) - *

  • createExclusion(ProjectName parent, LogExclusion exclusion) - *

  • createExclusion(String parent, LogExclusion exclusion) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • createExclusionCallable() - *

- *

UpdateExclusion

Changes one or more properties of an existing exclusion in the _Default sink.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • updateExclusion(UpdateExclusionRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • updateExclusion(LogExclusionName name, LogExclusion exclusion, FieldMask updateMask) - *

  • updateExclusion(String name, LogExclusion exclusion, FieldMask updateMask) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • updateExclusionCallable() - *

- *

DeleteExclusion

Deletes an exclusion in the _Default sink.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • deleteExclusion(DeleteExclusionRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • deleteExclusion(LogExclusionName name) - *

  • deleteExclusion(String name) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • deleteExclusionCallable() - *

- *

GetCmekSettings

Gets the Logging CMEK settings for the given resource. - *

Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization. - *

See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • getCmekSettings(GetCmekSettingsRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • getCmekSettingsCallable() - *

- *

UpdateCmekSettings

Updates the Log Router CMEK settings for the given resource. - *

Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization. - *

[UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1) `kms_key_name` is invalid, or 2) the associated service account does not have the required `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key is disabled. - *

See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • updateCmekSettings(UpdateCmekSettingsRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • updateCmekSettingsCallable() - *

- *

GetSettings

Gets the Log Router settings for the given resource. - *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization. - *

See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • getSettings(GetSettingsRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • getSettings(SettingsName name) - *

  • getSettings(String name) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • getSettingsCallable() - *

- *

UpdateSettings

Updates the Log Router settings for the given resource. - *

Note: Settings for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization. - *

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) `kms_key_name` is invalid, or 2) the associated service account does not have the required `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy. - *

See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • updateSettings(UpdateSettingsRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • updateSettings(Settings settings, FieldMask updateMask) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • updateSettingsCallable() - *

- *

CopyLogEntries

Copies a set of log entries from a log bucket to a Cloud Storage bucket.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • copyLogEntriesAsync(CopyLogEntriesRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • copyLogEntriesOperationCallable() - *

  • copyLogEntriesCallable() - *

- *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of ConfigSettings to create(). - * For example: - * - *

To customize credentials: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * ConfigSettings configSettings =
- *     ConfigSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * ConfigClient configClient = ConfigClient.create(configSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * ConfigSettings configSettings = ConfigSettings.newBuilder().setEndpoint(myEndpoint).build();
- * ConfigClient configClient = ConfigClient.create(configSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class ConfigClient implements BackgroundResource { - private final ConfigSettings settings; - private final ConfigServiceV2Stub stub; - private final OperationsClient operationsClient; - - /** Constructs an instance of ConfigClient with default settings. */ - public static final ConfigClient create() throws IOException { - return create(ConfigSettings.newBuilder().build()); - } - - /** - * Constructs an instance of ConfigClient, using the given settings. The channels are created - * based on the settings passed in, or defaults for any settings that are not set. - */ - public static final ConfigClient create(ConfigSettings settings) throws IOException { - return new ConfigClient(settings); - } - - /** - * Constructs an instance of ConfigClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(ConfigSettings). - */ - public static final ConfigClient create(ConfigServiceV2Stub stub) { - return new ConfigClient(stub); - } - - /** - * Constructs an instance of ConfigClient, using the given settings. This is protected so that it - * is easy to make a subclass, but otherwise, the static factory methods should be preferred. - */ - protected ConfigClient(ConfigSettings settings) throws IOException { - this.settings = settings; - this.stub = ((ConfigServiceV2StubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - protected ConfigClient(ConfigServiceV2Stub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final ConfigSettings getSettings() { - return settings; - } - - public ConfigServiceV2Stub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final OperationsClient getOperationsClient() { - return operationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists log buckets. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   BillingAccountLocationName parent =
-   *       BillingAccountLocationName.of("[BILLING_ACCOUNT]", "[LOCATION]");
-   *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose buckets are to be listed: - *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" - * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" - * "folders/[FOLDER_ID]/locations/[LOCATION_ID]" - *

Note: The locations portion of the resource must be specified, but supplying the - * character `-` in place of [LOCATION_ID] will return all buckets. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListBucketsPagedResponse listBuckets(BillingAccountLocationName parent) { - ListBucketsRequest request = - ListBucketsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listBuckets(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists log buckets. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
-   *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose buckets are to be listed: - *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" - * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" - * "folders/[FOLDER_ID]/locations/[LOCATION_ID]" - *

Note: The locations portion of the resource must be specified, but supplying the - * character `-` in place of [LOCATION_ID] will return all buckets. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListBucketsPagedResponse listBuckets(FolderLocationName parent) { - ListBucketsRequest request = - ListBucketsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listBuckets(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists log buckets. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose buckets are to be listed: - *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" - * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" - * "folders/[FOLDER_ID]/locations/[LOCATION_ID]" - *

Note: The locations portion of the resource must be specified, but supplying the - * character `-` in place of [LOCATION_ID] will return all buckets. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListBucketsPagedResponse listBuckets(LocationName parent) { - ListBucketsRequest request = - ListBucketsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listBuckets(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists log buckets. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
-   *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose buckets are to be listed: - *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" - * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" - * "folders/[FOLDER_ID]/locations/[LOCATION_ID]" - *

Note: The locations portion of the resource must be specified, but supplying the - * character `-` in place of [LOCATION_ID] will return all buckets. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListBucketsPagedResponse listBuckets(OrganizationLocationName parent) { - ListBucketsRequest request = - ListBucketsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listBuckets(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists log buckets. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (LogBucket element : configClient.listBuckets(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose buckets are to be listed: - *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]" - * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]" - * "folders/[FOLDER_ID]/locations/[LOCATION_ID]" - *

Note: The locations portion of the resource must be specified, but supplying the - * character `-` in place of [LOCATION_ID] will return all buckets. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListBucketsPagedResponse listBuckets(String parent) { - ListBucketsRequest request = ListBucketsRequest.newBuilder().setParent(parent).build(); - return listBuckets(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists log buckets. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListBucketsRequest request =
-   *       ListBucketsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   for (LogBucket element : configClient.listBuckets(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) { - return listBucketsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists log buckets. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListBucketsRequest request =
-   *       ListBucketsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   ApiFuture future = configClient.listBucketsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (LogBucket element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listBucketsPagedCallable() { - return stub.listBucketsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists log buckets. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListBucketsRequest request =
-   *       ListBucketsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   while (true) {
-   *     ListBucketsResponse response = configClient.listBucketsCallable().call(request);
-   *     for (LogBucket element : response.getBucketsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listBucketsCallable() { - return stub.listBucketsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a log bucket. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   GetBucketRequest request =
-   *       GetBucketRequest.newBuilder()
-   *           .setName(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .build();
-   *   LogBucket response = configClient.getBucket(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogBucket getBucket(GetBucketRequest request) { - return getBucketCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a log bucket. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   GetBucketRequest request =
-   *       GetBucketRequest.newBuilder()
-   *           .setName(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future = configClient.getBucketCallable().futureCall(request);
-   *   // Do something.
-   *   LogBucket response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getBucketCallable() { - return stub.getBucketCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a log bucket asynchronously that can be used to store log entries. - * - *

After a bucket has been created, the bucket's location cannot be changed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CreateBucketRequest request =
-   *       CreateBucketRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setBucketId("bucketId-1603305307")
-   *           .setBucket(LogBucket.newBuilder().build())
-   *           .build();
-   *   LogBucket response = configClient.createBucketAsyncAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createBucketAsyncAsync( - CreateBucketRequest request) { - return createBucketAsyncOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a log bucket asynchronously that can be used to store log entries. - * - *

After a bucket has been created, the bucket's location cannot be changed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CreateBucketRequest request =
-   *       CreateBucketRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setBucketId("bucketId-1603305307")
-   *           .setBucket(LogBucket.newBuilder().build())
-   *           .build();
-   *   OperationFuture future =
-   *       configClient.createBucketAsyncOperationCallable().futureCall(request);
-   *   // Do something.
-   *   LogBucket response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createBucketAsyncOperationCallable() { - return stub.createBucketAsyncOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a log bucket asynchronously that can be used to store log entries. - * - *

After a bucket has been created, the bucket's location cannot be changed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CreateBucketRequest request =
-   *       CreateBucketRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setBucketId("bucketId-1603305307")
-   *           .setBucket(LogBucket.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = configClient.createBucketAsyncCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createBucketAsyncCallable() { - return stub.createBucketAsyncCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a log bucket asynchronously. - * - *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will - * be returned. - * - *

After a bucket has been created, the bucket's location cannot be changed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateBucketRequest request =
-   *       UpdateBucketRequest.newBuilder()
-   *           .setName(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .setBucket(LogBucket.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   LogBucket response = configClient.updateBucketAsyncAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateBucketAsyncAsync( - UpdateBucketRequest request) { - return updateBucketAsyncOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a log bucket asynchronously. - * - *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will - * be returned. - * - *

After a bucket has been created, the bucket's location cannot be changed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateBucketRequest request =
-   *       UpdateBucketRequest.newBuilder()
-   *           .setName(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .setBucket(LogBucket.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   OperationFuture future =
-   *       configClient.updateBucketAsyncOperationCallable().futureCall(request);
-   *   // Do something.
-   *   LogBucket response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - updateBucketAsyncOperationCallable() { - return stub.updateBucketAsyncOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a log bucket asynchronously. - * - *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will - * be returned. - * - *

After a bucket has been created, the bucket's location cannot be changed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateBucketRequest request =
-   *       UpdateBucketRequest.newBuilder()
-   *           .setName(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .setBucket(LogBucket.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = configClient.updateBucketAsyncCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateBucketAsyncCallable() { - return stub.updateBucketAsyncCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a log bucket that can be used to store log entries. After a bucket has been created, - * the bucket's location cannot be changed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CreateBucketRequest request =
-   *       CreateBucketRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setBucketId("bucketId-1603305307")
-   *           .setBucket(LogBucket.newBuilder().build())
-   *           .build();
-   *   LogBucket response = configClient.createBucket(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogBucket createBucket(CreateBucketRequest request) { - return createBucketCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a log bucket that can be used to store log entries. After a bucket has been created, - * the bucket's location cannot be changed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CreateBucketRequest request =
-   *       CreateBucketRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setBucketId("bucketId-1603305307")
-   *           .setBucket(LogBucket.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = configClient.createBucketCallable().futureCall(request);
-   *   // Do something.
-   *   LogBucket response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createBucketCallable() { - return stub.createBucketCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a log bucket. - * - *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will - * be returned. - * - *

After a bucket has been created, the bucket's location cannot be changed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateBucketRequest request =
-   *       UpdateBucketRequest.newBuilder()
-   *           .setName(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .setBucket(LogBucket.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   LogBucket response = configClient.updateBucket(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogBucket updateBucket(UpdateBucketRequest request) { - return updateBucketCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a log bucket. - * - *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will - * be returned. - * - *

After a bucket has been created, the bucket's location cannot be changed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateBucketRequest request =
-   *       UpdateBucketRequest.newBuilder()
-   *           .setName(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .setBucket(LogBucket.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = configClient.updateBucketCallable().futureCall(request);
-   *   // Do something.
-   *   LogBucket response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateBucketCallable() { - return stub.updateBucketCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a log bucket. - * - *

Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. After 7 days, the - * bucket will be purged and all log entries in the bucket will be permanently deleted. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   DeleteBucketRequest request =
-   *       DeleteBucketRequest.newBuilder()
-   *           .setName(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .build();
-   *   configClient.deleteBucket(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteBucket(DeleteBucketRequest request) { - deleteBucketCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a log bucket. - * - *

Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. After 7 days, the - * bucket will be purged and all log entries in the bucket will be permanently deleted. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   DeleteBucketRequest request =
-   *       DeleteBucketRequest.newBuilder()
-   *           .setName(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future = configClient.deleteBucketCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteBucketCallable() { - return stub.deleteBucketCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period - * of 7 days. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UndeleteBucketRequest request =
-   *       UndeleteBucketRequest.newBuilder()
-   *           .setName(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .build();
-   *   configClient.undeleteBucket(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void undeleteBucket(UndeleteBucketRequest request) { - undeleteBucketCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period - * of 7 days. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UndeleteBucketRequest request =
-   *       UndeleteBucketRequest.newBuilder()
-   *           .setName(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future = configClient.undeleteBucketCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable undeleteBucketCallable() { - return stub.undeleteBucketCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists views on a log bucket. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String parent = "parent-995424086";
-   *   for (LogView element : configClient.listViews(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The bucket whose views are to be listed: - *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListViewsPagedResponse listViews(String parent) { - ListViewsRequest request = ListViewsRequest.newBuilder().setParent(parent).build(); - return listViews(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists views on a log bucket. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListViewsRequest request =
-   *       ListViewsRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   for (LogView element : configClient.listViews(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListViewsPagedResponse listViews(ListViewsRequest request) { - return listViewsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists views on a log bucket. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListViewsRequest request =
-   *       ListViewsRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   ApiFuture future = configClient.listViewsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (LogView element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listViewsPagedCallable() { - return stub.listViewsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists views on a log bucket. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListViewsRequest request =
-   *       ListViewsRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   while (true) {
-   *     ListViewsResponse response = configClient.listViewsCallable().call(request);
-   *     for (LogView element : response.getViewsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listViewsCallable() { - return stub.listViewsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a view on a log bucket.. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   GetViewRequest request =
-   *       GetViewRequest.newBuilder()
-   *           .setName(
-   *               LogViewName.ofProjectLocationBucketViewName(
-   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]")
-   *                   .toString())
-   *           .build();
-   *   LogView response = configClient.getView(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogView getView(GetViewRequest request) { - return getViewCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a view on a log bucket.. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   GetViewRequest request =
-   *       GetViewRequest.newBuilder()
-   *           .setName(
-   *               LogViewName.ofProjectLocationBucketViewName(
-   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future = configClient.getViewCallable().futureCall(request);
-   *   // Do something.
-   *   LogView response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getViewCallable() { - return stub.getViewCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CreateViewRequest request =
-   *       CreateViewRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setViewId("viewId-816632160")
-   *           .setView(LogView.newBuilder().build())
-   *           .build();
-   *   LogView response = configClient.createView(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogView createView(CreateViewRequest request) { - return createViewCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CreateViewRequest request =
-   *       CreateViewRequest.newBuilder()
-   *           .setParent("parent-995424086")
-   *           .setViewId("viewId-816632160")
-   *           .setView(LogView.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = configClient.createViewCallable().futureCall(request);
-   *   // Do something.
-   *   LogView response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createViewCallable() { - return stub.createViewCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a view on a log bucket. This method replaces the following fields in the existing view - * with values from the new view: `filter`. If an `UNAVAILABLE` error is returned, this indicates - * that system is not in a state where it can update the view. If this occurs, please try again in - * a few minutes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateViewRequest request =
-   *       UpdateViewRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setView(LogView.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   LogView response = configClient.updateView(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogView updateView(UpdateViewRequest request) { - return updateViewCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a view on a log bucket. This method replaces the following fields in the existing view - * with values from the new view: `filter`. If an `UNAVAILABLE` error is returned, this indicates - * that system is not in a state where it can update the view. If this occurs, please try again in - * a few minutes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateViewRequest request =
-   *       UpdateViewRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setView(LogView.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = configClient.updateViewCallable().futureCall(request);
-   *   // Do something.
-   *   LogView response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateViewCallable() { - return stub.updateViewCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a view on a log bucket. If an `UNAVAILABLE` error is returned, this indicates that - * system is not in a state where it can delete the view. If this occurs, please try again in a - * few minutes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   DeleteViewRequest request =
-   *       DeleteViewRequest.newBuilder()
-   *           .setName(
-   *               LogViewName.ofProjectLocationBucketViewName(
-   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]")
-   *                   .toString())
-   *           .build();
-   *   configClient.deleteView(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteView(DeleteViewRequest request) { - deleteViewCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a view on a log bucket. If an `UNAVAILABLE` error is returned, this indicates that - * system is not in a state where it can delete the view. If this occurs, please try again in a - * few minutes. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   DeleteViewRequest request =
-   *       DeleteViewRequest.newBuilder()
-   *           .setName(
-   *               LogViewName.ofProjectLocationBucketViewName(
-   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future = configClient.deleteViewCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteViewCallable() { - return stub.deleteViewCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists sinks. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
-   *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose sinks are to be listed: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListSinksPagedResponse listSinks(BillingAccountName parent) { - ListSinksRequest request = - ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listSinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists sinks. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   FolderName parent = FolderName.of("[FOLDER]");
-   *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose sinks are to be listed: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListSinksPagedResponse listSinks(FolderName parent) { - ListSinksRequest request = - ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listSinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists sinks. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose sinks are to be listed: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListSinksPagedResponse listSinks(OrganizationName parent) { - ListSinksRequest request = - ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listSinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists sinks. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose sinks are to be listed: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListSinksPagedResponse listSinks(ProjectName parent) { - ListSinksRequest request = - ListSinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listSinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists sinks. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String parent = ProjectName.of("[PROJECT]").toString();
-   *   for (LogSink element : configClient.listSinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose sinks are to be listed: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListSinksPagedResponse listSinks(String parent) { - ListSinksRequest request = ListSinksRequest.newBuilder().setParent(parent).build(); - return listSinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists sinks. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListSinksRequest request =
-   *       ListSinksRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   for (LogSink element : configClient.listSinks(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListSinksPagedResponse listSinks(ListSinksRequest request) { - return listSinksPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists sinks. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListSinksRequest request =
-   *       ListSinksRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   ApiFuture future = configClient.listSinksPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (LogSink element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listSinksPagedCallable() { - return stub.listSinksPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists sinks. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListSinksRequest request =
-   *       ListSinksRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   while (true) {
-   *     ListSinksResponse response = configClient.listSinksCallable().call(request);
-   *     for (LogSink element : response.getSinksList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listSinksCallable() { - return stub.listSinksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
-   *   LogSink response = configClient.getSink(sinkName);
-   * }
-   * }
- * - * @param sinkName Required. The resource name of the sink: - *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" - * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" - * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

For example: - *

`"projects/my-project/sinks/my-sink"` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogSink getSink(LogSinkName sinkName) { - GetSinkRequest request = - GetSinkRequest.newBuilder() - .setSinkName(sinkName == null ? null : sinkName.toString()) - .build(); - return getSink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
-   *   LogSink response = configClient.getSink(sinkName);
-   * }
-   * }
- * - * @param sinkName Required. The resource name of the sink: - *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" - * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" - * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

For example: - *

`"projects/my-project/sinks/my-sink"` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogSink getSink(String sinkName) { - GetSinkRequest request = GetSinkRequest.newBuilder().setSinkName(sinkName).build(); - return getSink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   GetSinkRequest request =
-   *       GetSinkRequest.newBuilder()
-   *           .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString())
-   *           .build();
-   *   LogSink response = configClient.getSink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogSink getSink(GetSinkRequest request) { - return getSinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   GetSinkRequest request =
-   *       GetSinkRequest.newBuilder()
-   *           .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString())
-   *           .build();
-   *   ApiFuture future = configClient.getSinkCallable().futureCall(request);
-   *   // Do something.
-   *   LogSink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getSinkCallable() { - return stub.getSinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a sink that exports specified log entries to a destination. The export of - * newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not - * permitted to write to the destination. A sink can export log entries only from the resource - * owning the sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
-   *   LogSink sink = LogSink.newBuilder().build();
-   *   LogSink response = configClient.createSink(parent, sink);
-   * }
-   * }
- * - * @param parent Required. The resource in which to create the sink: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - *

For examples: - *

`"projects/my-project"` `"organizations/123456789"` - * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not - * already in use. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogSink createSink(BillingAccountName parent, LogSink sink) { - CreateSinkRequest request = - CreateSinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setSink(sink) - .build(); - return createSink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a sink that exports specified log entries to a destination. The export of - * newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not - * permitted to write to the destination. A sink can export log entries only from the resource - * owning the sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   FolderName parent = FolderName.of("[FOLDER]");
-   *   LogSink sink = LogSink.newBuilder().build();
-   *   LogSink response = configClient.createSink(parent, sink);
-   * }
-   * }
- * - * @param parent Required. The resource in which to create the sink: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - *

For examples: - *

`"projects/my-project"` `"organizations/123456789"` - * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not - * already in use. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogSink createSink(FolderName parent, LogSink sink) { - CreateSinkRequest request = - CreateSinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setSink(sink) - .build(); - return createSink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a sink that exports specified log entries to a destination. The export of - * newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not - * permitted to write to the destination. A sink can export log entries only from the resource - * owning the sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   LogSink sink = LogSink.newBuilder().build();
-   *   LogSink response = configClient.createSink(parent, sink);
-   * }
-   * }
- * - * @param parent Required. The resource in which to create the sink: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - *

For examples: - *

`"projects/my-project"` `"organizations/123456789"` - * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not - * already in use. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogSink createSink(OrganizationName parent, LogSink sink) { - CreateSinkRequest request = - CreateSinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setSink(sink) - .build(); - return createSink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a sink that exports specified log entries to a destination. The export of - * newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not - * permitted to write to the destination. A sink can export log entries only from the resource - * owning the sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   LogSink sink = LogSink.newBuilder().build();
-   *   LogSink response = configClient.createSink(parent, sink);
-   * }
-   * }
- * - * @param parent Required. The resource in which to create the sink: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - *

For examples: - *

`"projects/my-project"` `"organizations/123456789"` - * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not - * already in use. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogSink createSink(ProjectName parent, LogSink sink) { - CreateSinkRequest request = - CreateSinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setSink(sink) - .build(); - return createSink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a sink that exports specified log entries to a destination. The export of - * newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not - * permitted to write to the destination. A sink can export log entries only from the resource - * owning the sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String parent = ProjectName.of("[PROJECT]").toString();
-   *   LogSink sink = LogSink.newBuilder().build();
-   *   LogSink response = configClient.createSink(parent, sink);
-   * }
-   * }
- * - * @param parent Required. The resource in which to create the sink: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - *

For examples: - *

`"projects/my-project"` `"organizations/123456789"` - * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not - * already in use. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogSink createSink(String parent, LogSink sink) { - CreateSinkRequest request = - CreateSinkRequest.newBuilder().setParent(parent).setSink(sink).build(); - return createSink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a sink that exports specified log entries to a destination. The export of - * newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not - * permitted to write to the destination. A sink can export log entries only from the resource - * owning the sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CreateSinkRequest request =
-   *       CreateSinkRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setSink(LogSink.newBuilder().build())
-   *           .setUniqueWriterIdentity(true)
-   *           .build();
-   *   LogSink response = configClient.createSink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogSink createSink(CreateSinkRequest request) { - return createSinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a sink that exports specified log entries to a destination. The export of - * newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not - * permitted to write to the destination. A sink can export log entries only from the resource - * owning the sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CreateSinkRequest request =
-   *       CreateSinkRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setSink(LogSink.newBuilder().build())
-   *           .setUniqueWriterIdentity(true)
-   *           .build();
-   *   ApiFuture future = configClient.createSinkCallable().futureCall(request);
-   *   // Do something.
-   *   LogSink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createSinkCallable() { - return stub.createSinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a sink. This method replaces the following fields in the existing sink with values from - * the new sink: `destination`, and `filter`. - * - *

The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` - * field. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
-   *   LogSink sink = LogSink.newBuilder().build();
-   *   LogSink response = configClient.updateSink(sinkName, sink);
-   * }
-   * }
- * - * @param sinkName Required. The full resource name of the sink to update, including the parent - * resource and the sink identifier: - *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" - * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" - * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

For example: - *

`"projects/my-project/sinks/my-sink"` - * @param sink Required. The updated sink, whose name is the same identifier that appears as part - * of `sink_name`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogSink updateSink(LogSinkName sinkName, LogSink sink) { - UpdateSinkRequest request = - UpdateSinkRequest.newBuilder() - .setSinkName(sinkName == null ? null : sinkName.toString()) - .setSink(sink) - .build(); - return updateSink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a sink. This method replaces the following fields in the existing sink with values from - * the new sink: `destination`, and `filter`. - * - *

The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` - * field. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
-   *   LogSink sink = LogSink.newBuilder().build();
-   *   LogSink response = configClient.updateSink(sinkName, sink);
-   * }
-   * }
- * - * @param sinkName Required. The full resource name of the sink to update, including the parent - * resource and the sink identifier: - *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" - * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" - * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

For example: - *

`"projects/my-project/sinks/my-sink"` - * @param sink Required. The updated sink, whose name is the same identifier that appears as part - * of `sink_name`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogSink updateSink(String sinkName, LogSink sink) { - UpdateSinkRequest request = - UpdateSinkRequest.newBuilder().setSinkName(sinkName).setSink(sink).build(); - return updateSink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a sink. This method replaces the following fields in the existing sink with values from - * the new sink: `destination`, and `filter`. - * - *

The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` - * field. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
-   *   LogSink sink = LogSink.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   LogSink response = configClient.updateSink(sinkName, sink, updateMask);
-   * }
-   * }
- * - * @param sinkName Required. The full resource name of the sink to update, including the parent - * resource and the sink identifier: - *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" - * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" - * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

For example: - *

`"projects/my-project/sinks/my-sink"` - * @param sink Required. The updated sink, whose name is the same identifier that appears as part - * of `sink_name`. - * @param updateMask Optional. Field mask that specifies the fields in `sink` that need an update. - * A sink field will be overwritten if, and only if, it is in the update mask. `name` and - * output only fields cannot be updated. - *

An empty `updateMask` is temporarily treated as using the following mask for backwards - * compatibility purposes: - *

`destination,filter,includeChildren` - *

At some point in the future, behavior will be removed and specifying an empty - * `updateMask` will be an error. - *

For a detailed `FieldMask` definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - *

For example: `updateMask=filter` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogSink updateSink(LogSinkName sinkName, LogSink sink, FieldMask updateMask) { - UpdateSinkRequest request = - UpdateSinkRequest.newBuilder() - .setSinkName(sinkName == null ? null : sinkName.toString()) - .setSink(sink) - .setUpdateMask(updateMask) - .build(); - return updateSink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a sink. This method replaces the following fields in the existing sink with values from - * the new sink: `destination`, and `filter`. - * - *

The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` - * field. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
-   *   LogSink sink = LogSink.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   LogSink response = configClient.updateSink(sinkName, sink, updateMask);
-   * }
-   * }
- * - * @param sinkName Required. The full resource name of the sink to update, including the parent - * resource and the sink identifier: - *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" - * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" - * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

For example: - *

`"projects/my-project/sinks/my-sink"` - * @param sink Required. The updated sink, whose name is the same identifier that appears as part - * of `sink_name`. - * @param updateMask Optional. Field mask that specifies the fields in `sink` that need an update. - * A sink field will be overwritten if, and only if, it is in the update mask. `name` and - * output only fields cannot be updated. - *

An empty `updateMask` is temporarily treated as using the following mask for backwards - * compatibility purposes: - *

`destination,filter,includeChildren` - *

At some point in the future, behavior will be removed and specifying an empty - * `updateMask` will be an error. - *

For a detailed `FieldMask` definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - *

For example: `updateMask=filter` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogSink updateSink(String sinkName, LogSink sink, FieldMask updateMask) { - UpdateSinkRequest request = - UpdateSinkRequest.newBuilder() - .setSinkName(sinkName) - .setSink(sink) - .setUpdateMask(updateMask) - .build(); - return updateSink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a sink. This method replaces the following fields in the existing sink with values from - * the new sink: `destination`, and `filter`. - * - *

The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` - * field. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateSinkRequest request =
-   *       UpdateSinkRequest.newBuilder()
-   *           .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString())
-   *           .setSink(LogSink.newBuilder().build())
-   *           .setUniqueWriterIdentity(true)
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   LogSink response = configClient.updateSink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogSink updateSink(UpdateSinkRequest request) { - return updateSinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a sink. This method replaces the following fields in the existing sink with values from - * the new sink: `destination`, and `filter`. - * - *

The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` - * field. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateSinkRequest request =
-   *       UpdateSinkRequest.newBuilder()
-   *           .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString())
-   *           .setSink(LogSink.newBuilder().build())
-   *           .setUniqueWriterIdentity(true)
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = configClient.updateSinkCallable().futureCall(request);
-   *   // Do something.
-   *   LogSink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateSinkCallable() { - return stub.updateSinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also - * deleted. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]");
-   *   configClient.deleteSink(sinkName);
-   * }
-   * }
- * - * @param sinkName Required. The full resource name of the sink to delete, including the parent - * resource and the sink identifier: - *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" - * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" - * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

For example: - *

`"projects/my-project/sinks/my-sink"` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteSink(LogSinkName sinkName) { - DeleteSinkRequest request = - DeleteSinkRequest.newBuilder() - .setSinkName(sinkName == null ? null : sinkName.toString()) - .build(); - deleteSink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also - * deleted. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString();
-   *   configClient.deleteSink(sinkName);
-   * }
-   * }
- * - * @param sinkName Required. The full resource name of the sink to delete, including the parent - * resource and the sink identifier: - *

"projects/[PROJECT_ID]/sinks/[SINK_ID]" - * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" - * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

For example: - *

`"projects/my-project/sinks/my-sink"` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteSink(String sinkName) { - DeleteSinkRequest request = DeleteSinkRequest.newBuilder().setSinkName(sinkName).build(); - deleteSink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also - * deleted. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   DeleteSinkRequest request =
-   *       DeleteSinkRequest.newBuilder()
-   *           .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString())
-   *           .build();
-   *   configClient.deleteSink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteSink(DeleteSinkRequest request) { - deleteSinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also - * deleted. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   DeleteSinkRequest request =
-   *       DeleteSinkRequest.newBuilder()
-   *           .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString())
-   *           .build();
-   *   ApiFuture future = configClient.deleteSinkCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteSinkCallable() { - return stub.deleteSinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to - * read the logs stored in the log bucket. A log bucket may currently only contain one link. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   LogBucketName parent =
-   *       LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]");
-   *   Link link = Link.newBuilder().build();
-   *   String linkId = "linkId-1102667083";
-   *   Link response = configClient.createLinkAsync(parent, link, linkId).get();
-   * }
-   * }
- * - * @param parent Required. The full resource name of the bucket to create a link for. - *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" - * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" - * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" - * @param link Required. The new link. - * @param linkId Required. The ID to use for the link. The link_id can have up to 100 characters. - * A valid link_id must only have alphanumeric characters and underscores within it. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createLinkAsync( - LogBucketName parent, Link link, String linkId) { - CreateLinkRequest request = - CreateLinkRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setLink(link) - .setLinkId(linkId) - .build(); - return createLinkAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to - * read the logs stored in the log bucket. A log bucket may currently only contain one link. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String parent =
-   *       LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *           .toString();
-   *   Link link = Link.newBuilder().build();
-   *   String linkId = "linkId-1102667083";
-   *   Link response = configClient.createLinkAsync(parent, link, linkId).get();
-   * }
-   * }
- * - * @param parent Required. The full resource name of the bucket to create a link for. - *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" - * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" - * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" - * @param link Required. The new link. - * @param linkId Required. The ID to use for the link. The link_id can have up to 100 characters. - * A valid link_id must only have alphanumeric characters and underscores within it. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createLinkAsync( - String parent, Link link, String linkId) { - CreateLinkRequest request = - CreateLinkRequest.newBuilder().setParent(parent).setLink(link).setLinkId(linkId).build(); - return createLinkAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to - * read the logs stored in the log bucket. A log bucket may currently only contain one link. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CreateLinkRequest request =
-   *       CreateLinkRequest.newBuilder()
-   *           .setParent(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .setLink(Link.newBuilder().build())
-   *           .setLinkId("linkId-1102667083")
-   *           .build();
-   *   Link response = configClient.createLinkAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createLinkAsync(CreateLinkRequest request) { - return createLinkOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to - * read the logs stored in the log bucket. A log bucket may currently only contain one link. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CreateLinkRequest request =
-   *       CreateLinkRequest.newBuilder()
-   *           .setParent(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .setLink(Link.newBuilder().build())
-   *           .setLinkId("linkId-1102667083")
-   *           .build();
-   *   OperationFuture future =
-   *       configClient.createLinkOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Link response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createLinkOperationCallable() { - return stub.createLinkOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to - * read the logs stored in the log bucket. A log bucket may currently only contain one link. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CreateLinkRequest request =
-   *       CreateLinkRequest.newBuilder()
-   *           .setParent(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .setLink(Link.newBuilder().build())
-   *           .setLinkId("linkId-1102667083")
-   *           .build();
-   *   ApiFuture future = configClient.createLinkCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createLinkCallable() { - return stub.createLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a link. This will also delete the corresponding BigQuery linked dataset. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   LinkName name =
-   *       LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]");
-   *   configClient.deleteLinkAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The full resource name of the link to delete. - *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" - * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" - * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteLinkAsync(LinkName name) { - DeleteLinkRequest request = - DeleteLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteLinkAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a link. This will also delete the corresponding BigQuery linked dataset. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String name =
-   *       LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]")
-   *           .toString();
-   *   configClient.deleteLinkAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The full resource name of the link to delete. - *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" - * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" - * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteLinkAsync(String name) { - DeleteLinkRequest request = DeleteLinkRequest.newBuilder().setName(name).build(); - return deleteLinkAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a link. This will also delete the corresponding BigQuery linked dataset. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   DeleteLinkRequest request =
-   *       DeleteLinkRequest.newBuilder()
-   *           .setName(
-   *               LinkName.ofProjectLocationBucketLinkName(
-   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]")
-   *                   .toString())
-   *           .build();
-   *   configClient.deleteLinkAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteLinkAsync(DeleteLinkRequest request) { - return deleteLinkOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a link. This will also delete the corresponding BigQuery linked dataset. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   DeleteLinkRequest request =
-   *       DeleteLinkRequest.newBuilder()
-   *           .setName(
-   *               LinkName.ofProjectLocationBucketLinkName(
-   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]")
-   *                   .toString())
-   *           .build();
-   *   OperationFuture future =
-   *       configClient.deleteLinkOperationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final OperationCallable - deleteLinkOperationCallable() { - return stub.deleteLinkOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a link. This will also delete the corresponding BigQuery linked dataset. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   DeleteLinkRequest request =
-   *       DeleteLinkRequest.newBuilder()
-   *           .setName(
-   *               LinkName.ofProjectLocationBucketLinkName(
-   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future = configClient.deleteLinkCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteLinkCallable() { - return stub.deleteLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists links. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   LogBucketName parent =
-   *       LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]");
-   *   for (Link element : configClient.listLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose links are to be listed: - *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/" - * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" - * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" - * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/ - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLinksPagedResponse listLinks(LogBucketName parent) { - ListLinksRequest request = - ListLinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists links. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String parent =
-   *       LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *           .toString();
-   *   for (Link element : configClient.listLinks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose links are to be listed: - *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/" - * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" - * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" - * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/ - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLinksPagedResponse listLinks(String parent) { - ListLinksRequest request = ListLinksRequest.newBuilder().setParent(parent).build(); - return listLinks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists links. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListLinksRequest request =
-   *       ListLinksRequest.newBuilder()
-   *           .setParent(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   for (Link element : configClient.listLinks(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLinksPagedResponse listLinks(ListLinksRequest request) { - return listLinksPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists links. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListLinksRequest request =
-   *       ListLinksRequest.newBuilder()
-   *           .setParent(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   ApiFuture future = configClient.listLinksPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Link element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listLinksPagedCallable() { - return stub.listLinksPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists links. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListLinksRequest request =
-   *       ListLinksRequest.newBuilder()
-   *           .setParent(
-   *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
-   *                   .toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   while (true) {
-   *     ListLinksResponse response = configClient.listLinksCallable().call(request);
-   *     for (Link element : response.getLinksList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listLinksCallable() { - return stub.listLinksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a link. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   LinkName name =
-   *       LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]");
-   *   Link response = configClient.getLink(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the link: - *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" - * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" - * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID] - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Link getLink(LinkName name) { - GetLinkRequest request = - GetLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a link. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String name =
-   *       LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]")
-   *           .toString();
-   *   Link response = configClient.getLink(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the link: - *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" - * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" - * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID] - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Link getLink(String name) { - GetLinkRequest request = GetLinkRequest.newBuilder().setName(name).build(); - return getLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a link. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   GetLinkRequest request =
-   *       GetLinkRequest.newBuilder()
-   *           .setName(
-   *               LinkName.ofProjectLocationBucketLinkName(
-   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]")
-   *                   .toString())
-   *           .build();
-   *   Link response = configClient.getLink(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Link getLink(GetLinkRequest request) { - return getLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a link. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   GetLinkRequest request =
-   *       GetLinkRequest.newBuilder()
-   *           .setName(
-   *               LinkName.ofProjectLocationBucketLinkName(
-   *                       "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future = configClient.getLinkCallable().futureCall(request);
-   *   // Do something.
-   *   Link response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getLinkCallable() { - return stub.getLinkCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all the exclusions on the _Default sink in a parent resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
-   *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose exclusions are to be listed. - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListExclusionsPagedResponse listExclusions(BillingAccountName parent) { - ListExclusionsRequest request = - ListExclusionsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listExclusions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all the exclusions on the _Default sink in a parent resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   FolderName parent = FolderName.of("[FOLDER]");
-   *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose exclusions are to be listed. - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListExclusionsPagedResponse listExclusions(FolderName parent) { - ListExclusionsRequest request = - ListExclusionsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listExclusions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all the exclusions on the _Default sink in a parent resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose exclusions are to be listed. - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListExclusionsPagedResponse listExclusions(OrganizationName parent) { - ListExclusionsRequest request = - ListExclusionsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listExclusions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all the exclusions on the _Default sink in a parent resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose exclusions are to be listed. - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListExclusionsPagedResponse listExclusions(ProjectName parent) { - ListExclusionsRequest request = - ListExclusionsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listExclusions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all the exclusions on the _Default sink in a parent resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String parent = ProjectName.of("[PROJECT]").toString();
-   *   for (LogExclusion element : configClient.listExclusions(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent resource whose exclusions are to be listed. - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListExclusionsPagedResponse listExclusions(String parent) { - ListExclusionsRequest request = ListExclusionsRequest.newBuilder().setParent(parent).build(); - return listExclusions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all the exclusions on the _Default sink in a parent resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListExclusionsRequest request =
-   *       ListExclusionsRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   for (LogExclusion element : configClient.listExclusions(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest request) { - return listExclusionsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all the exclusions on the _Default sink in a parent resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListExclusionsRequest request =
-   *       ListExclusionsRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   ApiFuture future =
-   *       configClient.listExclusionsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (LogExclusion element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listExclusionsPagedCallable() { - return stub.listExclusionsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all the exclusions on the _Default sink in a parent resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ListExclusionsRequest request =
-   *       ListExclusionsRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   while (true) {
-   *     ListExclusionsResponse response = configClient.listExclusionsCallable().call(request);
-   *     for (LogExclusion element : response.getExclusionsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listExclusionsCallable() { - return stub.listExclusionsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the description of an exclusion in the _Default sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]");
-   *   LogExclusion response = configClient.getExclusion(name);
-   * }
-   * }
- * - * @param name Required. The resource name of an existing exclusion: - *

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" - * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" - * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" - *

For example: - *

`"projects/my-project/exclusions/my-exclusion"` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogExclusion getExclusion(LogExclusionName name) { - GetExclusionRequest request = - GetExclusionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getExclusion(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the description of an exclusion in the _Default sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString();
-   *   LogExclusion response = configClient.getExclusion(name);
-   * }
-   * }
- * - * @param name Required. The resource name of an existing exclusion: - *

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" - * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" - * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" - *

For example: - *

`"projects/my-project/exclusions/my-exclusion"` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogExclusion getExclusion(String name) { - GetExclusionRequest request = GetExclusionRequest.newBuilder().setName(name).build(); - return getExclusion(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the description of an exclusion in the _Default sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   GetExclusionRequest request =
-   *       GetExclusionRequest.newBuilder()
-   *           .setName(
-   *               LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
-   *           .build();
-   *   LogExclusion response = configClient.getExclusion(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogExclusion getExclusion(GetExclusionRequest request) { - return getExclusionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the description of an exclusion in the _Default sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   GetExclusionRequest request =
-   *       GetExclusionRequest.newBuilder()
-   *           .setName(
-   *               LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
-   *           .build();
-   *   ApiFuture future = configClient.getExclusionCallable().futureCall(request);
-   *   // Do something.
-   *   LogExclusion response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getExclusionCallable() { - return stub.getExclusionCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries - * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
-   *   LogExclusion exclusion = LogExclusion.newBuilder().build();
-   *   LogExclusion response = configClient.createExclusion(parent, exclusion);
-   * }
-   * }
- * - * @param parent Required. The parent resource in which to create the exclusion: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - *

For examples: - *

`"projects/my-logging-project"` `"organizations/123456789"` - * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that - * is not already used in the parent resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogExclusion createExclusion(BillingAccountName parent, LogExclusion exclusion) { - CreateExclusionRequest request = - CreateExclusionRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setExclusion(exclusion) - .build(); - return createExclusion(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries - * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   FolderName parent = FolderName.of("[FOLDER]");
-   *   LogExclusion exclusion = LogExclusion.newBuilder().build();
-   *   LogExclusion response = configClient.createExclusion(parent, exclusion);
-   * }
-   * }
- * - * @param parent Required. The parent resource in which to create the exclusion: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - *

For examples: - *

`"projects/my-logging-project"` `"organizations/123456789"` - * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that - * is not already used in the parent resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogExclusion createExclusion(FolderName parent, LogExclusion exclusion) { - CreateExclusionRequest request = - CreateExclusionRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setExclusion(exclusion) - .build(); - return createExclusion(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries - * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   LogExclusion exclusion = LogExclusion.newBuilder().build();
-   *   LogExclusion response = configClient.createExclusion(parent, exclusion);
-   * }
-   * }
- * - * @param parent Required. The parent resource in which to create the exclusion: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - *

For examples: - *

`"projects/my-logging-project"` `"organizations/123456789"` - * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that - * is not already used in the parent resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogExclusion createExclusion(OrganizationName parent, LogExclusion exclusion) { - CreateExclusionRequest request = - CreateExclusionRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setExclusion(exclusion) - .build(); - return createExclusion(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries - * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   LogExclusion exclusion = LogExclusion.newBuilder().build();
-   *   LogExclusion response = configClient.createExclusion(parent, exclusion);
-   * }
-   * }
- * - * @param parent Required. The parent resource in which to create the exclusion: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - *

For examples: - *

`"projects/my-logging-project"` `"organizations/123456789"` - * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that - * is not already used in the parent resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogExclusion createExclusion(ProjectName parent, LogExclusion exclusion) { - CreateExclusionRequest request = - CreateExclusionRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setExclusion(exclusion) - .build(); - return createExclusion(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries - * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String parent = ProjectName.of("[PROJECT]").toString();
-   *   LogExclusion exclusion = LogExclusion.newBuilder().build();
-   *   LogExclusion response = configClient.createExclusion(parent, exclusion);
-   * }
-   * }
- * - * @param parent Required. The parent resource in which to create the exclusion: - *

"projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" - *

For examples: - *

`"projects/my-logging-project"` `"organizations/123456789"` - * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that - * is not already used in the parent resource. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogExclusion createExclusion(String parent, LogExclusion exclusion) { - CreateExclusionRequest request = - CreateExclusionRequest.newBuilder().setParent(parent).setExclusion(exclusion).build(); - return createExclusion(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries - * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CreateExclusionRequest request =
-   *       CreateExclusionRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setExclusion(LogExclusion.newBuilder().build())
-   *           .build();
-   *   LogExclusion response = configClient.createExclusion(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogExclusion createExclusion(CreateExclusionRequest request) { - return createExclusionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries - * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CreateExclusionRequest request =
-   *       CreateExclusionRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setExclusion(LogExclusion.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = configClient.createExclusionCallable().futureCall(request);
-   *   // Do something.
-   *   LogExclusion response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createExclusionCallable() { - return stub.createExclusionCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Changes one or more properties of an existing exclusion in the _Default sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]");
-   *   LogExclusion exclusion = LogExclusion.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   LogExclusion response = configClient.updateExclusion(name, exclusion, updateMask);
-   * }
-   * }
- * - * @param name Required. The resource name of the exclusion to update: - *

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" - * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" - * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" - *

For example: - *

`"projects/my-project/exclusions/my-exclusion"` - * @param exclusion Required. New values for the existing exclusion. Only the fields specified in - * `update_mask` are relevant. - * @param updateMask Required. A non-empty list of fields to change in the existing exclusion. New - * values for the fields are taken from the corresponding fields in the - * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not - * mentioned in `update_mask` are not changed and are ignored in the request. - *

For example, to change the filter and description of an exclusion, specify an - * `update_mask` of `"filter,description"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogExclusion updateExclusion( - LogExclusionName name, LogExclusion exclusion, FieldMask updateMask) { - UpdateExclusionRequest request = - UpdateExclusionRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setExclusion(exclusion) - .setUpdateMask(updateMask) - .build(); - return updateExclusion(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Changes one or more properties of an existing exclusion in the _Default sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString();
-   *   LogExclusion exclusion = LogExclusion.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   LogExclusion response = configClient.updateExclusion(name, exclusion, updateMask);
-   * }
-   * }
- * - * @param name Required. The resource name of the exclusion to update: - *

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" - * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" - * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" - *

For example: - *

`"projects/my-project/exclusions/my-exclusion"` - * @param exclusion Required. New values for the existing exclusion. Only the fields specified in - * `update_mask` are relevant. - * @param updateMask Required. A non-empty list of fields to change in the existing exclusion. New - * values for the fields are taken from the corresponding fields in the - * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not - * mentioned in `update_mask` are not changed and are ignored in the request. - *

For example, to change the filter and description of an exclusion, specify an - * `update_mask` of `"filter,description"`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogExclusion updateExclusion( - String name, LogExclusion exclusion, FieldMask updateMask) { - UpdateExclusionRequest request = - UpdateExclusionRequest.newBuilder() - .setName(name) - .setExclusion(exclusion) - .setUpdateMask(updateMask) - .build(); - return updateExclusion(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Changes one or more properties of an existing exclusion in the _Default sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateExclusionRequest request =
-   *       UpdateExclusionRequest.newBuilder()
-   *           .setName(
-   *               LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
-   *           .setExclusion(LogExclusion.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   LogExclusion response = configClient.updateExclusion(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogExclusion updateExclusion(UpdateExclusionRequest request) { - return updateExclusionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Changes one or more properties of an existing exclusion in the _Default sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateExclusionRequest request =
-   *       UpdateExclusionRequest.newBuilder()
-   *           .setName(
-   *               LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
-   *           .setExclusion(LogExclusion.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = configClient.updateExclusionCallable().futureCall(request);
-   *   // Do something.
-   *   LogExclusion response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateExclusionCallable() { - return stub.updateExclusionCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an exclusion in the _Default sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]");
-   *   configClient.deleteExclusion(name);
-   * }
-   * }
- * - * @param name Required. The resource name of an existing exclusion to delete: - *

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" - * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" - * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" - *

For example: - *

`"projects/my-project/exclusions/my-exclusion"` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteExclusion(LogExclusionName name) { - DeleteExclusionRequest request = - DeleteExclusionRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteExclusion(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an exclusion in the _Default sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString();
-   *   configClient.deleteExclusion(name);
-   * }
-   * }
- * - * @param name Required. The resource name of an existing exclusion to delete: - *

"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]" - * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" - * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" - * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" - *

For example: - *

`"projects/my-project/exclusions/my-exclusion"` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteExclusion(String name) { - DeleteExclusionRequest request = DeleteExclusionRequest.newBuilder().setName(name).build(); - deleteExclusion(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an exclusion in the _Default sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   DeleteExclusionRequest request =
-   *       DeleteExclusionRequest.newBuilder()
-   *           .setName(
-   *               LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
-   *           .build();
-   *   configClient.deleteExclusion(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteExclusion(DeleteExclusionRequest request) { - deleteExclusionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an exclusion in the _Default sink. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   DeleteExclusionRequest request =
-   *       DeleteExclusionRequest.newBuilder()
-   *           .setName(
-   *               LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString())
-   *           .build();
-   *   ApiFuture future = configClient.deleteExclusionCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteExclusionCallable() { - return stub.deleteExclusionCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the Logging CMEK settings for the given resource. - * - *

Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, - * organizations and billing accounts. Once configured for an organization, it applies to all - * projects and folders in the Google Cloud organization. - * - *

See [Enabling CMEK for Log - * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   GetCmekSettingsRequest request =
-   *       GetCmekSettingsRequest.newBuilder()
-   *           .setName(CmekSettingsName.ofProjectName("[PROJECT]").toString())
-   *           .build();
-   *   CmekSettings response = configClient.getCmekSettings(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CmekSettings getCmekSettings(GetCmekSettingsRequest request) { - return getCmekSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the Logging CMEK settings for the given resource. - * - *

Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, - * organizations and billing accounts. Once configured for an organization, it applies to all - * projects and folders in the Google Cloud organization. - * - *

See [Enabling CMEK for Log - * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   GetCmekSettingsRequest request =
-   *       GetCmekSettingsRequest.newBuilder()
-   *           .setName(CmekSettingsName.ofProjectName("[PROJECT]").toString())
-   *           .build();
-   *   ApiFuture future = configClient.getCmekSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   CmekSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getCmekSettingsCallable() { - return stub.getCmekSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the Log Router CMEK settings for the given resource. - * - *

Note: CMEK for the Log Router can currently only be configured for Google Cloud - * organizations. Once configured, it applies to all projects and folders in the Google Cloud - * organization. - * - *

[UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1) - * `kms_key_name` is invalid, or 2) the associated service account does not have the required - * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key - * is disabled. - * - *

See [Enabling CMEK for Log - * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateCmekSettingsRequest request =
-   *       UpdateCmekSettingsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setCmekSettings(CmekSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   CmekSettings response = configClient.updateCmekSettings(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CmekSettings updateCmekSettings(UpdateCmekSettingsRequest request) { - return updateCmekSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the Log Router CMEK settings for the given resource. - * - *

Note: CMEK for the Log Router can currently only be configured for Google Cloud - * organizations. Once configured, it applies to all projects and folders in the Google Cloud - * organization. - * - *

[UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1) - * `kms_key_name` is invalid, or 2) the associated service account does not have the required - * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key - * is disabled. - * - *

See [Enabling CMEK for Log - * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateCmekSettingsRequest request =
-   *       UpdateCmekSettingsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setCmekSettings(CmekSettings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       configClient.updateCmekSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   CmekSettings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateCmekSettingsCallable() { - return stub.updateCmekSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the Log Router settings for the given resource. - * - *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, - * organizations and billing accounts. Currently it can only be configured for organizations. Once - * configured for an organization, it applies to all projects and folders in the Google Cloud - * organization. - * - *

See [Enabling CMEK for Log - * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   SettingsName name = SettingsName.ofProjectName("[PROJECT]");
-   *   Settings response = configClient.getSettings(name);
-   * }
-   * }
- * - * @param name Required. The resource for which to retrieve settings. - *

"projects/[PROJECT_ID]/settings" "organizations/[ORGANIZATION_ID]/settings" - * "billingAccounts/[BILLING_ACCOUNT_ID]/settings" "folders/[FOLDER_ID]/settings" - *

For example: - *

`"organizations/12345/settings"` - *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, - * organizations and billing accounts. Currently it can only be configured for organizations. - * Once configured for an organization, it applies to all projects and folders in the Google - * Cloud organization. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Settings getSettings(SettingsName name) { - GetSettingsRequest request = - GetSettingsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the Log Router settings for the given resource. - * - *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, - * organizations and billing accounts. Currently it can only be configured for organizations. Once - * configured for an organization, it applies to all projects and folders in the Google Cloud - * organization. - * - *

See [Enabling CMEK for Log - * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   String name = SettingsName.ofProjectName("[PROJECT]").toString();
-   *   Settings response = configClient.getSettings(name);
-   * }
-   * }
- * - * @param name Required. The resource for which to retrieve settings. - *

"projects/[PROJECT_ID]/settings" "organizations/[ORGANIZATION_ID]/settings" - * "billingAccounts/[BILLING_ACCOUNT_ID]/settings" "folders/[FOLDER_ID]/settings" - *

For example: - *

`"organizations/12345/settings"` - *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, - * organizations and billing accounts. Currently it can only be configured for organizations. - * Once configured for an organization, it applies to all projects and folders in the Google - * Cloud organization. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Settings getSettings(String name) { - GetSettingsRequest request = GetSettingsRequest.newBuilder().setName(name).build(); - return getSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the Log Router settings for the given resource. - * - *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, - * organizations and billing accounts. Currently it can only be configured for organizations. Once - * configured for an organization, it applies to all projects and folders in the Google Cloud - * organization. - * - *

See [Enabling CMEK for Log - * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   GetSettingsRequest request =
-   *       GetSettingsRequest.newBuilder()
-   *           .setName(SettingsName.ofProjectName("[PROJECT]").toString())
-   *           .build();
-   *   Settings response = configClient.getSettings(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Settings getSettings(GetSettingsRequest request) { - return getSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the Log Router settings for the given resource. - * - *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, - * organizations and billing accounts. Currently it can only be configured for organizations. Once - * configured for an organization, it applies to all projects and folders in the Google Cloud - * organization. - * - *

See [Enabling CMEK for Log - * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   GetSettingsRequest request =
-   *       GetSettingsRequest.newBuilder()
-   *           .setName(SettingsName.ofProjectName("[PROJECT]").toString())
-   *           .build();
-   *   ApiFuture future = configClient.getSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   Settings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getSettingsCallable() { - return stub.getSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the Log Router settings for the given resource. - * - *

Note: Settings for the Log Router can currently only be configured for Google Cloud - * organizations. Once configured, it applies to all projects and folders in the Google Cloud - * organization. - * - *

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) - * `kms_key_name` is invalid, or 2) the associated service account does not have the required - * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key - * is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy. - * - *

See [Enabling CMEK for Log - * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   Settings settings = Settings.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Settings response = configClient.updateSettings(settings, updateMask);
-   * }
-   * }
- * - * @param settings Required. The settings to update. - *

See [Enabling CMEK for Log - * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more - * information. - * @param updateMask Optional. Field mask identifying which fields from `settings` should be - * updated. A field will be overwritten if and only if it is in the update mask. Output only - * fields cannot be updated. - *

See [FieldMask][google.protobuf.FieldMask] for more information. - *

For example: `"updateMask=kmsKeyName"` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Settings updateSettings(Settings settings, FieldMask updateMask) { - UpdateSettingsRequest request = - UpdateSettingsRequest.newBuilder().setSettings(settings).setUpdateMask(updateMask).build(); - return updateSettings(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the Log Router settings for the given resource. - * - *

Note: Settings for the Log Router can currently only be configured for Google Cloud - * organizations. Once configured, it applies to all projects and folders in the Google Cloud - * organization. - * - *

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) - * `kms_key_name` is invalid, or 2) the associated service account does not have the required - * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key - * is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy. - * - *

See [Enabling CMEK for Log - * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateSettingsRequest request =
-   *       UpdateSettingsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setSettings(Settings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Settings response = configClient.updateSettings(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Settings updateSettings(UpdateSettingsRequest request) { - return updateSettingsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the Log Router settings for the given resource. - * - *

Note: Settings for the Log Router can currently only be configured for Google Cloud - * organizations. Once configured, it applies to all projects and folders in the Google Cloud - * organization. - * - *

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) - * `kms_key_name` is invalid, or 2) the associated service account does not have the required - * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key - * is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy. - * - *

See [Enabling CMEK for Log - * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   UpdateSettingsRequest request =
-   *       UpdateSettingsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setSettings(Settings.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = configClient.updateSettingsCallable().futureCall(request);
-   *   // Do something.
-   *   Settings response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateSettingsCallable() { - return stub.updateSettingsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Copies a set of log entries from a log bucket to a Cloud Storage bucket. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CopyLogEntriesRequest request =
-   *       CopyLogEntriesRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setDestination("destination-1429847026")
-   *           .build();
-   *   CopyLogEntriesResponse response = configClient.copyLogEntriesAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture copyLogEntriesAsync( - CopyLogEntriesRequest request) { - return copyLogEntriesOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Copies a set of log entries from a log bucket to a Cloud Storage bucket. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CopyLogEntriesRequest request =
-   *       CopyLogEntriesRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setDestination("destination-1429847026")
-   *           .build();
-   *   OperationFuture future =
-   *       configClient.copyLogEntriesOperationCallable().futureCall(request);
-   *   // Do something.
-   *   CopyLogEntriesResponse response = future.get();
-   * }
-   * }
- */ - public final OperationCallable< - CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> - copyLogEntriesOperationCallable() { - return stub.copyLogEntriesOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Copies a set of log entries from a log bucket to a Cloud Storage bucket. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (ConfigClient configClient = ConfigClient.create()) {
-   *   CopyLogEntriesRequest request =
-   *       CopyLogEntriesRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setDestination("destination-1429847026")
-   *           .build();
-   *   ApiFuture future = configClient.copyLogEntriesCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable copyLogEntriesCallable() { - return stub.copyLogEntriesCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListBucketsPagedResponse - extends AbstractPagedListResponse< - ListBucketsRequest, - ListBucketsResponse, - LogBucket, - ListBucketsPage, - ListBucketsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListBucketsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListBucketsPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListBucketsPagedResponse(ListBucketsPage page) { - super(page, ListBucketsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListBucketsPage - extends AbstractPage { - - private ListBucketsPage( - PageContext context, - ListBucketsResponse response) { - super(context, response); - } - - private static ListBucketsPage createEmptyPage() { - return new ListBucketsPage(null, null); - } - - @Override - protected ListBucketsPage createPage( - PageContext context, - ListBucketsResponse response) { - return new ListBucketsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListBucketsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListBucketsRequest, - ListBucketsResponse, - LogBucket, - ListBucketsPage, - ListBucketsFixedSizeCollection> { - - private ListBucketsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListBucketsFixedSizeCollection createEmptyCollection() { - return new ListBucketsFixedSizeCollection(null, 0); - } - - @Override - protected ListBucketsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListBucketsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListViewsPagedResponse - extends AbstractPagedListResponse< - ListViewsRequest, - ListViewsResponse, - LogView, - ListViewsPage, - ListViewsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListViewsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListViewsPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListViewsPagedResponse(ListViewsPage page) { - super(page, ListViewsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListViewsPage - extends AbstractPage { - - private ListViewsPage( - PageContext context, - ListViewsResponse response) { - super(context, response); - } - - private static ListViewsPage createEmptyPage() { - return new ListViewsPage(null, null); - } - - @Override - protected ListViewsPage createPage( - PageContext context, - ListViewsResponse response) { - return new ListViewsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListViewsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListViewsRequest, - ListViewsResponse, - LogView, - ListViewsPage, - ListViewsFixedSizeCollection> { - - private ListViewsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListViewsFixedSizeCollection createEmptyCollection() { - return new ListViewsFixedSizeCollection(null, 0); - } - - @Override - protected ListViewsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListViewsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListSinksPagedResponse - extends AbstractPagedListResponse< - ListSinksRequest, - ListSinksResponse, - LogSink, - ListSinksPage, - ListSinksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListSinksPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListSinksPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListSinksPagedResponse(ListSinksPage page) { - super(page, ListSinksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListSinksPage - extends AbstractPage { - - private ListSinksPage( - PageContext context, - ListSinksResponse response) { - super(context, response); - } - - private static ListSinksPage createEmptyPage() { - return new ListSinksPage(null, null); - } - - @Override - protected ListSinksPage createPage( - PageContext context, - ListSinksResponse response) { - return new ListSinksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListSinksFixedSizeCollection - extends AbstractFixedSizeCollection< - ListSinksRequest, - ListSinksResponse, - LogSink, - ListSinksPage, - ListSinksFixedSizeCollection> { - - private ListSinksFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListSinksFixedSizeCollection createEmptyCollection() { - return new ListSinksFixedSizeCollection(null, 0); - } - - @Override - protected ListSinksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListSinksFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListLinksPagedResponse - extends AbstractPagedListResponse< - ListLinksRequest, ListLinksResponse, Link, ListLinksPage, ListLinksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListLinksPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListLinksPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListLinksPagedResponse(ListLinksPage page) { - super(page, ListLinksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListLinksPage - extends AbstractPage { - - private ListLinksPage( - PageContext context, - ListLinksResponse response) { - super(context, response); - } - - private static ListLinksPage createEmptyPage() { - return new ListLinksPage(null, null); - } - - @Override - protected ListLinksPage createPage( - PageContext context, - ListLinksResponse response) { - return new ListLinksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListLinksFixedSizeCollection - extends AbstractFixedSizeCollection< - ListLinksRequest, ListLinksResponse, Link, ListLinksPage, ListLinksFixedSizeCollection> { - - private ListLinksFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListLinksFixedSizeCollection createEmptyCollection() { - return new ListLinksFixedSizeCollection(null, 0); - } - - @Override - protected ListLinksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListLinksFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListExclusionsPagedResponse - extends AbstractPagedListResponse< - ListExclusionsRequest, - ListExclusionsResponse, - LogExclusion, - ListExclusionsPage, - ListExclusionsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListExclusionsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListExclusionsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListExclusionsPagedResponse(ListExclusionsPage page) { - super(page, ListExclusionsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListExclusionsPage - extends AbstractPage< - ListExclusionsRequest, ListExclusionsResponse, LogExclusion, ListExclusionsPage> { - - private ListExclusionsPage( - PageContext context, - ListExclusionsResponse response) { - super(context, response); - } - - private static ListExclusionsPage createEmptyPage() { - return new ListExclusionsPage(null, null); - } - - @Override - protected ListExclusionsPage createPage( - PageContext context, - ListExclusionsResponse response) { - return new ListExclusionsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListExclusionsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListExclusionsRequest, - ListExclusionsResponse, - LogExclusion, - ListExclusionsPage, - ListExclusionsFixedSizeCollection> { - - private ListExclusionsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListExclusionsFixedSizeCollection createEmptyCollection() { - return new ListExclusionsFixedSizeCollection(null, 0); - } - - @Override - protected ListExclusionsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListExclusionsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java deleted file mode 100644 index 0d782fcb0..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java +++ /dev/null @@ -1,628 +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.logging.v2; - -import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.OperationCallSettings; -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.logging.v2.stub.ConfigServiceV2StubSettings; -import com.google.logging.v2.BucketMetadata; -import com.google.logging.v2.CmekSettings; -import com.google.logging.v2.CopyLogEntriesMetadata; -import com.google.logging.v2.CopyLogEntriesRequest; -import com.google.logging.v2.CopyLogEntriesResponse; -import com.google.logging.v2.CreateBucketRequest; -import com.google.logging.v2.CreateExclusionRequest; -import com.google.logging.v2.CreateLinkRequest; -import com.google.logging.v2.CreateSinkRequest; -import com.google.logging.v2.CreateViewRequest; -import com.google.logging.v2.DeleteBucketRequest; -import com.google.logging.v2.DeleteExclusionRequest; -import com.google.logging.v2.DeleteLinkRequest; -import com.google.logging.v2.DeleteSinkRequest; -import com.google.logging.v2.DeleteViewRequest; -import com.google.logging.v2.GetBucketRequest; -import com.google.logging.v2.GetCmekSettingsRequest; -import com.google.logging.v2.GetExclusionRequest; -import com.google.logging.v2.GetLinkRequest; -import com.google.logging.v2.GetSettingsRequest; -import com.google.logging.v2.GetSinkRequest; -import com.google.logging.v2.GetViewRequest; -import com.google.logging.v2.Link; -import com.google.logging.v2.LinkMetadata; -import com.google.logging.v2.ListBucketsRequest; -import com.google.logging.v2.ListBucketsResponse; -import com.google.logging.v2.ListExclusionsRequest; -import com.google.logging.v2.ListExclusionsResponse; -import com.google.logging.v2.ListLinksRequest; -import com.google.logging.v2.ListLinksResponse; -import com.google.logging.v2.ListSinksRequest; -import com.google.logging.v2.ListSinksResponse; -import com.google.logging.v2.ListViewsRequest; -import com.google.logging.v2.ListViewsResponse; -import com.google.logging.v2.LogBucket; -import com.google.logging.v2.LogExclusion; -import com.google.logging.v2.LogSink; -import com.google.logging.v2.LogView; -import com.google.logging.v2.Settings; -import com.google.logging.v2.UndeleteBucketRequest; -import com.google.logging.v2.UpdateBucketRequest; -import com.google.logging.v2.UpdateCmekSettingsRequest; -import com.google.logging.v2.UpdateExclusionRequest; -import com.google.logging.v2.UpdateSettingsRequest; -import com.google.logging.v2.UpdateSinkRequest; -import com.google.logging.v2.UpdateViewRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link ConfigClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (logging.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getBucket to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * ConfigSettings.Builder configSettingsBuilder = ConfigSettings.newBuilder();
- * configSettingsBuilder
- *     .getBucketSettings()
- *     .setRetrySettings(
- *         configSettingsBuilder
- *             .getBucketSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * ConfigSettings configSettings = configSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class ConfigSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to listBuckets. */ - public PagedCallSettings - listBucketsSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).listBucketsSettings(); - } - - /** Returns the object with the settings used for calls to getBucket. */ - public UnaryCallSettings getBucketSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).getBucketSettings(); - } - - /** Returns the object with the settings used for calls to createBucketAsync. */ - public UnaryCallSettings createBucketAsyncSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).createBucketAsyncSettings(); - } - - /** Returns the object with the settings used for calls to createBucketAsync. */ - public OperationCallSettings - createBucketAsyncOperationSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).createBucketAsyncOperationSettings(); - } - - /** Returns the object with the settings used for calls to updateBucketAsync. */ - public UnaryCallSettings updateBucketAsyncSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).updateBucketAsyncSettings(); - } - - /** Returns the object with the settings used for calls to updateBucketAsync. */ - public OperationCallSettings - updateBucketAsyncOperationSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).updateBucketAsyncOperationSettings(); - } - - /** Returns the object with the settings used for calls to createBucket. */ - public UnaryCallSettings createBucketSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).createBucketSettings(); - } - - /** Returns the object with the settings used for calls to updateBucket. */ - public UnaryCallSettings updateBucketSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).updateBucketSettings(); - } - - /** Returns the object with the settings used for calls to deleteBucket. */ - public UnaryCallSettings deleteBucketSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).deleteBucketSettings(); - } - - /** Returns the object with the settings used for calls to undeleteBucket. */ - public UnaryCallSettings undeleteBucketSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).undeleteBucketSettings(); - } - - /** Returns the object with the settings used for calls to listViews. */ - public PagedCallSettings - listViewsSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).listViewsSettings(); - } - - /** Returns the object with the settings used for calls to getView. */ - public UnaryCallSettings getViewSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).getViewSettings(); - } - - /** Returns the object with the settings used for calls to createView. */ - public UnaryCallSettings createViewSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).createViewSettings(); - } - - /** Returns the object with the settings used for calls to updateView. */ - public UnaryCallSettings updateViewSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).updateViewSettings(); - } - - /** Returns the object with the settings used for calls to deleteView. */ - public UnaryCallSettings deleteViewSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).deleteViewSettings(); - } - - /** Returns the object with the settings used for calls to listSinks. */ - public PagedCallSettings - listSinksSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).listSinksSettings(); - } - - /** Returns the object with the settings used for calls to getSink. */ - public UnaryCallSettings getSinkSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).getSinkSettings(); - } - - /** Returns the object with the settings used for calls to createSink. */ - public UnaryCallSettings createSinkSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).createSinkSettings(); - } - - /** Returns the object with the settings used for calls to updateSink. */ - public UnaryCallSettings updateSinkSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).updateSinkSettings(); - } - - /** Returns the object with the settings used for calls to deleteSink. */ - public UnaryCallSettings deleteSinkSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).deleteSinkSettings(); - } - - /** Returns the object with the settings used for calls to createLink. */ - public UnaryCallSettings createLinkSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).createLinkSettings(); - } - - /** Returns the object with the settings used for calls to createLink. */ - public OperationCallSettings - createLinkOperationSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).createLinkOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteLink. */ - public UnaryCallSettings deleteLinkSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).deleteLinkSettings(); - } - - /** Returns the object with the settings used for calls to deleteLink. */ - public OperationCallSettings - deleteLinkOperationSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).deleteLinkOperationSettings(); - } - - /** Returns the object with the settings used for calls to listLinks. */ - public PagedCallSettings - listLinksSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).listLinksSettings(); - } - - /** Returns the object with the settings used for calls to getLink. */ - public UnaryCallSettings getLinkSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).getLinkSettings(); - } - - /** Returns the object with the settings used for calls to listExclusions. */ - public PagedCallSettings< - ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> - listExclusionsSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).listExclusionsSettings(); - } - - /** Returns the object with the settings used for calls to getExclusion. */ - public UnaryCallSettings getExclusionSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).getExclusionSettings(); - } - - /** Returns the object with the settings used for calls to createExclusion. */ - public UnaryCallSettings createExclusionSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).createExclusionSettings(); - } - - /** Returns the object with the settings used for calls to updateExclusion. */ - public UnaryCallSettings updateExclusionSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).updateExclusionSettings(); - } - - /** Returns the object with the settings used for calls to deleteExclusion. */ - public UnaryCallSettings deleteExclusionSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).deleteExclusionSettings(); - } - - /** Returns the object with the settings used for calls to getCmekSettings. */ - public UnaryCallSettings getCmekSettingsSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).getCmekSettingsSettings(); - } - - /** Returns the object with the settings used for calls to updateCmekSettings. */ - public UnaryCallSettings updateCmekSettingsSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).updateCmekSettingsSettings(); - } - - /** Returns the object with the settings used for calls to getSettings. */ - public UnaryCallSettings getSettingsSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).getSettingsSettings(); - } - - /** Returns the object with the settings used for calls to updateSettings. */ - public UnaryCallSettings updateSettingsSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).updateSettingsSettings(); - } - - /** Returns the object with the settings used for calls to copyLogEntries. */ - public UnaryCallSettings copyLogEntriesSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).copyLogEntriesSettings(); - } - - /** Returns the object with the settings used for calls to copyLogEntries. */ - public OperationCallSettings< - CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> - copyLogEntriesOperationSettings() { - return ((ConfigServiceV2StubSettings) getStubSettings()).copyLogEntriesOperationSettings(); - } - - public static final ConfigSettings create(ConfigServiceV2StubSettings stub) throws IOException { - return new ConfigSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return ConfigServiceV2StubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return ConfigServiceV2StubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return ConfigServiceV2StubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return ConfigServiceV2StubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return ConfigServiceV2StubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return ConfigServiceV2StubSettings.defaultTransportChannelProvider(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ConfigServiceV2StubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected ConfigSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for ConfigSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(ConfigServiceV2StubSettings.newBuilder(clientContext)); - } - - protected Builder(ConfigSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(ConfigServiceV2StubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(ConfigServiceV2StubSettings.newBuilder()); - } - - public ConfigServiceV2StubSettings.Builder getStubSettingsBuilder() { - return ((ConfigServiceV2StubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listBuckets. */ - public PagedCallSettings.Builder< - ListBucketsRequest, ListBucketsResponse, ListBucketsPagedResponse> - listBucketsSettings() { - return getStubSettingsBuilder().listBucketsSettings(); - } - - /** Returns the builder for the settings used for calls to getBucket. */ - public UnaryCallSettings.Builder getBucketSettings() { - return getStubSettingsBuilder().getBucketSettings(); - } - - /** Returns the builder for the settings used for calls to createBucketAsync. */ - public UnaryCallSettings.Builder createBucketAsyncSettings() { - return getStubSettingsBuilder().createBucketAsyncSettings(); - } - - /** Returns the builder for the settings used for calls to createBucketAsync. */ - public OperationCallSettings.Builder - createBucketAsyncOperationSettings() { - return getStubSettingsBuilder().createBucketAsyncOperationSettings(); - } - - /** Returns the builder for the settings used for calls to updateBucketAsync. */ - public UnaryCallSettings.Builder updateBucketAsyncSettings() { - return getStubSettingsBuilder().updateBucketAsyncSettings(); - } - - /** Returns the builder for the settings used for calls to updateBucketAsync. */ - public OperationCallSettings.Builder - updateBucketAsyncOperationSettings() { - return getStubSettingsBuilder().updateBucketAsyncOperationSettings(); - } - - /** Returns the builder for the settings used for calls to createBucket. */ - public UnaryCallSettings.Builder createBucketSettings() { - return getStubSettingsBuilder().createBucketSettings(); - } - - /** Returns the builder for the settings used for calls to updateBucket. */ - public UnaryCallSettings.Builder updateBucketSettings() { - return getStubSettingsBuilder().updateBucketSettings(); - } - - /** Returns the builder for the settings used for calls to deleteBucket. */ - public UnaryCallSettings.Builder deleteBucketSettings() { - return getStubSettingsBuilder().deleteBucketSettings(); - } - - /** Returns the builder for the settings used for calls to undeleteBucket. */ - public UnaryCallSettings.Builder undeleteBucketSettings() { - return getStubSettingsBuilder().undeleteBucketSettings(); - } - - /** Returns the builder for the settings used for calls to listViews. */ - public PagedCallSettings.Builder - listViewsSettings() { - return getStubSettingsBuilder().listViewsSettings(); - } - - /** Returns the builder for the settings used for calls to getView. */ - public UnaryCallSettings.Builder getViewSettings() { - return getStubSettingsBuilder().getViewSettings(); - } - - /** Returns the builder for the settings used for calls to createView. */ - public UnaryCallSettings.Builder createViewSettings() { - return getStubSettingsBuilder().createViewSettings(); - } - - /** Returns the builder for the settings used for calls to updateView. */ - public UnaryCallSettings.Builder updateViewSettings() { - return getStubSettingsBuilder().updateViewSettings(); - } - - /** Returns the builder for the settings used for calls to deleteView. */ - public UnaryCallSettings.Builder deleteViewSettings() { - return getStubSettingsBuilder().deleteViewSettings(); - } - - /** Returns the builder for the settings used for calls to listSinks. */ - public PagedCallSettings.Builder - listSinksSettings() { - return getStubSettingsBuilder().listSinksSettings(); - } - - /** Returns the builder for the settings used for calls to getSink. */ - public UnaryCallSettings.Builder getSinkSettings() { - return getStubSettingsBuilder().getSinkSettings(); - } - - /** Returns the builder for the settings used for calls to createSink. */ - public UnaryCallSettings.Builder createSinkSettings() { - return getStubSettingsBuilder().createSinkSettings(); - } - - /** Returns the builder for the settings used for calls to updateSink. */ - public UnaryCallSettings.Builder updateSinkSettings() { - return getStubSettingsBuilder().updateSinkSettings(); - } - - /** Returns the builder for the settings used for calls to deleteSink. */ - public UnaryCallSettings.Builder deleteSinkSettings() { - return getStubSettingsBuilder().deleteSinkSettings(); - } - - /** Returns the builder for the settings used for calls to createLink. */ - public UnaryCallSettings.Builder createLinkSettings() { - return getStubSettingsBuilder().createLinkSettings(); - } - - /** Returns the builder for the settings used for calls to createLink. */ - public OperationCallSettings.Builder - createLinkOperationSettings() { - return getStubSettingsBuilder().createLinkOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteLink. */ - public UnaryCallSettings.Builder deleteLinkSettings() { - return getStubSettingsBuilder().deleteLinkSettings(); - } - - /** Returns the builder for the settings used for calls to deleteLink. */ - public OperationCallSettings.Builder - deleteLinkOperationSettings() { - return getStubSettingsBuilder().deleteLinkOperationSettings(); - } - - /** Returns the builder for the settings used for calls to listLinks. */ - public PagedCallSettings.Builder - listLinksSettings() { - return getStubSettingsBuilder().listLinksSettings(); - } - - /** Returns the builder for the settings used for calls to getLink. */ - public UnaryCallSettings.Builder getLinkSettings() { - return getStubSettingsBuilder().getLinkSettings(); - } - - /** Returns the builder for the settings used for calls to listExclusions. */ - public PagedCallSettings.Builder< - ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> - listExclusionsSettings() { - return getStubSettingsBuilder().listExclusionsSettings(); - } - - /** Returns the builder for the settings used for calls to getExclusion. */ - public UnaryCallSettings.Builder getExclusionSettings() { - return getStubSettingsBuilder().getExclusionSettings(); - } - - /** Returns the builder for the settings used for calls to createExclusion. */ - public UnaryCallSettings.Builder - createExclusionSettings() { - return getStubSettingsBuilder().createExclusionSettings(); - } - - /** Returns the builder for the settings used for calls to updateExclusion. */ - public UnaryCallSettings.Builder - updateExclusionSettings() { - return getStubSettingsBuilder().updateExclusionSettings(); - } - - /** Returns the builder for the settings used for calls to deleteExclusion. */ - public UnaryCallSettings.Builder deleteExclusionSettings() { - return getStubSettingsBuilder().deleteExclusionSettings(); - } - - /** Returns the builder for the settings used for calls to getCmekSettings. */ - public UnaryCallSettings.Builder - getCmekSettingsSettings() { - return getStubSettingsBuilder().getCmekSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to updateCmekSettings. */ - public UnaryCallSettings.Builder - updateCmekSettingsSettings() { - return getStubSettingsBuilder().updateCmekSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to getSettings. */ - public UnaryCallSettings.Builder getSettingsSettings() { - return getStubSettingsBuilder().getSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to updateSettings. */ - public UnaryCallSettings.Builder updateSettingsSettings() { - return getStubSettingsBuilder().updateSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to copyLogEntries. */ - public UnaryCallSettings.Builder copyLogEntriesSettings() { - return getStubSettingsBuilder().copyLogEntriesSettings(); - } - - /** Returns the builder for the settings used for calls to copyLogEntries. */ - public OperationCallSettings.Builder< - CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> - copyLogEntriesOperationSettings() { - return getStubSettingsBuilder().copyLogEntriesOperationSettings(); - } - - @Override - public ConfigSettings build() throws IOException { - return new ConfigSettings(this); - } - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java deleted file mode 100644 index 4306bcec6..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java +++ /dev/null @@ -1,1536 +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.logging.v2; - -import com.google.api.MonitoredResource; -import com.google.api.MonitoredResourceDescriptor; -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.logging.v2.stub.LoggingServiceV2Stub; -import com.google.cloud.logging.v2.stub.LoggingServiceV2StubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.logging.v2.BillingAccountName; -import com.google.logging.v2.DeleteLogRequest; -import com.google.logging.v2.FolderName; -import com.google.logging.v2.ListLogEntriesRequest; -import com.google.logging.v2.ListLogEntriesResponse; -import com.google.logging.v2.ListLogsRequest; -import com.google.logging.v2.ListLogsResponse; -import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; -import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; -import com.google.logging.v2.LogEntry; -import com.google.logging.v2.LogName; -import com.google.logging.v2.OrganizationName; -import com.google.logging.v2.ProjectName; -import com.google.logging.v2.TailLogEntriesRequest; -import com.google.logging.v2.TailLogEntriesResponse; -import com.google.logging.v2.WriteLogEntriesRequest; -import com.google.logging.v2.WriteLogEntriesResponse; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Service for ingesting and querying logs. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (LoggingClient loggingClient = LoggingClient.create()) {
- *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
- *   loggingClient.deleteLog(logName);
- * }
- * }
- * - *

Note: close() needs to be called on the LoggingClient object to clean up resources such as - * threads. In the example above, try-with-resources is used, which automatically calls close(). - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Methods
MethodDescriptionMethod Variants

DeleteLog

Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • deleteLog(DeleteLogRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • deleteLog(LogName logName) - *

  • deleteLog(String logName) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • deleteLogCallable() - *

- *

WriteLogEntries

Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • writeLogEntries(WriteLogEntriesRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • writeLogEntries(LogName logName, MonitoredResource resource, Map<String, String> labels, List<LogEntry> entries) - *

  • writeLogEntries(String logName, MonitoredResource resource, Map<String, String> labels, List<LogEntry> entries) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • writeLogEntriesCallable() - *

- *

ListLogEntries

Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see [Exporting Logs](https://cloud.google.com/logging/docs/export).

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • listLogEntries(ListLogEntriesRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • listLogEntries(List<String> resourceNames, String filter, String orderBy) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • listLogEntriesPagedCallable() - *

  • listLogEntriesCallable() - *

- *

ListMonitoredResourceDescriptors

Lists the descriptors for monitored resource types used by Logging.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • listMonitoredResourceDescriptorsPagedCallable() - *

  • listMonitoredResourceDescriptorsCallable() - *

- *

ListLogs

Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • listLogs(ListLogsRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • listLogs(BillingAccountName parent) - *

  • listLogs(FolderName parent) - *

  • listLogs(OrganizationName parent) - *

  • listLogs(ProjectName parent) - *

  • listLogs(String parent) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • listLogsPagedCallable() - *

  • listLogsCallable() - *

- *

TailLogEntries

Streaming read of log entries as they are ingested. Until the stream is terminated, it will continue reading logs.

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • tailLogEntriesCallable() - *

- *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of LoggingSettings to create(). - * For example: - * - *

To customize credentials: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * LoggingSettings loggingSettings =
- *     LoggingSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * LoggingClient loggingClient = LoggingClient.create(loggingSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * LoggingSettings loggingSettings = LoggingSettings.newBuilder().setEndpoint(myEndpoint).build();
- * LoggingClient loggingClient = LoggingClient.create(loggingSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class LoggingClient implements BackgroundResource { - private final LoggingSettings settings; - private final LoggingServiceV2Stub stub; - - /** Constructs an instance of LoggingClient with default settings. */ - public static final LoggingClient create() throws IOException { - return create(LoggingSettings.newBuilder().build()); - } - - /** - * Constructs an instance of LoggingClient, using the given settings. The channels are created - * based on the settings passed in, or defaults for any settings that are not set. - */ - public static final LoggingClient create(LoggingSettings settings) throws IOException { - return new LoggingClient(settings); - } - - /** - * Constructs an instance of LoggingClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(LoggingSettings). - */ - public static final LoggingClient create(LoggingServiceV2Stub stub) { - return new LoggingClient(stub); - } - - /** - * Constructs an instance of LoggingClient, using the given settings. This is protected so that it - * is easy to make a subclass, but otherwise, the static factory methods should be preferred. - */ - protected LoggingClient(LoggingSettings settings) throws IOException { - this.settings = settings; - this.stub = ((LoggingServiceV2StubSettings) settings.getStubSettings()).createStub(); - } - - protected LoggingClient(LoggingServiceV2Stub stub) { - this.settings = null; - this.stub = stub; - } - - public final LoggingSettings getSettings() { - return settings; - } - - public LoggingServiceV2Stub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it - * receives new entries. Log entries written shortly before the delete operation might not be - * deleted. Entries received after the delete operation with a timestamp before the operation will - * be deleted. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
-   *   loggingClient.deleteLog(logName);
-   * }
-   * }
- * - * @param logName Required. The resource name of the log to delete: - *
    - *
  • `projects/[PROJECT_ID]/logs/[LOG_ID]` - *
  • `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` - *
  • `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` - *
  • `folders/[FOLDER_ID]/logs/[LOG_ID]` - *
- *

`[LOG_ID]` must be URL-encoded. For example, `"projects/my-project-id/logs/syslog"`, - * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`. - *

For more information about log names, see [LogEntry][google.logging.v2.LogEntry]. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteLog(LogName logName) { - DeleteLogRequest request = - DeleteLogRequest.newBuilder() - .setLogName(logName == null ? null : logName.toString()) - .build(); - deleteLog(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it - * receives new entries. Log entries written shortly before the delete operation might not be - * deleted. Entries received after the delete operation with a timestamp before the operation will - * be deleted. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   String logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString();
-   *   loggingClient.deleteLog(logName);
-   * }
-   * }
- * - * @param logName Required. The resource name of the log to delete: - *
    - *
  • `projects/[PROJECT_ID]/logs/[LOG_ID]` - *
  • `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` - *
  • `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` - *
  • `folders/[FOLDER_ID]/logs/[LOG_ID]` - *
- *

`[LOG_ID]` must be URL-encoded. For example, `"projects/my-project-id/logs/syslog"`, - * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`. - *

For more information about log names, see [LogEntry][google.logging.v2.LogEntry]. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteLog(String logName) { - DeleteLogRequest request = DeleteLogRequest.newBuilder().setLogName(logName).build(); - deleteLog(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it - * receives new entries. Log entries written shortly before the delete operation might not be - * deleted. Entries received after the delete operation with a timestamp before the operation will - * be deleted. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   DeleteLogRequest request =
-   *       DeleteLogRequest.newBuilder()
-   *           .setLogName(LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString())
-   *           .build();
-   *   loggingClient.deleteLog(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteLog(DeleteLogRequest request) { - deleteLogCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it - * receives new entries. Log entries written shortly before the delete operation might not be - * deleted. Entries received after the delete operation with a timestamp before the operation will - * be deleted. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   DeleteLogRequest request =
-   *       DeleteLogRequest.newBuilder()
-   *           .setLogName(LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString())
-   *           .build();
-   *   ApiFuture future = loggingClient.deleteLogCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteLogCallable() { - return stub.deleteLogCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Writes log entries to Logging. This API method is the only way to send log entries to Logging. - * This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging - * libraries configured to use Logging. A single request may contain log entries for a maximum of - * 1000 different resources (projects, organizations, billing accounts or folders) - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
-   *   MonitoredResource resource = MonitoredResource.newBuilder().build();
-   *   Map labels = new HashMap<>();
-   *   List entries = new ArrayList<>();
-   *   WriteLogEntriesResponse response =
-   *       loggingClient.writeLogEntries(logName, resource, labels, entries);
-   * }
-   * }
- * - * @param logName Optional. A default log resource name that is assigned to all log entries in - * `entries` that do not specify a value for `log_name`: - *
    - *
  • `projects/[PROJECT_ID]/logs/[LOG_ID]` - *
  • `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` - *
  • `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` - *
  • `folders/[FOLDER_ID]/logs/[LOG_ID]` - *
- *

`[LOG_ID]` must be URL-encoded. For example: - *

"projects/my-project-id/logs/syslog" - * "organizations/123/logs/cloudaudit.googleapis.com%2Factivity" - *

The permission `logging.logEntries.create` is needed on each project, organization, - * billing account, or folder that is receiving new log entries, whether the resource is - * specified in `logName` or in an individual log entry. - * @param resource Optional. A default monitored resource object that is assigned to all log - * entries in `entries` that do not specify a value for `resource`. Example: - *

{ "type": "gce_instance", "labels": { "zone": "us-central1-a", "instance_id": - * "00000000000000000000" }} - *

See [LogEntry][google.logging.v2.LogEntry]. - * @param labels Optional. Default labels that are added to the `labels` field of all log entries - * in `entries`. If a log entry already has a label with the same key as a label in this - * parameter, then the log entry's label is not changed. See - * [LogEntry][google.logging.v2.LogEntry]. - * @param entries Required. The log entries to send to Logging. The order of log entries in this - * list does not matter. Values supplied in this method's `log_name`, `resource`, and `labels` - * fields are copied into those log entries in this list that do not include values for their - * corresponding fields. For more information, see the [LogEntry][google.logging.v2.LogEntry] - * type. - *

If the `timestamp` or `insert_id` fields are missing in log entries, then this method - * supplies the current time or a unique identifier, respectively. The supplied values are - * chosen so that, among the log entries that did not supply their own values, the entries - * earlier in the list will sort before the entries later in the list. See the `entries.list` - * method. - *

Log entries with timestamps that are more than the [logs retention - * period](https://cloud.google.com/logging/quotas) in the past or more than 24 hours in the - * future will not be available when calling `entries.list`. However, those log entries can - * still be [exported with - * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). - *

To improve throughput and to avoid exceeding the [quota - * limit](https://cloud.google.com/logging/quotas) for calls to `entries.write`, you should - * try to include several log entries in this list, rather than calling this method for each - * individual log entry. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WriteLogEntriesResponse writeLogEntries( - LogName logName, - MonitoredResource resource, - Map labels, - List entries) { - WriteLogEntriesRequest request = - WriteLogEntriesRequest.newBuilder() - .setLogName(logName == null ? null : logName.toString()) - .setResource(resource) - .putAllLabels(labels) - .addAllEntries(entries) - .build(); - return writeLogEntries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Writes log entries to Logging. This API method is the only way to send log entries to Logging. - * This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging - * libraries configured to use Logging. A single request may contain log entries for a maximum of - * 1000 different resources (projects, organizations, billing accounts or folders) - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   String logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString();
-   *   MonitoredResource resource = MonitoredResource.newBuilder().build();
-   *   Map labels = new HashMap<>();
-   *   List entries = new ArrayList<>();
-   *   WriteLogEntriesResponse response =
-   *       loggingClient.writeLogEntries(logName, resource, labels, entries);
-   * }
-   * }
- * - * @param logName Optional. A default log resource name that is assigned to all log entries in - * `entries` that do not specify a value for `log_name`: - *
    - *
  • `projects/[PROJECT_ID]/logs/[LOG_ID]` - *
  • `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` - *
  • `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` - *
  • `folders/[FOLDER_ID]/logs/[LOG_ID]` - *
- *

`[LOG_ID]` must be URL-encoded. For example: - *

"projects/my-project-id/logs/syslog" - * "organizations/123/logs/cloudaudit.googleapis.com%2Factivity" - *

The permission `logging.logEntries.create` is needed on each project, organization, - * billing account, or folder that is receiving new log entries, whether the resource is - * specified in `logName` or in an individual log entry. - * @param resource Optional. A default monitored resource object that is assigned to all log - * entries in `entries` that do not specify a value for `resource`. Example: - *

{ "type": "gce_instance", "labels": { "zone": "us-central1-a", "instance_id": - * "00000000000000000000" }} - *

See [LogEntry][google.logging.v2.LogEntry]. - * @param labels Optional. Default labels that are added to the `labels` field of all log entries - * in `entries`. If a log entry already has a label with the same key as a label in this - * parameter, then the log entry's label is not changed. See - * [LogEntry][google.logging.v2.LogEntry]. - * @param entries Required. The log entries to send to Logging. The order of log entries in this - * list does not matter. Values supplied in this method's `log_name`, `resource`, and `labels` - * fields are copied into those log entries in this list that do not include values for their - * corresponding fields. For more information, see the [LogEntry][google.logging.v2.LogEntry] - * type. - *

If the `timestamp` or `insert_id` fields are missing in log entries, then this method - * supplies the current time or a unique identifier, respectively. The supplied values are - * chosen so that, among the log entries that did not supply their own values, the entries - * earlier in the list will sort before the entries later in the list. See the `entries.list` - * method. - *

Log entries with timestamps that are more than the [logs retention - * period](https://cloud.google.com/logging/quotas) in the past or more than 24 hours in the - * future will not be available when calling `entries.list`. However, those log entries can - * still be [exported with - * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). - *

To improve throughput and to avoid exceeding the [quota - * limit](https://cloud.google.com/logging/quotas) for calls to `entries.write`, you should - * try to include several log entries in this list, rather than calling this method for each - * individual log entry. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WriteLogEntriesResponse writeLogEntries( - String logName, - MonitoredResource resource, - Map labels, - List entries) { - WriteLogEntriesRequest request = - WriteLogEntriesRequest.newBuilder() - .setLogName(logName) - .setResource(resource) - .putAllLabels(labels) - .addAllEntries(entries) - .build(); - return writeLogEntries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Writes log entries to Logging. This API method is the only way to send log entries to Logging. - * This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging - * libraries configured to use Logging. A single request may contain log entries for a maximum of - * 1000 different resources (projects, organizations, billing accounts or folders) - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   WriteLogEntriesRequest request =
-   *       WriteLogEntriesRequest.newBuilder()
-   *           .setLogName(LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString())
-   *           .setResource(MonitoredResource.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .addAllEntries(new ArrayList())
-   *           .setPartialSuccess(true)
-   *           .setDryRun(true)
-   *           .build();
-   *   WriteLogEntriesResponse response = loggingClient.writeLogEntries(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final WriteLogEntriesResponse writeLogEntries(WriteLogEntriesRequest request) { - return writeLogEntriesCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Writes log entries to Logging. This API method is the only way to send log entries to Logging. - * This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging - * libraries configured to use Logging. A single request may contain log entries for a maximum of - * 1000 different resources (projects, organizations, billing accounts or folders) - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   WriteLogEntriesRequest request =
-   *       WriteLogEntriesRequest.newBuilder()
-   *           .setLogName(LogName.ofProjectLogName("[PROJECT]", "[LOG]").toString())
-   *           .setResource(MonitoredResource.newBuilder().build())
-   *           .putAllLabels(new HashMap())
-   *           .addAllEntries(new ArrayList())
-   *           .setPartialSuccess(true)
-   *           .setDryRun(true)
-   *           .build();
-   *   ApiFuture future =
-   *       loggingClient.writeLogEntriesCallable().futureCall(request);
-   *   // Do something.
-   *   WriteLogEntriesResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - writeLogEntriesCallable() { - return stub.writeLogEntriesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists log entries. Use this method to retrieve log entries that originated from a - * project/folder/organization/billing account. For ways to export log entries, see [Exporting - * Logs](https://cloud.google.com/logging/docs/export). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   List resourceNames = new ArrayList<>();
-   *   String filter = "filter-1274492040";
-   *   String orderBy = "orderBy-1207110587";
-   *   for (LogEntry element :
-   *       loggingClient.listLogEntries(resourceNames, filter, orderBy).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param resourceNames Required. Names of one or more parent resources from which to retrieve log - * entries: - *
    - *
  • `projects/[PROJECT_ID]` - *
  • `organizations/[ORGANIZATION_ID]` - *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` - *
  • `folders/[FOLDER_ID]` - *
- *

May alternatively be one or more views: - *

* - * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * - * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` - * * - * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` - * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` - *

Projects listed in the `project_ids` field are added to this list. A maximum of 100 - * resources may be specified in a single request. - * @param filter Optional. Only log entries that match the filter are returned. An empty filter - * matches all log entries in the resources listed in `resource_names`. Referencing a parent - * resource that is not listed in `resource_names` will cause the filter to return no results. - * The maximum length of a filter is 20,000 characters. - * @param orderBy Optional. How the results should be sorted. Presently, the only permitted values - * are `"timestamp asc"` (default) and `"timestamp desc"`. The first option returns entries in - * order of increasing values of `LogEntry.timestamp` (oldest first), and the second option - * returns entries in order of decreasing timestamps (newest first). Entries with equal - * timestamps are returned in order of their `insert_id` values. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLogEntriesPagedResponse listLogEntries( - List resourceNames, String filter, String orderBy) { - ListLogEntriesRequest request = - ListLogEntriesRequest.newBuilder() - .addAllResourceNames(resourceNames) - .setFilter(filter) - .setOrderBy(orderBy) - .build(); - return listLogEntries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists log entries. Use this method to retrieve log entries that originated from a - * project/folder/organization/billing account. For ways to export log entries, see [Exporting - * Logs](https://cloud.google.com/logging/docs/export). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   ListLogEntriesRequest request =
-   *       ListLogEntriesRequest.newBuilder()
-   *           .addAllResourceNames(new ArrayList())
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (LogEntry element : loggingClient.listLogEntries(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLogEntriesPagedResponse listLogEntries(ListLogEntriesRequest request) { - return listLogEntriesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists log entries. Use this method to retrieve log entries that originated from a - * project/folder/organization/billing account. For ways to export log entries, see [Exporting - * Logs](https://cloud.google.com/logging/docs/export). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   ListLogEntriesRequest request =
-   *       ListLogEntriesRequest.newBuilder()
-   *           .addAllResourceNames(new ArrayList())
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future = loggingClient.listLogEntriesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (LogEntry element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listLogEntriesPagedCallable() { - return stub.listLogEntriesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists log entries. Use this method to retrieve log entries that originated from a - * project/folder/organization/billing account. For ways to export log entries, see [Exporting - * Logs](https://cloud.google.com/logging/docs/export). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   ListLogEntriesRequest request =
-   *       ListLogEntriesRequest.newBuilder()
-   *           .addAllResourceNames(new ArrayList())
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListLogEntriesResponse response = loggingClient.listLogEntriesCallable().call(request);
-   *     for (LogEntry element : response.getEntriesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listLogEntriesCallable() { - return stub.listLogEntriesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the descriptors for monitored resource types used by Logging. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   ListMonitoredResourceDescriptorsRequest request =
-   *       ListMonitoredResourceDescriptorsRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (MonitoredResourceDescriptor element :
-   *       loggingClient.listMonitoredResourceDescriptors(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResourceDescriptors( - ListMonitoredResourceDescriptorsRequest request) { - return listMonitoredResourceDescriptorsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the descriptors for monitored resource types used by Logging. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   ListMonitoredResourceDescriptorsRequest request =
-   *       ListMonitoredResourceDescriptorsRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       loggingClient.listMonitoredResourceDescriptorsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (MonitoredResourceDescriptor element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsPagedResponse> - listMonitoredResourceDescriptorsPagedCallable() { - return stub.listMonitoredResourceDescriptorsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the descriptors for monitored resource types used by Logging. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   ListMonitoredResourceDescriptorsRequest request =
-   *       ListMonitoredResourceDescriptorsRequest.newBuilder()
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListMonitoredResourceDescriptorsResponse response =
-   *         loggingClient.listMonitoredResourceDescriptorsCallable().call(request);
-   *     for (MonitoredResourceDescriptor element : response.getResourceDescriptorsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable< - ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse> - listMonitoredResourceDescriptorsCallable() { - return stub.listMonitoredResourceDescriptorsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have - * entries are listed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
-   *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name to list logs for: - *
    - *
  • `projects/[PROJECT_ID]` - *
  • `organizations/[ORGANIZATION_ID]` - *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` - *
  • `folders/[FOLDER_ID]` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLogsPagedResponse listLogs(BillingAccountName parent) { - ListLogsRequest request = - ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listLogs(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have - * entries are listed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   FolderName parent = FolderName.of("[FOLDER]");
-   *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name to list logs for: - *
    - *
  • `projects/[PROJECT_ID]` - *
  • `organizations/[ORGANIZATION_ID]` - *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` - *
  • `folders/[FOLDER_ID]` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLogsPagedResponse listLogs(FolderName parent) { - ListLogsRequest request = - ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listLogs(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have - * entries are listed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
-   *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name to list logs for: - *
    - *
  • `projects/[PROJECT_ID]` - *
  • `organizations/[ORGANIZATION_ID]` - *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` - *
  • `folders/[FOLDER_ID]` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLogsPagedResponse listLogs(OrganizationName parent) { - ListLogsRequest request = - ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listLogs(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have - * entries are listed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name to list logs for: - *
    - *
  • `projects/[PROJECT_ID]` - *
  • `organizations/[ORGANIZATION_ID]` - *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` - *
  • `folders/[FOLDER_ID]` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLogsPagedResponse listLogs(ProjectName parent) { - ListLogsRequest request = - ListLogsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listLogs(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have - * entries are listed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   String parent = ProjectName.of("[PROJECT]").toString();
-   *   for (String element : loggingClient.listLogs(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The resource name to list logs for: - *
    - *
  • `projects/[PROJECT_ID]` - *
  • `organizations/[ORGANIZATION_ID]` - *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` - *
  • `folders/[FOLDER_ID]` - *
- * - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLogsPagedResponse listLogs(String parent) { - ListLogsRequest request = ListLogsRequest.newBuilder().setParent(parent).build(); - return listLogs(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have - * entries are listed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   ListLogsRequest request =
-   *       ListLogsRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .addAllResourceNames(new ArrayList())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (String element : loggingClient.listLogs(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLogsPagedResponse listLogs(ListLogsRequest request) { - return listLogsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have - * entries are listed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   ListLogsRequest request =
-   *       ListLogsRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .addAllResourceNames(new ArrayList())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future = loggingClient.listLogsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (String element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listLogsPagedCallable() { - return stub.listLogsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have - * entries are listed. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   ListLogsRequest request =
-   *       ListLogsRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .addAllResourceNames(new ArrayList())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListLogsResponse response = loggingClient.listLogsCallable().call(request);
-   *     for (String element : response.getLogNamesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listLogsCallable() { - return stub.listLogsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Streaming read of log entries as they are ingested. Until the stream is terminated, it will - * continue reading logs. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   BidiStream bidiStream =
-   *       loggingClient.tailLogEntriesCallable().call();
-   *   TailLogEntriesRequest request =
-   *       TailLogEntriesRequest.newBuilder()
-   *           .addAllResourceNames(new ArrayList())
-   *           .setFilter("filter-1274492040")
-   *           .setBufferWindow(Duration.newBuilder().build())
-   *           .build();
-   *   bidiStream.send(request);
-   *   for (TailLogEntriesResponse response : bidiStream) {
-   *     // Do something when a response is received.
-   *   }
-   * }
-   * }
- */ - public final BidiStreamingCallable - tailLogEntriesCallable() { - return stub.tailLogEntriesCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListLogEntriesPagedResponse - extends AbstractPagedListResponse< - ListLogEntriesRequest, - ListLogEntriesResponse, - LogEntry, - ListLogEntriesPage, - ListLogEntriesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListLogEntriesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListLogEntriesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListLogEntriesPagedResponse(ListLogEntriesPage page) { - super(page, ListLogEntriesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListLogEntriesPage - extends AbstractPage< - ListLogEntriesRequest, ListLogEntriesResponse, LogEntry, ListLogEntriesPage> { - - private ListLogEntriesPage( - PageContext context, - ListLogEntriesResponse response) { - super(context, response); - } - - private static ListLogEntriesPage createEmptyPage() { - return new ListLogEntriesPage(null, null); - } - - @Override - protected ListLogEntriesPage createPage( - PageContext context, - ListLogEntriesResponse response) { - return new ListLogEntriesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListLogEntriesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListLogEntriesRequest, - ListLogEntriesResponse, - LogEntry, - ListLogEntriesPage, - ListLogEntriesFixedSizeCollection> { - - private ListLogEntriesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListLogEntriesFixedSizeCollection createEmptyCollection() { - return new ListLogEntriesFixedSizeCollection(null, 0); - } - - @Override - protected ListLogEntriesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListLogEntriesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListMonitoredResourceDescriptorsPagedResponse - extends AbstractPagedListResponse< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - MonitoredResourceDescriptor, - ListMonitoredResourceDescriptorsPage, - ListMonitoredResourceDescriptorsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - MonitoredResourceDescriptor> - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListMonitoredResourceDescriptorsPage.createEmptyPage() - .createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListMonitoredResourceDescriptorsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListMonitoredResourceDescriptorsPagedResponse( - ListMonitoredResourceDescriptorsPage page) { - super(page, ListMonitoredResourceDescriptorsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListMonitoredResourceDescriptorsPage - extends AbstractPage< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - MonitoredResourceDescriptor, - ListMonitoredResourceDescriptorsPage> { - - private ListMonitoredResourceDescriptorsPage( - PageContext< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - MonitoredResourceDescriptor> - context, - ListMonitoredResourceDescriptorsResponse response) { - super(context, response); - } - - private static ListMonitoredResourceDescriptorsPage createEmptyPage() { - return new ListMonitoredResourceDescriptorsPage(null, null); - } - - @Override - protected ListMonitoredResourceDescriptorsPage createPage( - PageContext< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - MonitoredResourceDescriptor> - context, - ListMonitoredResourceDescriptorsResponse response) { - return new ListMonitoredResourceDescriptorsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - MonitoredResourceDescriptor> - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListMonitoredResourceDescriptorsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - MonitoredResourceDescriptor, - ListMonitoredResourceDescriptorsPage, - ListMonitoredResourceDescriptorsFixedSizeCollection> { - - private ListMonitoredResourceDescriptorsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListMonitoredResourceDescriptorsFixedSizeCollection createEmptyCollection() { - return new ListMonitoredResourceDescriptorsFixedSizeCollection(null, 0); - } - - @Override - protected ListMonitoredResourceDescriptorsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListMonitoredResourceDescriptorsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListLogsPagedResponse - extends AbstractPagedListResponse< - ListLogsRequest, ListLogsResponse, String, ListLogsPage, ListLogsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListLogsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListLogsPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListLogsPagedResponse(ListLogsPage page) { - super(page, ListLogsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListLogsPage - extends AbstractPage { - - private ListLogsPage( - PageContext context, ListLogsResponse response) { - super(context, response); - } - - private static ListLogsPage createEmptyPage() { - return new ListLogsPage(null, null); - } - - @Override - protected ListLogsPage createPage( - PageContext context, ListLogsResponse response) { - return new ListLogsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListLogsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListLogsRequest, ListLogsResponse, String, ListLogsPage, ListLogsFixedSizeCollection> { - - private ListLogsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListLogsFixedSizeCollection createEmptyCollection() { - return new ListLogsFixedSizeCollection(null, 0); - } - - @Override - protected ListLogsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListLogsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java deleted file mode 100644 index b50cf2240..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java +++ /dev/null @@ -1,271 +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.logging.v2; - -import static com.google.cloud.logging.v2.LoggingClient.ListLogEntriesPagedResponse; -import static com.google.cloud.logging.v2.LoggingClient.ListLogsPagedResponse; -import static com.google.cloud.logging.v2.LoggingClient.ListMonitoredResourceDescriptorsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.BatchingCallSettings; -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.StreamingCallSettings; -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.logging.v2.stub.LoggingServiceV2StubSettings; -import com.google.logging.v2.DeleteLogRequest; -import com.google.logging.v2.ListLogEntriesRequest; -import com.google.logging.v2.ListLogEntriesResponse; -import com.google.logging.v2.ListLogsRequest; -import com.google.logging.v2.ListLogsResponse; -import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; -import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; -import com.google.logging.v2.TailLogEntriesRequest; -import com.google.logging.v2.TailLogEntriesResponse; -import com.google.logging.v2.WriteLogEntriesRequest; -import com.google.logging.v2.WriteLogEntriesResponse; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link LoggingClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (logging.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of deleteLog to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * LoggingSettings.Builder loggingSettingsBuilder = LoggingSettings.newBuilder();
- * loggingSettingsBuilder
- *     .deleteLogSettings()
- *     .setRetrySettings(
- *         loggingSettingsBuilder
- *             .deleteLogSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * LoggingSettings loggingSettings = loggingSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class LoggingSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to deleteLog. */ - public UnaryCallSettings deleteLogSettings() { - return ((LoggingServiceV2StubSettings) getStubSettings()).deleteLogSettings(); - } - - /** Returns the object with the settings used for calls to writeLogEntries. */ - public BatchingCallSettings - writeLogEntriesSettings() { - return ((LoggingServiceV2StubSettings) getStubSettings()).writeLogEntriesSettings(); - } - - /** Returns the object with the settings used for calls to listLogEntries. */ - public PagedCallSettings< - ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse> - listLogEntriesSettings() { - return ((LoggingServiceV2StubSettings) getStubSettings()).listLogEntriesSettings(); - } - - /** Returns the object with the settings used for calls to listMonitoredResourceDescriptors. */ - public PagedCallSettings< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - ListMonitoredResourceDescriptorsPagedResponse> - listMonitoredResourceDescriptorsSettings() { - return ((LoggingServiceV2StubSettings) getStubSettings()) - .listMonitoredResourceDescriptorsSettings(); - } - - /** Returns the object with the settings used for calls to listLogs. */ - public PagedCallSettings - listLogsSettings() { - return ((LoggingServiceV2StubSettings) getStubSettings()).listLogsSettings(); - } - - /** Returns the object with the settings used for calls to tailLogEntries. */ - public StreamingCallSettings - tailLogEntriesSettings() { - return ((LoggingServiceV2StubSettings) getStubSettings()).tailLogEntriesSettings(); - } - - public static final LoggingSettings create(LoggingServiceV2StubSettings stub) throws IOException { - return new LoggingSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return LoggingServiceV2StubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return LoggingServiceV2StubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return LoggingServiceV2StubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return LoggingServiceV2StubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return LoggingServiceV2StubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return LoggingServiceV2StubSettings.defaultTransportChannelProvider(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return LoggingServiceV2StubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected LoggingSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for LoggingSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(LoggingServiceV2StubSettings.newBuilder(clientContext)); - } - - protected Builder(LoggingSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(LoggingServiceV2StubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(LoggingServiceV2StubSettings.newBuilder()); - } - - public LoggingServiceV2StubSettings.Builder getStubSettingsBuilder() { - return ((LoggingServiceV2StubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to deleteLog. */ - public UnaryCallSettings.Builder deleteLogSettings() { - return getStubSettingsBuilder().deleteLogSettings(); - } - - /** Returns the builder for the settings used for calls to writeLogEntries. */ - public BatchingCallSettings.Builder - writeLogEntriesSettings() { - return getStubSettingsBuilder().writeLogEntriesSettings(); - } - - /** Returns the builder for the settings used for calls to listLogEntries. */ - public PagedCallSettings.Builder< - ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse> - listLogEntriesSettings() { - return getStubSettingsBuilder().listLogEntriesSettings(); - } - - /** Returns the builder for the settings used for calls to listMonitoredResourceDescriptors. */ - public PagedCallSettings.Builder< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - ListMonitoredResourceDescriptorsPagedResponse> - listMonitoredResourceDescriptorsSettings() { - return getStubSettingsBuilder().listMonitoredResourceDescriptorsSettings(); - } - - /** Returns the builder for the settings used for calls to listLogs. */ - public PagedCallSettings.Builder - listLogsSettings() { - return getStubSettingsBuilder().listLogsSettings(); - } - - /** Returns the builder for the settings used for calls to tailLogEntries. */ - public StreamingCallSettings.Builder - tailLogEntriesSettings() { - return getStubSettingsBuilder().tailLogEntriesSettings(); - } - - @Override - public LoggingSettings build() throws IOException { - return new LoggingSettings(this); - } - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java deleted file mode 100644 index 44601734b..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java +++ /dev/null @@ -1,1003 +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.logging.v2; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.logging.v2.stub.MetricsServiceV2Stub; -import com.google.cloud.logging.v2.stub.MetricsServiceV2StubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.logging.v2.CreateLogMetricRequest; -import com.google.logging.v2.DeleteLogMetricRequest; -import com.google.logging.v2.GetLogMetricRequest; -import com.google.logging.v2.ListLogMetricsRequest; -import com.google.logging.v2.ListLogMetricsResponse; -import com.google.logging.v2.LogMetric; -import com.google.logging.v2.LogMetricName; -import com.google.logging.v2.ProjectName; -import com.google.logging.v2.UpdateLogMetricRequest; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Service for configuring logs-based metrics. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (MetricsClient metricsClient = MetricsClient.create()) {
- *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
- *   LogMetric response = metricsClient.getLogMetric(metricName);
- * }
- * }
- * - *

Note: close() needs to be called on the MetricsClient object to clean up resources such as - * threads. In the example above, try-with-resources is used, which automatically calls close(). - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
Methods
MethodDescriptionMethod Variants

ListLogMetrics

Lists logs-based metrics.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • listLogMetrics(ListLogMetricsRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • listLogMetrics(ProjectName parent) - *

  • listLogMetrics(String parent) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • listLogMetricsPagedCallable() - *

  • listLogMetricsCallable() - *

- *

GetLogMetric

Gets a logs-based metric.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • getLogMetric(GetLogMetricRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • getLogMetric(LogMetricName metricName) - *

  • getLogMetric(String metricName) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • getLogMetricCallable() - *

- *

CreateLogMetric

Creates a logs-based metric.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • createLogMetric(CreateLogMetricRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • createLogMetric(ProjectName parent, LogMetric metric) - *

  • createLogMetric(String parent, LogMetric metric) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • createLogMetricCallable() - *

- *

UpdateLogMetric

Creates or updates a logs-based metric.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • updateLogMetric(UpdateLogMetricRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • updateLogMetric(LogMetricName metricName, LogMetric metric) - *

  • updateLogMetric(String metricName, LogMetric metric) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • updateLogMetricCallable() - *

- *

DeleteLogMetric

Deletes a logs-based metric.

- *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

- *
    - *
  • deleteLogMetric(DeleteLogMetricRequest request) - *

- *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

- *
    - *
  • deleteLogMetric(LogMetricName metricName) - *

  • deleteLogMetric(String metricName) - *

- *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

- *
    - *
  • deleteLogMetricCallable() - *

- *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of MetricsSettings to create(). - * For example: - * - *

To customize credentials: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * MetricsSettings metricsSettings =
- *     MetricsSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * MetricsClient metricsClient = MetricsClient.create(metricsSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * MetricsSettings metricsSettings = MetricsSettings.newBuilder().setEndpoint(myEndpoint).build();
- * MetricsClient metricsClient = MetricsClient.create(metricsSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class MetricsClient implements BackgroundResource { - private final MetricsSettings settings; - private final MetricsServiceV2Stub stub; - - /** Constructs an instance of MetricsClient with default settings. */ - public static final MetricsClient create() throws IOException { - return create(MetricsSettings.newBuilder().build()); - } - - /** - * Constructs an instance of MetricsClient, using the given settings. The channels are created - * based on the settings passed in, or defaults for any settings that are not set. - */ - public static final MetricsClient create(MetricsSettings settings) throws IOException { - return new MetricsClient(settings); - } - - /** - * Constructs an instance of MetricsClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(MetricsSettings). - */ - public static final MetricsClient create(MetricsServiceV2Stub stub) { - return new MetricsClient(stub); - } - - /** - * Constructs an instance of MetricsClient, using the given settings. This is protected so that it - * is easy to make a subclass, but otherwise, the static factory methods should be preferred. - */ - protected MetricsClient(MetricsSettings settings) throws IOException { - this.settings = settings; - this.stub = ((MetricsServiceV2StubSettings) settings.getStubSettings()).createStub(); - } - - protected MetricsClient(MetricsServiceV2Stub stub) { - this.settings = null; - this.stub = stub; - } - - public final MetricsSettings getSettings() { - return settings; - } - - public MetricsServiceV2Stub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists logs-based metrics. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the project containing the metrics: - *

"projects/[PROJECT_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLogMetricsPagedResponse listLogMetrics(ProjectName parent) { - ListLogMetricsRequest request = - ListLogMetricsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listLogMetrics(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists logs-based metrics. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   String parent = ProjectName.of("[PROJECT]").toString();
-   *   for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the project containing the metrics: - *

"projects/[PROJECT_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLogMetricsPagedResponse listLogMetrics(String parent) { - ListLogMetricsRequest request = ListLogMetricsRequest.newBuilder().setParent(parent).build(); - return listLogMetrics(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists logs-based metrics. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   ListLogMetricsRequest request =
-   *       ListLogMetricsRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   for (LogMetric element : metricsClient.listLogMetrics(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLogMetricsPagedResponse listLogMetrics(ListLogMetricsRequest request) { - return listLogMetricsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists logs-based metrics. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   ListLogMetricsRequest request =
-   *       ListLogMetricsRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   ApiFuture future = metricsClient.listLogMetricsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (LogMetric element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listLogMetricsPagedCallable() { - return stub.listLogMetricsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists logs-based metrics. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   ListLogMetricsRequest request =
-   *       ListLogMetricsRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setPageToken("pageToken873572522")
-   *           .setPageSize(883849137)
-   *           .build();
-   *   while (true) {
-   *     ListLogMetricsResponse response = metricsClient.listLogMetricsCallable().call(request);
-   *     for (LogMetric element : response.getMetricsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listLogMetricsCallable() { - return stub.listLogMetricsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
-   *   LogMetric response = metricsClient.getLogMetric(metricName);
-   * }
-   * }
- * - * @param metricName Required. The resource name of the desired metric: - *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogMetric getLogMetric(LogMetricName metricName) { - GetLogMetricRequest request = - GetLogMetricRequest.newBuilder() - .setMetricName(metricName == null ? null : metricName.toString()) - .build(); - return getLogMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString();
-   *   LogMetric response = metricsClient.getLogMetric(metricName);
-   * }
-   * }
- * - * @param metricName Required. The resource name of the desired metric: - *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogMetric getLogMetric(String metricName) { - GetLogMetricRequest request = - GetLogMetricRequest.newBuilder().setMetricName(metricName).build(); - return getLogMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   GetLogMetricRequest request =
-   *       GetLogMetricRequest.newBuilder()
-   *           .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
-   *           .build();
-   *   LogMetric response = metricsClient.getLogMetric(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogMetric getLogMetric(GetLogMetricRequest request) { - return getLogMetricCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   GetLogMetricRequest request =
-   *       GetLogMetricRequest.newBuilder()
-   *           .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
-   *           .build();
-   *   ApiFuture future = metricsClient.getLogMetricCallable().futureCall(request);
-   *   // Do something.
-   *   LogMetric response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getLogMetricCallable() { - return stub.getLogMetricCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   ProjectName parent = ProjectName.of("[PROJECT]");
-   *   LogMetric metric = LogMetric.newBuilder().build();
-   *   LogMetric response = metricsClient.createLogMetric(parent, metric);
-   * }
-   * }
- * - * @param parent Required. The resource name of the project in which to create the metric: - *

"projects/[PROJECT_ID]" - *

The new metric must be provided in the request. - * @param metric Required. The new logs-based metric, which must not have an identifier that - * already exists. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogMetric createLogMetric(ProjectName parent, LogMetric metric) { - CreateLogMetricRequest request = - CreateLogMetricRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setMetric(metric) - .build(); - return createLogMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   String parent = ProjectName.of("[PROJECT]").toString();
-   *   LogMetric metric = LogMetric.newBuilder().build();
-   *   LogMetric response = metricsClient.createLogMetric(parent, metric);
-   * }
-   * }
- * - * @param parent Required. The resource name of the project in which to create the metric: - *

"projects/[PROJECT_ID]" - *

The new metric must be provided in the request. - * @param metric Required. The new logs-based metric, which must not have an identifier that - * already exists. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogMetric createLogMetric(String parent, LogMetric metric) { - CreateLogMetricRequest request = - CreateLogMetricRequest.newBuilder().setParent(parent).setMetric(metric).build(); - return createLogMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   CreateLogMetricRequest request =
-   *       CreateLogMetricRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setMetric(LogMetric.newBuilder().build())
-   *           .build();
-   *   LogMetric response = metricsClient.createLogMetric(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogMetric createLogMetric(CreateLogMetricRequest request) { - return createLogMetricCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   CreateLogMetricRequest request =
-   *       CreateLogMetricRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setMetric(LogMetric.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = metricsClient.createLogMetricCallable().futureCall(request);
-   *   // Do something.
-   *   LogMetric response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createLogMetricCallable() { - return stub.createLogMetricCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates or updates a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
-   *   LogMetric metric = LogMetric.newBuilder().build();
-   *   LogMetric response = metricsClient.updateLogMetric(metricName, metric);
-   * }
-   * }
- * - * @param metricName Required. The resource name of the metric to update: - *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" - *

The updated metric must be provided in the request and it's `name` field must be the - * same as `[METRIC_ID]` If the metric does not exist in `[PROJECT_ID]`, then a new metric is - * created. - * @param metric Required. The updated metric. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogMetric updateLogMetric(LogMetricName metricName, LogMetric metric) { - UpdateLogMetricRequest request = - UpdateLogMetricRequest.newBuilder() - .setMetricName(metricName == null ? null : metricName.toString()) - .setMetric(metric) - .build(); - return updateLogMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates or updates a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString();
-   *   LogMetric metric = LogMetric.newBuilder().build();
-   *   LogMetric response = metricsClient.updateLogMetric(metricName, metric);
-   * }
-   * }
- * - * @param metricName Required. The resource name of the metric to update: - *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" - *

The updated metric must be provided in the request and it's `name` field must be the - * same as `[METRIC_ID]` If the metric does not exist in `[PROJECT_ID]`, then a new metric is - * created. - * @param metric Required. The updated metric. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogMetric updateLogMetric(String metricName, LogMetric metric) { - UpdateLogMetricRequest request = - UpdateLogMetricRequest.newBuilder().setMetricName(metricName).setMetric(metric).build(); - return updateLogMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates or updates a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   UpdateLogMetricRequest request =
-   *       UpdateLogMetricRequest.newBuilder()
-   *           .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
-   *           .setMetric(LogMetric.newBuilder().build())
-   *           .build();
-   *   LogMetric response = metricsClient.updateLogMetric(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LogMetric updateLogMetric(UpdateLogMetricRequest request) { - return updateLogMetricCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates or updates a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   UpdateLogMetricRequest request =
-   *       UpdateLogMetricRequest.newBuilder()
-   *           .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
-   *           .setMetric(LogMetric.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = metricsClient.updateLogMetricCallable().futureCall(request);
-   *   // Do something.
-   *   LogMetric response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateLogMetricCallable() { - return stub.updateLogMetricCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
-   *   metricsClient.deleteLogMetric(metricName);
-   * }
-   * }
- * - * @param metricName Required. The resource name of the metric to delete: - *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteLogMetric(LogMetricName metricName) { - DeleteLogMetricRequest request = - DeleteLogMetricRequest.newBuilder() - .setMetricName(metricName == null ? null : metricName.toString()) - .build(); - deleteLogMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   String metricName = LogMetricName.of("[PROJECT]", "[METRIC]").toString();
-   *   metricsClient.deleteLogMetric(metricName);
-   * }
-   * }
- * - * @param metricName Required. The resource name of the metric to delete: - *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteLogMetric(String metricName) { - DeleteLogMetricRequest request = - DeleteLogMetricRequest.newBuilder().setMetricName(metricName).build(); - deleteLogMetric(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   DeleteLogMetricRequest request =
-   *       DeleteLogMetricRequest.newBuilder()
-   *           .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
-   *           .build();
-   *   metricsClient.deleteLogMetric(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteLogMetric(DeleteLogMetricRequest request) { - deleteLogMetricCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a logs-based metric. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (MetricsClient metricsClient = MetricsClient.create()) {
-   *   DeleteLogMetricRequest request =
-   *       DeleteLogMetricRequest.newBuilder()
-   *           .setMetricName(LogMetricName.of("[PROJECT]", "[METRIC]").toString())
-   *           .build();
-   *   ApiFuture future = metricsClient.deleteLogMetricCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteLogMetricCallable() { - return stub.deleteLogMetricCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListLogMetricsPagedResponse - extends AbstractPagedListResponse< - ListLogMetricsRequest, - ListLogMetricsResponse, - LogMetric, - ListLogMetricsPage, - ListLogMetricsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListLogMetricsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListLogMetricsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListLogMetricsPagedResponse(ListLogMetricsPage page) { - super(page, ListLogMetricsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListLogMetricsPage - extends AbstractPage< - ListLogMetricsRequest, ListLogMetricsResponse, LogMetric, ListLogMetricsPage> { - - private ListLogMetricsPage( - PageContext context, - ListLogMetricsResponse response) { - super(context, response); - } - - private static ListLogMetricsPage createEmptyPage() { - return new ListLogMetricsPage(null, null); - } - - @Override - protected ListLogMetricsPage createPage( - PageContext context, - ListLogMetricsResponse response) { - return new ListLogMetricsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListLogMetricsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListLogMetricsRequest, - ListLogMetricsResponse, - LogMetric, - ListLogMetricsPage, - ListLogMetricsFixedSizeCollection> { - - private ListLogMetricsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListLogMetricsFixedSizeCollection createEmptyCollection() { - return new ListLogMetricsFixedSizeCollection(null, 0); - } - - @Override - protected ListLogMetricsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListLogMetricsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java deleted file mode 100644 index 025d7bc7b..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java +++ /dev/null @@ -1,238 +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.logging.v2; - -import static com.google.cloud.logging.v2.MetricsClient.ListLogMetricsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -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.logging.v2.stub.MetricsServiceV2StubSettings; -import com.google.logging.v2.CreateLogMetricRequest; -import com.google.logging.v2.DeleteLogMetricRequest; -import com.google.logging.v2.GetLogMetricRequest; -import com.google.logging.v2.ListLogMetricsRequest; -import com.google.logging.v2.ListLogMetricsResponse; -import com.google.logging.v2.LogMetric; -import com.google.logging.v2.UpdateLogMetricRequest; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link MetricsClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (logging.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getLogMetric to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * MetricsSettings.Builder metricsSettingsBuilder = MetricsSettings.newBuilder();
- * metricsSettingsBuilder
- *     .getLogMetricSettings()
- *     .setRetrySettings(
- *         metricsSettingsBuilder
- *             .getLogMetricSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * MetricsSettings metricsSettings = metricsSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class MetricsSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to listLogMetrics. */ - public PagedCallSettings< - ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse> - listLogMetricsSettings() { - return ((MetricsServiceV2StubSettings) getStubSettings()).listLogMetricsSettings(); - } - - /** Returns the object with the settings used for calls to getLogMetric. */ - public UnaryCallSettings getLogMetricSettings() { - return ((MetricsServiceV2StubSettings) getStubSettings()).getLogMetricSettings(); - } - - /** Returns the object with the settings used for calls to createLogMetric. */ - public UnaryCallSettings createLogMetricSettings() { - return ((MetricsServiceV2StubSettings) getStubSettings()).createLogMetricSettings(); - } - - /** Returns the object with the settings used for calls to updateLogMetric. */ - public UnaryCallSettings updateLogMetricSettings() { - return ((MetricsServiceV2StubSettings) getStubSettings()).updateLogMetricSettings(); - } - - /** Returns the object with the settings used for calls to deleteLogMetric. */ - public UnaryCallSettings deleteLogMetricSettings() { - return ((MetricsServiceV2StubSettings) getStubSettings()).deleteLogMetricSettings(); - } - - public static final MetricsSettings create(MetricsServiceV2StubSettings stub) throws IOException { - return new MetricsSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return MetricsServiceV2StubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return MetricsServiceV2StubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return MetricsServiceV2StubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return MetricsServiceV2StubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return MetricsServiceV2StubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return MetricsServiceV2StubSettings.defaultTransportChannelProvider(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return MetricsServiceV2StubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected MetricsSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for MetricsSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(MetricsServiceV2StubSettings.newBuilder(clientContext)); - } - - protected Builder(MetricsSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(MetricsServiceV2StubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(MetricsServiceV2StubSettings.newBuilder()); - } - - public MetricsServiceV2StubSettings.Builder getStubSettingsBuilder() { - return ((MetricsServiceV2StubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listLogMetrics. */ - public PagedCallSettings.Builder< - ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse> - listLogMetricsSettings() { - return getStubSettingsBuilder().listLogMetricsSettings(); - } - - /** Returns the builder for the settings used for calls to getLogMetric. */ - public UnaryCallSettings.Builder getLogMetricSettings() { - return getStubSettingsBuilder().getLogMetricSettings(); - } - - /** Returns the builder for the settings used for calls to createLogMetric. */ - public UnaryCallSettings.Builder createLogMetricSettings() { - return getStubSettingsBuilder().createLogMetricSettings(); - } - - /** Returns the builder for the settings used for calls to updateLogMetric. */ - public UnaryCallSettings.Builder updateLogMetricSettings() { - return getStubSettingsBuilder().updateLogMetricSettings(); - } - - /** Returns the builder for the settings used for calls to deleteLogMetric. */ - public UnaryCallSettings.Builder deleteLogMetricSettings() { - return getStubSettingsBuilder().deleteLogMetricSettings(); - } - - @Override - public MetricsSettings build() throws IOException { - return new MetricsSettings(this); - } - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json deleted file mode 100644 index e29e092e0..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.logging.v2", - "libraryPackage": "com.google.cloud.logging.v2", - "services": { - "LoggingServiceV2": { - "clients": { - "grpc": { - "libraryClient": "LoggingClient", - "rpcs": { - "DeleteLog": { - "methods": ["deleteLog", "deleteLog", "deleteLog", "deleteLogCallable"] - }, - "ListLogEntries": { - "methods": ["listLogEntries", "listLogEntries", "listLogEntriesPagedCallable", "listLogEntriesCallable"] - }, - "ListLogs": { - "methods": ["listLogs", "listLogs", "listLogs", "listLogs", "listLogs", "listLogs", "listLogsPagedCallable", "listLogsCallable"] - }, - "ListMonitoredResourceDescriptors": { - "methods": ["listMonitoredResourceDescriptors", "listMonitoredResourceDescriptorsPagedCallable", "listMonitoredResourceDescriptorsCallable"] - }, - "TailLogEntries": { - "methods": ["tailLogEntriesCallable"] - }, - "WriteLogEntries": { - "methods": ["writeLogEntries", "writeLogEntries", "writeLogEntries", "writeLogEntriesCallable"] - } - } - } - } - }, - "ConfigServiceV2": { - "clients": { - "grpc": { - "libraryClient": "ConfigClient", - "rpcs": { - "CopyLogEntries": { - "methods": ["copyLogEntriesAsync", "copyLogEntriesOperationCallable", "copyLogEntriesCallable"] - }, - "CreateBucket": { - "methods": ["createBucket", "createBucketCallable"] - }, - "CreateBucketAsync": { - "methods": ["createBucketAsyncAsync", "createBucketAsyncOperationCallable", "createBucketAsyncCallable"] - }, - "CreateExclusion": { - "methods": ["createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusionCallable"] - }, - "CreateLink": { - "methods": ["createLinkAsync", "createLinkAsync", "createLinkAsync", "createLinkOperationCallable", "createLinkCallable"] - }, - "CreateSink": { - "methods": ["createSink", "createSink", "createSink", "createSink", "createSink", "createSink", "createSinkCallable"] - }, - "CreateView": { - "methods": ["createView", "createViewCallable"] - }, - "DeleteBucket": { - "methods": ["deleteBucket", "deleteBucketCallable"] - }, - "DeleteExclusion": { - "methods": ["deleteExclusion", "deleteExclusion", "deleteExclusion", "deleteExclusionCallable"] - }, - "DeleteLink": { - "methods": ["deleteLinkAsync", "deleteLinkAsync", "deleteLinkAsync", "deleteLinkOperationCallable", "deleteLinkCallable"] - }, - "DeleteSink": { - "methods": ["deleteSink", "deleteSink", "deleteSink", "deleteSinkCallable"] - }, - "DeleteView": { - "methods": ["deleteView", "deleteViewCallable"] - }, - "GetBucket": { - "methods": ["getBucket", "getBucketCallable"] - }, - "GetCmekSettings": { - "methods": ["getCmekSettings", "getCmekSettingsCallable"] - }, - "GetExclusion": { - "methods": ["getExclusion", "getExclusion", "getExclusion", "getExclusionCallable"] - }, - "GetLink": { - "methods": ["getLink", "getLink", "getLink", "getLinkCallable"] - }, - "GetSettings": { - "methods": ["getSettings", "getSettings", "getSettings", "getSettingsCallable"] - }, - "GetSink": { - "methods": ["getSink", "getSink", "getSink", "getSinkCallable"] - }, - "GetView": { - "methods": ["getView", "getViewCallable"] - }, - "ListBuckets": { - "methods": ["listBuckets", "listBuckets", "listBuckets", "listBuckets", "listBuckets", "listBuckets", "listBucketsPagedCallable", "listBucketsCallable"] - }, - "ListExclusions": { - "methods": ["listExclusions", "listExclusions", "listExclusions", "listExclusions", "listExclusions", "listExclusions", "listExclusionsPagedCallable", "listExclusionsCallable"] - }, - "ListLinks": { - "methods": ["listLinks", "listLinks", "listLinks", "listLinksPagedCallable", "listLinksCallable"] - }, - "ListSinks": { - "methods": ["listSinks", "listSinks", "listSinks", "listSinks", "listSinks", "listSinks", "listSinksPagedCallable", "listSinksCallable"] - }, - "ListViews": { - "methods": ["listViews", "listViews", "listViewsPagedCallable", "listViewsCallable"] - }, - "UndeleteBucket": { - "methods": ["undeleteBucket", "undeleteBucketCallable"] - }, - "UpdateBucket": { - "methods": ["updateBucket", "updateBucketCallable"] - }, - "UpdateBucketAsync": { - "methods": ["updateBucketAsyncAsync", "updateBucketAsyncOperationCallable", "updateBucketAsyncCallable"] - }, - "UpdateCmekSettings": { - "methods": ["updateCmekSettings", "updateCmekSettingsCallable"] - }, - "UpdateExclusion": { - "methods": ["updateExclusion", "updateExclusion", "updateExclusion", "updateExclusionCallable"] - }, - "UpdateSettings": { - "methods": ["updateSettings", "updateSettings", "updateSettingsCallable"] - }, - "UpdateSink": { - "methods": ["updateSink", "updateSink", "updateSink", "updateSink", "updateSink", "updateSinkCallable"] - }, - "UpdateView": { - "methods": ["updateView", "updateViewCallable"] - } - } - } - } - }, - "MetricsServiceV2": { - "clients": { - "grpc": { - "libraryClient": "MetricsClient", - "rpcs": { - "CreateLogMetric": { - "methods": ["createLogMetric", "createLogMetric", "createLogMetric", "createLogMetricCallable"] - }, - "DeleteLogMetric": { - "methods": ["deleteLogMetric", "deleteLogMetric", "deleteLogMetric", "deleteLogMetricCallable"] - }, - "GetLogMetric": { - "methods": ["getLogMetric", "getLogMetric", "getLogMetric", "getLogMetricCallable"] - }, - "ListLogMetrics": { - "methods": ["listLogMetrics", "listLogMetrics", "listLogMetrics", "listLogMetricsPagedCallable", "listLogMetricsCallable"] - }, - "UpdateLogMetric": { - "methods": ["updateLogMetric", "updateLogMetric", "updateLogMetric", "updateLogMetricCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java deleted file mode 100644 index f473fa53e..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java +++ /dev/null @@ -1,84 +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. - */ - -/** - * A client to Cloud Logging API - * - *

The interfaces provided are listed below, along with usage samples. - * - *

======================= LoggingClient ======================= - * - *

Service Description: Service for ingesting and querying logs. - * - *

Sample for LoggingClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (LoggingClient loggingClient = LoggingClient.create()) {
- *   LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]");
- *   loggingClient.deleteLog(logName);
- * }
- * }
- * - *

======================= ConfigClient ======================= - * - *

Service Description: Service for configuring sinks used to route log entries. - * - *

Sample for ConfigClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (ConfigClient configClient = ConfigClient.create()) {
- *   GetBucketRequest request =
- *       GetBucketRequest.newBuilder()
- *           .setName(
- *               LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]")
- *                   .toString())
- *           .build();
- *   LogBucket response = configClient.getBucket(request);
- * }
- * }
- * - *

======================= MetricsClient ======================= - * - *

Service Description: Service for configuring logs-based metrics. - * - *

Sample for MetricsClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (MetricsClient metricsClient = MetricsClient.create()) {
- *   LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]");
- *   LogMetric response = metricsClient.getLogMetric(metricName);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.logging.v2; - -import javax.annotation.Generated; diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java deleted file mode 100644 index 5a7a372bc..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java +++ /dev/null @@ -1,268 +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.logging.v2.stub; - -import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.logging.v2.BucketMetadata; -import com.google.logging.v2.CmekSettings; -import com.google.logging.v2.CopyLogEntriesMetadata; -import com.google.logging.v2.CopyLogEntriesRequest; -import com.google.logging.v2.CopyLogEntriesResponse; -import com.google.logging.v2.CreateBucketRequest; -import com.google.logging.v2.CreateExclusionRequest; -import com.google.logging.v2.CreateLinkRequest; -import com.google.logging.v2.CreateSinkRequest; -import com.google.logging.v2.CreateViewRequest; -import com.google.logging.v2.DeleteBucketRequest; -import com.google.logging.v2.DeleteExclusionRequest; -import com.google.logging.v2.DeleteLinkRequest; -import com.google.logging.v2.DeleteSinkRequest; -import com.google.logging.v2.DeleteViewRequest; -import com.google.logging.v2.GetBucketRequest; -import com.google.logging.v2.GetCmekSettingsRequest; -import com.google.logging.v2.GetExclusionRequest; -import com.google.logging.v2.GetLinkRequest; -import com.google.logging.v2.GetSettingsRequest; -import com.google.logging.v2.GetSinkRequest; -import com.google.logging.v2.GetViewRequest; -import com.google.logging.v2.Link; -import com.google.logging.v2.LinkMetadata; -import com.google.logging.v2.ListBucketsRequest; -import com.google.logging.v2.ListBucketsResponse; -import com.google.logging.v2.ListExclusionsRequest; -import com.google.logging.v2.ListExclusionsResponse; -import com.google.logging.v2.ListLinksRequest; -import com.google.logging.v2.ListLinksResponse; -import com.google.logging.v2.ListSinksRequest; -import com.google.logging.v2.ListSinksResponse; -import com.google.logging.v2.ListViewsRequest; -import com.google.logging.v2.ListViewsResponse; -import com.google.logging.v2.LogBucket; -import com.google.logging.v2.LogExclusion; -import com.google.logging.v2.LogSink; -import com.google.logging.v2.LogView; -import com.google.logging.v2.Settings; -import com.google.logging.v2.UndeleteBucketRequest; -import com.google.logging.v2.UpdateBucketRequest; -import com.google.logging.v2.UpdateCmekSettingsRequest; -import com.google.logging.v2.UpdateExclusionRequest; -import com.google.logging.v2.UpdateSettingsRequest; -import com.google.logging.v2.UpdateSinkRequest; -import com.google.logging.v2.UpdateViewRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the ConfigServiceV2 service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class ConfigServiceV2Stub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); - } - - public UnaryCallable listBucketsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listBucketsPagedCallable()"); - } - - public UnaryCallable listBucketsCallable() { - throw new UnsupportedOperationException("Not implemented: listBucketsCallable()"); - } - - public UnaryCallable getBucketCallable() { - throw new UnsupportedOperationException("Not implemented: getBucketCallable()"); - } - - public OperationCallable - createBucketAsyncOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: createBucketAsyncOperationCallable()"); - } - - public UnaryCallable createBucketAsyncCallable() { - throw new UnsupportedOperationException("Not implemented: createBucketAsyncCallable()"); - } - - public OperationCallable - updateBucketAsyncOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateBucketAsyncOperationCallable()"); - } - - public UnaryCallable updateBucketAsyncCallable() { - throw new UnsupportedOperationException("Not implemented: updateBucketAsyncCallable()"); - } - - public UnaryCallable createBucketCallable() { - throw new UnsupportedOperationException("Not implemented: createBucketCallable()"); - } - - public UnaryCallable updateBucketCallable() { - throw new UnsupportedOperationException("Not implemented: updateBucketCallable()"); - } - - public UnaryCallable deleteBucketCallable() { - throw new UnsupportedOperationException("Not implemented: deleteBucketCallable()"); - } - - public UnaryCallable undeleteBucketCallable() { - throw new UnsupportedOperationException("Not implemented: undeleteBucketCallable()"); - } - - public UnaryCallable listViewsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listViewsPagedCallable()"); - } - - public UnaryCallable listViewsCallable() { - throw new UnsupportedOperationException("Not implemented: listViewsCallable()"); - } - - public UnaryCallable getViewCallable() { - throw new UnsupportedOperationException("Not implemented: getViewCallable()"); - } - - public UnaryCallable createViewCallable() { - throw new UnsupportedOperationException("Not implemented: createViewCallable()"); - } - - public UnaryCallable updateViewCallable() { - throw new UnsupportedOperationException("Not implemented: updateViewCallable()"); - } - - public UnaryCallable deleteViewCallable() { - throw new UnsupportedOperationException("Not implemented: deleteViewCallable()"); - } - - public UnaryCallable listSinksPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listSinksPagedCallable()"); - } - - public UnaryCallable listSinksCallable() { - throw new UnsupportedOperationException("Not implemented: listSinksCallable()"); - } - - public UnaryCallable getSinkCallable() { - throw new UnsupportedOperationException("Not implemented: getSinkCallable()"); - } - - public UnaryCallable createSinkCallable() { - throw new UnsupportedOperationException("Not implemented: createSinkCallable()"); - } - - public UnaryCallable updateSinkCallable() { - throw new UnsupportedOperationException("Not implemented: updateSinkCallable()"); - } - - public UnaryCallable deleteSinkCallable() { - throw new UnsupportedOperationException("Not implemented: deleteSinkCallable()"); - } - - public OperationCallable createLinkOperationCallable() { - throw new UnsupportedOperationException("Not implemented: createLinkOperationCallable()"); - } - - public UnaryCallable createLinkCallable() { - throw new UnsupportedOperationException("Not implemented: createLinkCallable()"); - } - - public OperationCallable deleteLinkOperationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteLinkOperationCallable()"); - } - - public UnaryCallable deleteLinkCallable() { - throw new UnsupportedOperationException("Not implemented: deleteLinkCallable()"); - } - - public UnaryCallable listLinksPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listLinksPagedCallable()"); - } - - public UnaryCallable listLinksCallable() { - throw new UnsupportedOperationException("Not implemented: listLinksCallable()"); - } - - public UnaryCallable getLinkCallable() { - throw new UnsupportedOperationException("Not implemented: getLinkCallable()"); - } - - public UnaryCallable - listExclusionsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listExclusionsPagedCallable()"); - } - - public UnaryCallable listExclusionsCallable() { - throw new UnsupportedOperationException("Not implemented: listExclusionsCallable()"); - } - - public UnaryCallable getExclusionCallable() { - throw new UnsupportedOperationException("Not implemented: getExclusionCallable()"); - } - - public UnaryCallable createExclusionCallable() { - throw new UnsupportedOperationException("Not implemented: createExclusionCallable()"); - } - - public UnaryCallable updateExclusionCallable() { - throw new UnsupportedOperationException("Not implemented: updateExclusionCallable()"); - } - - public UnaryCallable deleteExclusionCallable() { - throw new UnsupportedOperationException("Not implemented: deleteExclusionCallable()"); - } - - public UnaryCallable getCmekSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: getCmekSettingsCallable()"); - } - - public UnaryCallable updateCmekSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: updateCmekSettingsCallable()"); - } - - public UnaryCallable getSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: getSettingsCallable()"); - } - - public UnaryCallable updateSettingsCallable() { - throw new UnsupportedOperationException("Not implemented: updateSettingsCallable()"); - } - - public OperationCallable - copyLogEntriesOperationCallable() { - throw new UnsupportedOperationException("Not implemented: copyLogEntriesOperationCallable()"); - } - - public UnaryCallable copyLogEntriesCallable() { - throw new UnsupportedOperationException("Not implemented: copyLogEntriesCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java deleted file mode 100644 index 9e5618bc0..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java +++ /dev/null @@ -1,1594 +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.logging.v2.stub; - -import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.logging.v2.BucketMetadata; -import com.google.logging.v2.CmekSettings; -import com.google.logging.v2.CopyLogEntriesMetadata; -import com.google.logging.v2.CopyLogEntriesRequest; -import com.google.logging.v2.CopyLogEntriesResponse; -import com.google.logging.v2.CreateBucketRequest; -import com.google.logging.v2.CreateExclusionRequest; -import com.google.logging.v2.CreateLinkRequest; -import com.google.logging.v2.CreateSinkRequest; -import com.google.logging.v2.CreateViewRequest; -import com.google.logging.v2.DeleteBucketRequest; -import com.google.logging.v2.DeleteExclusionRequest; -import com.google.logging.v2.DeleteLinkRequest; -import com.google.logging.v2.DeleteSinkRequest; -import com.google.logging.v2.DeleteViewRequest; -import com.google.logging.v2.GetBucketRequest; -import com.google.logging.v2.GetCmekSettingsRequest; -import com.google.logging.v2.GetExclusionRequest; -import com.google.logging.v2.GetLinkRequest; -import com.google.logging.v2.GetSettingsRequest; -import com.google.logging.v2.GetSinkRequest; -import com.google.logging.v2.GetViewRequest; -import com.google.logging.v2.Link; -import com.google.logging.v2.LinkMetadata; -import com.google.logging.v2.ListBucketsRequest; -import com.google.logging.v2.ListBucketsResponse; -import com.google.logging.v2.ListExclusionsRequest; -import com.google.logging.v2.ListExclusionsResponse; -import com.google.logging.v2.ListLinksRequest; -import com.google.logging.v2.ListLinksResponse; -import com.google.logging.v2.ListSinksRequest; -import com.google.logging.v2.ListSinksResponse; -import com.google.logging.v2.ListViewsRequest; -import com.google.logging.v2.ListViewsResponse; -import com.google.logging.v2.LogBucket; -import com.google.logging.v2.LogExclusion; -import com.google.logging.v2.LogSink; -import com.google.logging.v2.LogView; -import com.google.logging.v2.Settings; -import com.google.logging.v2.UndeleteBucketRequest; -import com.google.logging.v2.UpdateBucketRequest; -import com.google.logging.v2.UpdateCmekSettingsRequest; -import com.google.logging.v2.UpdateExclusionRequest; -import com.google.logging.v2.UpdateSettingsRequest; -import com.google.logging.v2.UpdateSinkRequest; -import com.google.logging.v2.UpdateViewRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link ConfigServiceV2Stub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (logging.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getBucket to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * ConfigServiceV2StubSettings.Builder configSettingsBuilder =
- *     ConfigServiceV2StubSettings.newBuilder();
- * configSettingsBuilder
- *     .getBucketSettings()
- *     .setRetrySettings(
- *         configSettingsBuilder
- *             .getBucketSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * ConfigServiceV2StubSettings configSettings = configSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class ConfigServiceV2StubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/cloud-platform") - .add("https://www.googleapis.com/auth/cloud-platform.read-only") - .add("https://www.googleapis.com/auth/logging.admin") - .add("https://www.googleapis.com/auth/logging.read") - .build(); - - private final PagedCallSettings - listBucketsSettings; - private final UnaryCallSettings getBucketSettings; - private final UnaryCallSettings createBucketAsyncSettings; - private final OperationCallSettings - createBucketAsyncOperationSettings; - private final UnaryCallSettings updateBucketAsyncSettings; - private final OperationCallSettings - updateBucketAsyncOperationSettings; - private final UnaryCallSettings createBucketSettings; - private final UnaryCallSettings updateBucketSettings; - private final UnaryCallSettings deleteBucketSettings; - private final UnaryCallSettings undeleteBucketSettings; - private final PagedCallSettings - listViewsSettings; - private final UnaryCallSettings getViewSettings; - private final UnaryCallSettings createViewSettings; - private final UnaryCallSettings updateViewSettings; - private final UnaryCallSettings deleteViewSettings; - private final PagedCallSettings - listSinksSettings; - private final UnaryCallSettings getSinkSettings; - private final UnaryCallSettings createSinkSettings; - private final UnaryCallSettings updateSinkSettings; - private final UnaryCallSettings deleteSinkSettings; - private final UnaryCallSettings createLinkSettings; - private final OperationCallSettings - createLinkOperationSettings; - private final UnaryCallSettings deleteLinkSettings; - private final OperationCallSettings - deleteLinkOperationSettings; - private final PagedCallSettings - listLinksSettings; - private final UnaryCallSettings getLinkSettings; - private final PagedCallSettings< - ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> - listExclusionsSettings; - private final UnaryCallSettings getExclusionSettings; - private final UnaryCallSettings createExclusionSettings; - private final UnaryCallSettings updateExclusionSettings; - private final UnaryCallSettings deleteExclusionSettings; - private final UnaryCallSettings getCmekSettingsSettings; - private final UnaryCallSettings - updateCmekSettingsSettings; - private final UnaryCallSettings getSettingsSettings; - private final UnaryCallSettings updateSettingsSettings; - private final UnaryCallSettings copyLogEntriesSettings; - private final OperationCallSettings< - CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> - copyLogEntriesOperationSettings; - - private static final PagedListDescriptor - LIST_BUCKETS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListBucketsRequest injectToken(ListBucketsRequest payload, String token) { - return ListBucketsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListBucketsRequest injectPageSize(ListBucketsRequest payload, int pageSize) { - return ListBucketsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListBucketsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListBucketsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListBucketsResponse payload) { - return payload.getBucketsList() == null - ? ImmutableList.of() - : payload.getBucketsList(); - } - }; - - private static final PagedListDescriptor - LIST_VIEWS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListViewsRequest injectToken(ListViewsRequest payload, String token) { - return ListViewsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListViewsRequest injectPageSize(ListViewsRequest payload, int pageSize) { - return ListViewsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListViewsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListViewsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListViewsResponse payload) { - return payload.getViewsList() == null - ? ImmutableList.of() - : payload.getViewsList(); - } - }; - - private static final PagedListDescriptor - LIST_SINKS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListSinksRequest injectToken(ListSinksRequest payload, String token) { - return ListSinksRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListSinksRequest injectPageSize(ListSinksRequest payload, int pageSize) { - return ListSinksRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListSinksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListSinksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListSinksResponse payload) { - return payload.getSinksList() == null - ? ImmutableList.of() - : payload.getSinksList(); - } - }; - - private static final PagedListDescriptor - LIST_LINKS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListLinksRequest injectToken(ListLinksRequest payload, String token) { - return ListLinksRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListLinksRequest injectPageSize(ListLinksRequest payload, int pageSize) { - return ListLinksRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListLinksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListLinksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListLinksResponse payload) { - return payload.getLinksList() == null - ? ImmutableList.of() - : payload.getLinksList(); - } - }; - - private static final PagedListDescriptor< - ListExclusionsRequest, ListExclusionsResponse, LogExclusion> - LIST_EXCLUSIONS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListExclusionsRequest injectToken(ListExclusionsRequest payload, String token) { - return ListExclusionsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListExclusionsRequest injectPageSize( - ListExclusionsRequest payload, int pageSize) { - return ListExclusionsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListExclusionsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListExclusionsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListExclusionsResponse payload) { - return payload.getExclusionsList() == null - ? ImmutableList.of() - : payload.getExclusionsList(); - } - }; - - private static final PagedListResponseFactory< - ListBucketsRequest, ListBucketsResponse, ListBucketsPagedResponse> - LIST_BUCKETS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListBucketsRequest, ListBucketsResponse, ListBucketsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListBucketsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_BUCKETS_PAGE_STR_DESC, request, context); - return ListBucketsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListViewsRequest, ListViewsResponse, ListViewsPagedResponse> - LIST_VIEWS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListViewsRequest, ListViewsResponse, ListViewsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListViewsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_VIEWS_PAGE_STR_DESC, request, context); - return ListViewsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListSinksRequest, ListSinksResponse, ListSinksPagedResponse> - LIST_SINKS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListSinksRequest, ListSinksResponse, ListSinksPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListSinksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_SINKS_PAGE_STR_DESC, request, context); - return ListSinksPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListLinksRequest, ListLinksResponse, ListLinksPagedResponse> - LIST_LINKS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListLinksRequest, ListLinksResponse, ListLinksPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListLinksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_LINKS_PAGE_STR_DESC, request, context); - return ListLinksPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> - LIST_EXCLUSIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListExclusionsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_EXCLUSIONS_PAGE_STR_DESC, request, context); - return ListExclusionsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to listBuckets. */ - public PagedCallSettings - listBucketsSettings() { - return listBucketsSettings; - } - - /** Returns the object with the settings used for calls to getBucket. */ - public UnaryCallSettings getBucketSettings() { - return getBucketSettings; - } - - /** Returns the object with the settings used for calls to createBucketAsync. */ - public UnaryCallSettings createBucketAsyncSettings() { - return createBucketAsyncSettings; - } - - /** Returns the object with the settings used for calls to createBucketAsync. */ - public OperationCallSettings - createBucketAsyncOperationSettings() { - return createBucketAsyncOperationSettings; - } - - /** Returns the object with the settings used for calls to updateBucketAsync. */ - public UnaryCallSettings updateBucketAsyncSettings() { - return updateBucketAsyncSettings; - } - - /** Returns the object with the settings used for calls to updateBucketAsync. */ - public OperationCallSettings - updateBucketAsyncOperationSettings() { - return updateBucketAsyncOperationSettings; - } - - /** Returns the object with the settings used for calls to createBucket. */ - public UnaryCallSettings createBucketSettings() { - return createBucketSettings; - } - - /** Returns the object with the settings used for calls to updateBucket. */ - public UnaryCallSettings updateBucketSettings() { - return updateBucketSettings; - } - - /** Returns the object with the settings used for calls to deleteBucket. */ - public UnaryCallSettings deleteBucketSettings() { - return deleteBucketSettings; - } - - /** Returns the object with the settings used for calls to undeleteBucket. */ - public UnaryCallSettings undeleteBucketSettings() { - return undeleteBucketSettings; - } - - /** Returns the object with the settings used for calls to listViews. */ - public PagedCallSettings - listViewsSettings() { - return listViewsSettings; - } - - /** Returns the object with the settings used for calls to getView. */ - public UnaryCallSettings getViewSettings() { - return getViewSettings; - } - - /** Returns the object with the settings used for calls to createView. */ - public UnaryCallSettings createViewSettings() { - return createViewSettings; - } - - /** Returns the object with the settings used for calls to updateView. */ - public UnaryCallSettings updateViewSettings() { - return updateViewSettings; - } - - /** Returns the object with the settings used for calls to deleteView. */ - public UnaryCallSettings deleteViewSettings() { - return deleteViewSettings; - } - - /** Returns the object with the settings used for calls to listSinks. */ - public PagedCallSettings - listSinksSettings() { - return listSinksSettings; - } - - /** Returns the object with the settings used for calls to getSink. */ - public UnaryCallSettings getSinkSettings() { - return getSinkSettings; - } - - /** Returns the object with the settings used for calls to createSink. */ - public UnaryCallSettings createSinkSettings() { - return createSinkSettings; - } - - /** Returns the object with the settings used for calls to updateSink. */ - public UnaryCallSettings updateSinkSettings() { - return updateSinkSettings; - } - - /** Returns the object with the settings used for calls to deleteSink. */ - public UnaryCallSettings deleteSinkSettings() { - return deleteSinkSettings; - } - - /** Returns the object with the settings used for calls to createLink. */ - public UnaryCallSettings createLinkSettings() { - return createLinkSettings; - } - - /** Returns the object with the settings used for calls to createLink. */ - public OperationCallSettings - createLinkOperationSettings() { - return createLinkOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteLink. */ - public UnaryCallSettings deleteLinkSettings() { - return deleteLinkSettings; - } - - /** Returns the object with the settings used for calls to deleteLink. */ - public OperationCallSettings - deleteLinkOperationSettings() { - return deleteLinkOperationSettings; - } - - /** Returns the object with the settings used for calls to listLinks. */ - public PagedCallSettings - listLinksSettings() { - return listLinksSettings; - } - - /** Returns the object with the settings used for calls to getLink. */ - public UnaryCallSettings getLinkSettings() { - return getLinkSettings; - } - - /** Returns the object with the settings used for calls to listExclusions. */ - public PagedCallSettings< - ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> - listExclusionsSettings() { - return listExclusionsSettings; - } - - /** Returns the object with the settings used for calls to getExclusion. */ - public UnaryCallSettings getExclusionSettings() { - return getExclusionSettings; - } - - /** Returns the object with the settings used for calls to createExclusion. */ - public UnaryCallSettings createExclusionSettings() { - return createExclusionSettings; - } - - /** Returns the object with the settings used for calls to updateExclusion. */ - public UnaryCallSettings updateExclusionSettings() { - return updateExclusionSettings; - } - - /** Returns the object with the settings used for calls to deleteExclusion. */ - public UnaryCallSettings deleteExclusionSettings() { - return deleteExclusionSettings; - } - - /** Returns the object with the settings used for calls to getCmekSettings. */ - public UnaryCallSettings getCmekSettingsSettings() { - return getCmekSettingsSettings; - } - - /** Returns the object with the settings used for calls to updateCmekSettings. */ - public UnaryCallSettings updateCmekSettingsSettings() { - return updateCmekSettingsSettings; - } - - /** Returns the object with the settings used for calls to getSettings. */ - public UnaryCallSettings getSettingsSettings() { - return getSettingsSettings; - } - - /** Returns the object with the settings used for calls to updateSettings. */ - public UnaryCallSettings updateSettingsSettings() { - return updateSettingsSettings; - } - - /** Returns the object with the settings used for calls to copyLogEntries. */ - public UnaryCallSettings copyLogEntriesSettings() { - return copyLogEntriesSettings; - } - - /** Returns the object with the settings used for calls to copyLogEntries. */ - public OperationCallSettings< - CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> - copyLogEntriesOperationSettings() { - return copyLogEntriesOperationSettings; - } - - public ConfigServiceV2Stub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcConfigServiceV2Stub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - - /** Returns the default service name. */ - @Override - public String getServiceName() { - return "logging"; - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "logging.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "logging.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(ConfigServiceV2StubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected ConfigServiceV2StubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listBucketsSettings = settingsBuilder.listBucketsSettings().build(); - getBucketSettings = settingsBuilder.getBucketSettings().build(); - createBucketAsyncSettings = settingsBuilder.createBucketAsyncSettings().build(); - createBucketAsyncOperationSettings = - settingsBuilder.createBucketAsyncOperationSettings().build(); - updateBucketAsyncSettings = settingsBuilder.updateBucketAsyncSettings().build(); - updateBucketAsyncOperationSettings = - settingsBuilder.updateBucketAsyncOperationSettings().build(); - createBucketSettings = settingsBuilder.createBucketSettings().build(); - updateBucketSettings = settingsBuilder.updateBucketSettings().build(); - deleteBucketSettings = settingsBuilder.deleteBucketSettings().build(); - undeleteBucketSettings = settingsBuilder.undeleteBucketSettings().build(); - listViewsSettings = settingsBuilder.listViewsSettings().build(); - getViewSettings = settingsBuilder.getViewSettings().build(); - createViewSettings = settingsBuilder.createViewSettings().build(); - updateViewSettings = settingsBuilder.updateViewSettings().build(); - deleteViewSettings = settingsBuilder.deleteViewSettings().build(); - listSinksSettings = settingsBuilder.listSinksSettings().build(); - getSinkSettings = settingsBuilder.getSinkSettings().build(); - createSinkSettings = settingsBuilder.createSinkSettings().build(); - updateSinkSettings = settingsBuilder.updateSinkSettings().build(); - deleteSinkSettings = settingsBuilder.deleteSinkSettings().build(); - createLinkSettings = settingsBuilder.createLinkSettings().build(); - createLinkOperationSettings = settingsBuilder.createLinkOperationSettings().build(); - deleteLinkSettings = settingsBuilder.deleteLinkSettings().build(); - deleteLinkOperationSettings = settingsBuilder.deleteLinkOperationSettings().build(); - listLinksSettings = settingsBuilder.listLinksSettings().build(); - getLinkSettings = settingsBuilder.getLinkSettings().build(); - listExclusionsSettings = settingsBuilder.listExclusionsSettings().build(); - getExclusionSettings = settingsBuilder.getExclusionSettings().build(); - createExclusionSettings = settingsBuilder.createExclusionSettings().build(); - updateExclusionSettings = settingsBuilder.updateExclusionSettings().build(); - deleteExclusionSettings = settingsBuilder.deleteExclusionSettings().build(); - getCmekSettingsSettings = settingsBuilder.getCmekSettingsSettings().build(); - updateCmekSettingsSettings = settingsBuilder.updateCmekSettingsSettings().build(); - getSettingsSettings = settingsBuilder.getSettingsSettings().build(); - updateSettingsSettings = settingsBuilder.updateSettingsSettings().build(); - copyLogEntriesSettings = settingsBuilder.copyLogEntriesSettings().build(); - copyLogEntriesOperationSettings = settingsBuilder.copyLogEntriesOperationSettings().build(); - } - - /** Builder for ConfigServiceV2StubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final PagedCallSettings.Builder< - ListBucketsRequest, ListBucketsResponse, ListBucketsPagedResponse> - listBucketsSettings; - private final UnaryCallSettings.Builder getBucketSettings; - private final UnaryCallSettings.Builder - createBucketAsyncSettings; - private final OperationCallSettings.Builder - createBucketAsyncOperationSettings; - private final UnaryCallSettings.Builder - updateBucketAsyncSettings; - private final OperationCallSettings.Builder - updateBucketAsyncOperationSettings; - private final UnaryCallSettings.Builder createBucketSettings; - private final UnaryCallSettings.Builder updateBucketSettings; - private final UnaryCallSettings.Builder deleteBucketSettings; - private final UnaryCallSettings.Builder undeleteBucketSettings; - private final PagedCallSettings.Builder< - ListViewsRequest, ListViewsResponse, ListViewsPagedResponse> - listViewsSettings; - private final UnaryCallSettings.Builder getViewSettings; - private final UnaryCallSettings.Builder createViewSettings; - private final UnaryCallSettings.Builder updateViewSettings; - private final UnaryCallSettings.Builder deleteViewSettings; - private final PagedCallSettings.Builder< - ListSinksRequest, ListSinksResponse, ListSinksPagedResponse> - listSinksSettings; - private final UnaryCallSettings.Builder getSinkSettings; - private final UnaryCallSettings.Builder createSinkSettings; - private final UnaryCallSettings.Builder updateSinkSettings; - private final UnaryCallSettings.Builder deleteSinkSettings; - private final UnaryCallSettings.Builder createLinkSettings; - private final OperationCallSettings.Builder - createLinkOperationSettings; - private final UnaryCallSettings.Builder deleteLinkSettings; - private final OperationCallSettings.Builder - deleteLinkOperationSettings; - private final PagedCallSettings.Builder< - ListLinksRequest, ListLinksResponse, ListLinksPagedResponse> - listLinksSettings; - private final UnaryCallSettings.Builder getLinkSettings; - private final PagedCallSettings.Builder< - ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> - listExclusionsSettings; - private final UnaryCallSettings.Builder getExclusionSettings; - private final UnaryCallSettings.Builder - createExclusionSettings; - private final UnaryCallSettings.Builder - updateExclusionSettings; - private final UnaryCallSettings.Builder deleteExclusionSettings; - private final UnaryCallSettings.Builder - getCmekSettingsSettings; - private final UnaryCallSettings.Builder - updateCmekSettingsSettings; - private final UnaryCallSettings.Builder getSettingsSettings; - private final UnaryCallSettings.Builder updateSettingsSettings; - private final UnaryCallSettings.Builder - copyLogEntriesSettings; - private final OperationCallSettings.Builder< - CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> - copyLogEntriesOperationSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put( - "retry_policy_3_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - StatusCode.Code.UNAVAILABLE))); - definitions.put( - "no_retry_4_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_3_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(120000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(120000L)) - .setTotalTimeout(Duration.ofMillis(120000L)) - .build(); - definitions.put("no_retry_4_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listBucketsSettings = PagedCallSettings.newBuilder(LIST_BUCKETS_PAGE_STR_FACT); - getBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createBucketAsyncSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createBucketAsyncOperationSettings = OperationCallSettings.newBuilder(); - updateBucketAsyncSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateBucketAsyncOperationSettings = OperationCallSettings.newBuilder(); - createBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - undeleteBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listViewsSettings = PagedCallSettings.newBuilder(LIST_VIEWS_PAGE_STR_FACT); - getViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteViewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listSinksSettings = PagedCallSettings.newBuilder(LIST_SINKS_PAGE_STR_FACT); - getSinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createSinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateSinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteSinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createLinkOperationSettings = OperationCallSettings.newBuilder(); - deleteLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteLinkOperationSettings = OperationCallSettings.newBuilder(); - listLinksSettings = PagedCallSettings.newBuilder(LIST_LINKS_PAGE_STR_FACT); - getLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listExclusionsSettings = PagedCallSettings.newBuilder(LIST_EXCLUSIONS_PAGE_STR_FACT); - getExclusionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createExclusionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateExclusionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteExclusionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getCmekSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateCmekSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - copyLogEntriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - copyLogEntriesOperationSettings = OperationCallSettings.newBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listBucketsSettings, - getBucketSettings, - createBucketAsyncSettings, - updateBucketAsyncSettings, - createBucketSettings, - updateBucketSettings, - deleteBucketSettings, - undeleteBucketSettings, - listViewsSettings, - getViewSettings, - createViewSettings, - updateViewSettings, - deleteViewSettings, - listSinksSettings, - getSinkSettings, - createSinkSettings, - updateSinkSettings, - deleteSinkSettings, - createLinkSettings, - deleteLinkSettings, - listLinksSettings, - getLinkSettings, - listExclusionsSettings, - getExclusionSettings, - createExclusionSettings, - updateExclusionSettings, - deleteExclusionSettings, - getCmekSettingsSettings, - updateCmekSettingsSettings, - getSettingsSettings, - updateSettingsSettings, - copyLogEntriesSettings); - initDefaults(this); - } - - protected Builder(ConfigServiceV2StubSettings settings) { - super(settings); - - listBucketsSettings = settings.listBucketsSettings.toBuilder(); - getBucketSettings = settings.getBucketSettings.toBuilder(); - createBucketAsyncSettings = settings.createBucketAsyncSettings.toBuilder(); - createBucketAsyncOperationSettings = settings.createBucketAsyncOperationSettings.toBuilder(); - updateBucketAsyncSettings = settings.updateBucketAsyncSettings.toBuilder(); - updateBucketAsyncOperationSettings = settings.updateBucketAsyncOperationSettings.toBuilder(); - createBucketSettings = settings.createBucketSettings.toBuilder(); - updateBucketSettings = settings.updateBucketSettings.toBuilder(); - deleteBucketSettings = settings.deleteBucketSettings.toBuilder(); - undeleteBucketSettings = settings.undeleteBucketSettings.toBuilder(); - listViewsSettings = settings.listViewsSettings.toBuilder(); - getViewSettings = settings.getViewSettings.toBuilder(); - createViewSettings = settings.createViewSettings.toBuilder(); - updateViewSettings = settings.updateViewSettings.toBuilder(); - deleteViewSettings = settings.deleteViewSettings.toBuilder(); - listSinksSettings = settings.listSinksSettings.toBuilder(); - getSinkSettings = settings.getSinkSettings.toBuilder(); - createSinkSettings = settings.createSinkSettings.toBuilder(); - updateSinkSettings = settings.updateSinkSettings.toBuilder(); - deleteSinkSettings = settings.deleteSinkSettings.toBuilder(); - createLinkSettings = settings.createLinkSettings.toBuilder(); - createLinkOperationSettings = settings.createLinkOperationSettings.toBuilder(); - deleteLinkSettings = settings.deleteLinkSettings.toBuilder(); - deleteLinkOperationSettings = settings.deleteLinkOperationSettings.toBuilder(); - listLinksSettings = settings.listLinksSettings.toBuilder(); - getLinkSettings = settings.getLinkSettings.toBuilder(); - listExclusionsSettings = settings.listExclusionsSettings.toBuilder(); - getExclusionSettings = settings.getExclusionSettings.toBuilder(); - createExclusionSettings = settings.createExclusionSettings.toBuilder(); - updateExclusionSettings = settings.updateExclusionSettings.toBuilder(); - deleteExclusionSettings = settings.deleteExclusionSettings.toBuilder(); - getCmekSettingsSettings = settings.getCmekSettingsSettings.toBuilder(); - updateCmekSettingsSettings = settings.updateCmekSettingsSettings.toBuilder(); - getSettingsSettings = settings.getSettingsSettings.toBuilder(); - updateSettingsSettings = settings.updateSettingsSettings.toBuilder(); - copyLogEntriesSettings = settings.copyLogEntriesSettings.toBuilder(); - copyLogEntriesOperationSettings = settings.copyLogEntriesOperationSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listBucketsSettings, - getBucketSettings, - createBucketAsyncSettings, - updateBucketAsyncSettings, - createBucketSettings, - updateBucketSettings, - deleteBucketSettings, - undeleteBucketSettings, - listViewsSettings, - getViewSettings, - createViewSettings, - updateViewSettings, - deleteViewSettings, - listSinksSettings, - getSinkSettings, - createSinkSettings, - updateSinkSettings, - deleteSinkSettings, - createLinkSettings, - deleteLinkSettings, - listLinksSettings, - getLinkSettings, - listExclusionsSettings, - getExclusionSettings, - createExclusionSettings, - updateExclusionSettings, - deleteExclusionSettings, - getCmekSettingsSettings, - updateCmekSettingsSettings, - getSettingsSettings, - updateSettingsSettings, - copyLogEntriesSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .listBucketsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getBucketSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .createBucketAsyncSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .updateBucketAsyncSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .createBucketSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .updateBucketSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .deleteBucketSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .undeleteBucketSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .listViewsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getViewSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .createViewSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .updateViewSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .deleteViewSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .listSinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); - - builder - .getSinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); - - builder - .createSinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); - - builder - .updateSinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); - - builder - .deleteSinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); - - builder - .createLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .deleteLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .listLinksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .listExclusionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); - - builder - .getExclusionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); - - builder - .createExclusionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); - - builder - .updateExclusionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); - - builder - .deleteExclusionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); - - builder - .getCmekSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .updateCmekSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .updateSettingsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .copyLogEntriesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .createBucketAsyncOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(LogBucket.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(BucketMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .updateBucketAsyncOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(LogBucket.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(BucketMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .createLinkOperationSettings() - .setInitialCallSettings( - UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Link.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(LinkMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .deleteLinkOperationSettings() - .setInitialCallSettings( - UnaryCallSettings.newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(LinkMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .copyLogEntriesOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(CopyLogEntriesResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(CopyLogEntriesMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listBuckets. */ - public PagedCallSettings.Builder< - ListBucketsRequest, ListBucketsResponse, ListBucketsPagedResponse> - listBucketsSettings() { - return listBucketsSettings; - } - - /** Returns the builder for the settings used for calls to getBucket. */ - public UnaryCallSettings.Builder getBucketSettings() { - return getBucketSettings; - } - - /** Returns the builder for the settings used for calls to createBucketAsync. */ - public UnaryCallSettings.Builder createBucketAsyncSettings() { - return createBucketAsyncSettings; - } - - /** Returns the builder for the settings used for calls to createBucketAsync. */ - public OperationCallSettings.Builder - createBucketAsyncOperationSettings() { - return createBucketAsyncOperationSettings; - } - - /** Returns the builder for the settings used for calls to updateBucketAsync. */ - public UnaryCallSettings.Builder updateBucketAsyncSettings() { - return updateBucketAsyncSettings; - } - - /** Returns the builder for the settings used for calls to updateBucketAsync. */ - public OperationCallSettings.Builder - updateBucketAsyncOperationSettings() { - return updateBucketAsyncOperationSettings; - } - - /** Returns the builder for the settings used for calls to createBucket. */ - public UnaryCallSettings.Builder createBucketSettings() { - return createBucketSettings; - } - - /** Returns the builder for the settings used for calls to updateBucket. */ - public UnaryCallSettings.Builder updateBucketSettings() { - return updateBucketSettings; - } - - /** Returns the builder for the settings used for calls to deleteBucket. */ - public UnaryCallSettings.Builder deleteBucketSettings() { - return deleteBucketSettings; - } - - /** Returns the builder for the settings used for calls to undeleteBucket. */ - public UnaryCallSettings.Builder undeleteBucketSettings() { - return undeleteBucketSettings; - } - - /** Returns the builder for the settings used for calls to listViews. */ - public PagedCallSettings.Builder - listViewsSettings() { - return listViewsSettings; - } - - /** Returns the builder for the settings used for calls to getView. */ - public UnaryCallSettings.Builder getViewSettings() { - return getViewSettings; - } - - /** Returns the builder for the settings used for calls to createView. */ - public UnaryCallSettings.Builder createViewSettings() { - return createViewSettings; - } - - /** Returns the builder for the settings used for calls to updateView. */ - public UnaryCallSettings.Builder updateViewSettings() { - return updateViewSettings; - } - - /** Returns the builder for the settings used for calls to deleteView. */ - public UnaryCallSettings.Builder deleteViewSettings() { - return deleteViewSettings; - } - - /** Returns the builder for the settings used for calls to listSinks. */ - public PagedCallSettings.Builder - listSinksSettings() { - return listSinksSettings; - } - - /** Returns the builder for the settings used for calls to getSink. */ - public UnaryCallSettings.Builder getSinkSettings() { - return getSinkSettings; - } - - /** Returns the builder for the settings used for calls to createSink. */ - public UnaryCallSettings.Builder createSinkSettings() { - return createSinkSettings; - } - - /** Returns the builder for the settings used for calls to updateSink. */ - public UnaryCallSettings.Builder updateSinkSettings() { - return updateSinkSettings; - } - - /** Returns the builder for the settings used for calls to deleteSink. */ - public UnaryCallSettings.Builder deleteSinkSettings() { - return deleteSinkSettings; - } - - /** Returns the builder for the settings used for calls to createLink. */ - public UnaryCallSettings.Builder createLinkSettings() { - return createLinkSettings; - } - - /** Returns the builder for the settings used for calls to createLink. */ - public OperationCallSettings.Builder - createLinkOperationSettings() { - return createLinkOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteLink. */ - public UnaryCallSettings.Builder deleteLinkSettings() { - return deleteLinkSettings; - } - - /** Returns the builder for the settings used for calls to deleteLink. */ - public OperationCallSettings.Builder - deleteLinkOperationSettings() { - return deleteLinkOperationSettings; - } - - /** Returns the builder for the settings used for calls to listLinks. */ - public PagedCallSettings.Builder - listLinksSettings() { - return listLinksSettings; - } - - /** Returns the builder for the settings used for calls to getLink. */ - public UnaryCallSettings.Builder getLinkSettings() { - return getLinkSettings; - } - - /** Returns the builder for the settings used for calls to listExclusions. */ - public PagedCallSettings.Builder< - ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> - listExclusionsSettings() { - return listExclusionsSettings; - } - - /** Returns the builder for the settings used for calls to getExclusion. */ - public UnaryCallSettings.Builder getExclusionSettings() { - return getExclusionSettings; - } - - /** Returns the builder for the settings used for calls to createExclusion. */ - public UnaryCallSettings.Builder - createExclusionSettings() { - return createExclusionSettings; - } - - /** Returns the builder for the settings used for calls to updateExclusion. */ - public UnaryCallSettings.Builder - updateExclusionSettings() { - return updateExclusionSettings; - } - - /** Returns the builder for the settings used for calls to deleteExclusion. */ - public UnaryCallSettings.Builder deleteExclusionSettings() { - return deleteExclusionSettings; - } - - /** Returns the builder for the settings used for calls to getCmekSettings. */ - public UnaryCallSettings.Builder - getCmekSettingsSettings() { - return getCmekSettingsSettings; - } - - /** Returns the builder for the settings used for calls to updateCmekSettings. */ - public UnaryCallSettings.Builder - updateCmekSettingsSettings() { - return updateCmekSettingsSettings; - } - - /** Returns the builder for the settings used for calls to getSettings. */ - public UnaryCallSettings.Builder getSettingsSettings() { - return getSettingsSettings; - } - - /** Returns the builder for the settings used for calls to updateSettings. */ - public UnaryCallSettings.Builder updateSettingsSettings() { - return updateSettingsSettings; - } - - /** Returns the builder for the settings used for calls to copyLogEntries. */ - public UnaryCallSettings.Builder copyLogEntriesSettings() { - return copyLogEntriesSettings; - } - - /** Returns the builder for the settings used for calls to copyLogEntries. */ - public OperationCallSettings.Builder< - CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> - copyLogEntriesOperationSettings() { - return copyLogEntriesOperationSettings; - } - - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - - @Override - public ConfigServiceV2StubSettings build() throws IOException { - return new ConfigServiceV2StubSettings(this); - } - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java deleted file mode 100644 index 0a1a508b3..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java +++ /dev/null @@ -1,113 +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.logging.v2.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the ConfigServiceV2 service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcConfigServiceV2CallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java deleted file mode 100644 index 6f667bc68..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java +++ /dev/null @@ -1,1198 +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.logging.v2.stub; - -import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.logging.v2.BucketMetadata; -import com.google.logging.v2.CmekSettings; -import com.google.logging.v2.CopyLogEntriesMetadata; -import com.google.logging.v2.CopyLogEntriesRequest; -import com.google.logging.v2.CopyLogEntriesResponse; -import com.google.logging.v2.CreateBucketRequest; -import com.google.logging.v2.CreateExclusionRequest; -import com.google.logging.v2.CreateLinkRequest; -import com.google.logging.v2.CreateSinkRequest; -import com.google.logging.v2.CreateViewRequest; -import com.google.logging.v2.DeleteBucketRequest; -import com.google.logging.v2.DeleteExclusionRequest; -import com.google.logging.v2.DeleteLinkRequest; -import com.google.logging.v2.DeleteSinkRequest; -import com.google.logging.v2.DeleteViewRequest; -import com.google.logging.v2.GetBucketRequest; -import com.google.logging.v2.GetCmekSettingsRequest; -import com.google.logging.v2.GetExclusionRequest; -import com.google.logging.v2.GetLinkRequest; -import com.google.logging.v2.GetSettingsRequest; -import com.google.logging.v2.GetSinkRequest; -import com.google.logging.v2.GetViewRequest; -import com.google.logging.v2.Link; -import com.google.logging.v2.LinkMetadata; -import com.google.logging.v2.ListBucketsRequest; -import com.google.logging.v2.ListBucketsResponse; -import com.google.logging.v2.ListExclusionsRequest; -import com.google.logging.v2.ListExclusionsResponse; -import com.google.logging.v2.ListLinksRequest; -import com.google.logging.v2.ListLinksResponse; -import com.google.logging.v2.ListSinksRequest; -import com.google.logging.v2.ListSinksResponse; -import com.google.logging.v2.ListViewsRequest; -import com.google.logging.v2.ListViewsResponse; -import com.google.logging.v2.LogBucket; -import com.google.logging.v2.LogExclusion; -import com.google.logging.v2.LogSink; -import com.google.logging.v2.LogView; -import com.google.logging.v2.Settings; -import com.google.logging.v2.UndeleteBucketRequest; -import com.google.logging.v2.UpdateBucketRequest; -import com.google.logging.v2.UpdateCmekSettingsRequest; -import com.google.logging.v2.UpdateExclusionRequest; -import com.google.logging.v2.UpdateSettingsRequest; -import com.google.logging.v2.UpdateSinkRequest; -import com.google.logging.v2.UpdateViewRequest; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the ConfigServiceV2 service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcConfigServiceV2Stub extends ConfigServiceV2Stub { - private static final MethodDescriptor - listBucketsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/ListBuckets") - .setRequestMarshaller(ProtoUtils.marshaller(ListBucketsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListBucketsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getBucketMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/GetBucket") - .setRequestMarshaller(ProtoUtils.marshaller(GetBucketRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogBucket.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createBucketAsyncMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/CreateBucketAsync") - .setRequestMarshaller(ProtoUtils.marshaller(CreateBucketRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateBucketAsyncMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateBucketAsync") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateBucketRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createBucketMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/CreateBucket") - .setRequestMarshaller(ProtoUtils.marshaller(CreateBucketRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogBucket.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateBucketMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateBucket") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateBucketRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogBucket.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteBucketMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/DeleteBucket") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteBucketRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - undeleteBucketMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/UndeleteBucket") - .setRequestMarshaller( - ProtoUtils.marshaller(UndeleteBucketRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listViewsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/ListViews") - .setRequestMarshaller(ProtoUtils.marshaller(ListViewsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListViewsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getViewMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/GetView") - .setRequestMarshaller(ProtoUtils.marshaller(GetViewRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogView.getDefaultInstance())) - .build(); - - private static final MethodDescriptor createViewMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/CreateView") - .setRequestMarshaller(ProtoUtils.marshaller(CreateViewRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogView.getDefaultInstance())) - .build(); - - private static final MethodDescriptor updateViewMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateView") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateViewRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogView.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteViewMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/DeleteView") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteViewRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listSinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/ListSinks") - .setRequestMarshaller(ProtoUtils.marshaller(ListSinksRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListSinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getSinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/GetSink") - .setRequestMarshaller(ProtoUtils.marshaller(GetSinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogSink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor createSinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/CreateSink") - .setRequestMarshaller(ProtoUtils.marshaller(CreateSinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogSink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor updateSinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateSink") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateSinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogSink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteSinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/DeleteSink") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteSinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor createLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/CreateLink") - .setRequestMarshaller(ProtoUtils.marshaller(CreateLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/DeleteLink") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/ListLinks") - .setRequestMarshaller(ProtoUtils.marshaller(ListLinksRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/GetLink") - .setRequestMarshaller(ProtoUtils.marshaller(GetLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Link.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listExclusionsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/ListExclusions") - .setRequestMarshaller( - ProtoUtils.marshaller(ListExclusionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListExclusionsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getExclusionMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/GetExclusion") - .setRequestMarshaller(ProtoUtils.marshaller(GetExclusionRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogExclusion.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createExclusionMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/CreateExclusion") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateExclusionRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogExclusion.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateExclusionMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateExclusion") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateExclusionRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogExclusion.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteExclusionMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/DeleteExclusion") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteExclusionRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getCmekSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/GetCmekSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(GetCmekSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CmekSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateCmekSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateCmekSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateCmekSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CmekSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/GetSettings") - .setRequestMarshaller(ProtoUtils.marshaller(GetSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Settings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Settings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - copyLogEntriesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.ConfigServiceV2/CopyLogEntries") - .setRequestMarshaller( - ProtoUtils.marshaller(CopyLogEntriesRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private final UnaryCallable listBucketsCallable; - private final UnaryCallable - listBucketsPagedCallable; - private final UnaryCallable getBucketCallable; - private final UnaryCallable createBucketAsyncCallable; - private final OperationCallable - createBucketAsyncOperationCallable; - private final UnaryCallable updateBucketAsyncCallable; - private final OperationCallable - updateBucketAsyncOperationCallable; - private final UnaryCallable createBucketCallable; - private final UnaryCallable updateBucketCallable; - private final UnaryCallable deleteBucketCallable; - private final UnaryCallable undeleteBucketCallable; - private final UnaryCallable listViewsCallable; - private final UnaryCallable listViewsPagedCallable; - private final UnaryCallable getViewCallable; - private final UnaryCallable createViewCallable; - private final UnaryCallable updateViewCallable; - private final UnaryCallable deleteViewCallable; - private final UnaryCallable listSinksCallable; - private final UnaryCallable listSinksPagedCallable; - private final UnaryCallable getSinkCallable; - private final UnaryCallable createSinkCallable; - private final UnaryCallable updateSinkCallable; - private final UnaryCallable deleteSinkCallable; - private final UnaryCallable createLinkCallable; - private final OperationCallable - createLinkOperationCallable; - private final UnaryCallable deleteLinkCallable; - private final OperationCallable - deleteLinkOperationCallable; - private final UnaryCallable listLinksCallable; - private final UnaryCallable listLinksPagedCallable; - private final UnaryCallable getLinkCallable; - private final UnaryCallable listExclusionsCallable; - private final UnaryCallable - listExclusionsPagedCallable; - private final UnaryCallable getExclusionCallable; - private final UnaryCallable createExclusionCallable; - private final UnaryCallable updateExclusionCallable; - private final UnaryCallable deleteExclusionCallable; - private final UnaryCallable getCmekSettingsCallable; - private final UnaryCallable updateCmekSettingsCallable; - private final UnaryCallable getSettingsCallable; - private final UnaryCallable updateSettingsCallable; - private final UnaryCallable copyLogEntriesCallable; - private final OperationCallable< - CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> - copyLogEntriesOperationCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcConfigServiceV2Stub create(ConfigServiceV2StubSettings settings) - throws IOException { - return new GrpcConfigServiceV2Stub(settings, ClientContext.create(settings)); - } - - public static final GrpcConfigServiceV2Stub create(ClientContext clientContext) - throws IOException { - return new GrpcConfigServiceV2Stub( - ConfigServiceV2StubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcConfigServiceV2Stub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcConfigServiceV2Stub( - ConfigServiceV2StubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcConfigServiceV2Stub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcConfigServiceV2Stub( - ConfigServiceV2StubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcConfigServiceV2CallableFactory()); - } - - /** - * Constructs an instance of GrpcConfigServiceV2Stub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcConfigServiceV2Stub( - ConfigServiceV2StubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings listBucketsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listBucketsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getBucketTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getBucketMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createBucketAsyncTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createBucketAsyncMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateBucketAsyncTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateBucketAsyncMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createBucketTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createBucketMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateBucketTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateBucketMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteBucketTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteBucketMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings undeleteBucketTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(undeleteBucketMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings listViewsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listViewsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getViewTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getViewMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createViewTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createViewMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateViewTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateViewMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteViewTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteViewMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings listSinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listSinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getSinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getSinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("sink_name", String.valueOf(request.getSinkName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createSinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createSinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateSinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateSinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("sink_name", String.valueOf(request.getSinkName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteSinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteSinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("sink_name", String.valueOf(request.getSinkName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings listLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listExclusionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listExclusionsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getExclusionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getExclusionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createExclusionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createExclusionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateExclusionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateExclusionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteExclusionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteExclusionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getCmekSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getCmekSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateCmekSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateCmekSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings copyLogEntriesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(copyLogEntriesMethodDescriptor) - .build(); - - this.listBucketsCallable = - callableFactory.createUnaryCallable( - listBucketsTransportSettings, settings.listBucketsSettings(), clientContext); - this.listBucketsPagedCallable = - callableFactory.createPagedCallable( - listBucketsTransportSettings, settings.listBucketsSettings(), clientContext); - this.getBucketCallable = - callableFactory.createUnaryCallable( - getBucketTransportSettings, settings.getBucketSettings(), clientContext); - this.createBucketAsyncCallable = - callableFactory.createUnaryCallable( - createBucketAsyncTransportSettings, - settings.createBucketAsyncSettings(), - clientContext); - this.createBucketAsyncOperationCallable = - callableFactory.createOperationCallable( - createBucketAsyncTransportSettings, - settings.createBucketAsyncOperationSettings(), - clientContext, - operationsStub); - this.updateBucketAsyncCallable = - callableFactory.createUnaryCallable( - updateBucketAsyncTransportSettings, - settings.updateBucketAsyncSettings(), - clientContext); - this.updateBucketAsyncOperationCallable = - callableFactory.createOperationCallable( - updateBucketAsyncTransportSettings, - settings.updateBucketAsyncOperationSettings(), - clientContext, - operationsStub); - this.createBucketCallable = - callableFactory.createUnaryCallable( - createBucketTransportSettings, settings.createBucketSettings(), clientContext); - this.updateBucketCallable = - callableFactory.createUnaryCallable( - updateBucketTransportSettings, settings.updateBucketSettings(), clientContext); - this.deleteBucketCallable = - callableFactory.createUnaryCallable( - deleteBucketTransportSettings, settings.deleteBucketSettings(), clientContext); - this.undeleteBucketCallable = - callableFactory.createUnaryCallable( - undeleteBucketTransportSettings, settings.undeleteBucketSettings(), clientContext); - this.listViewsCallable = - callableFactory.createUnaryCallable( - listViewsTransportSettings, settings.listViewsSettings(), clientContext); - this.listViewsPagedCallable = - callableFactory.createPagedCallable( - listViewsTransportSettings, settings.listViewsSettings(), clientContext); - this.getViewCallable = - callableFactory.createUnaryCallable( - getViewTransportSettings, settings.getViewSettings(), clientContext); - this.createViewCallable = - callableFactory.createUnaryCallable( - createViewTransportSettings, settings.createViewSettings(), clientContext); - this.updateViewCallable = - callableFactory.createUnaryCallable( - updateViewTransportSettings, settings.updateViewSettings(), clientContext); - this.deleteViewCallable = - callableFactory.createUnaryCallable( - deleteViewTransportSettings, settings.deleteViewSettings(), clientContext); - this.listSinksCallable = - callableFactory.createUnaryCallable( - listSinksTransportSettings, settings.listSinksSettings(), clientContext); - this.listSinksPagedCallable = - callableFactory.createPagedCallable( - listSinksTransportSettings, settings.listSinksSettings(), clientContext); - this.getSinkCallable = - callableFactory.createUnaryCallable( - getSinkTransportSettings, settings.getSinkSettings(), clientContext); - this.createSinkCallable = - callableFactory.createUnaryCallable( - createSinkTransportSettings, settings.createSinkSettings(), clientContext); - this.updateSinkCallable = - callableFactory.createUnaryCallable( - updateSinkTransportSettings, settings.updateSinkSettings(), clientContext); - this.deleteSinkCallable = - callableFactory.createUnaryCallable( - deleteSinkTransportSettings, settings.deleteSinkSettings(), clientContext); - this.createLinkCallable = - callableFactory.createUnaryCallable( - createLinkTransportSettings, settings.createLinkSettings(), clientContext); - this.createLinkOperationCallable = - callableFactory.createOperationCallable( - createLinkTransportSettings, - settings.createLinkOperationSettings(), - clientContext, - operationsStub); - this.deleteLinkCallable = - callableFactory.createUnaryCallable( - deleteLinkTransportSettings, settings.deleteLinkSettings(), clientContext); - this.deleteLinkOperationCallable = - callableFactory.createOperationCallable( - deleteLinkTransportSettings, - settings.deleteLinkOperationSettings(), - clientContext, - operationsStub); - this.listLinksCallable = - callableFactory.createUnaryCallable( - listLinksTransportSettings, settings.listLinksSettings(), clientContext); - this.listLinksPagedCallable = - callableFactory.createPagedCallable( - listLinksTransportSettings, settings.listLinksSettings(), clientContext); - this.getLinkCallable = - callableFactory.createUnaryCallable( - getLinkTransportSettings, settings.getLinkSettings(), clientContext); - this.listExclusionsCallable = - callableFactory.createUnaryCallable( - listExclusionsTransportSettings, settings.listExclusionsSettings(), clientContext); - this.listExclusionsPagedCallable = - callableFactory.createPagedCallable( - listExclusionsTransportSettings, settings.listExclusionsSettings(), clientContext); - this.getExclusionCallable = - callableFactory.createUnaryCallable( - getExclusionTransportSettings, settings.getExclusionSettings(), clientContext); - this.createExclusionCallable = - callableFactory.createUnaryCallable( - createExclusionTransportSettings, settings.createExclusionSettings(), clientContext); - this.updateExclusionCallable = - callableFactory.createUnaryCallable( - updateExclusionTransportSettings, settings.updateExclusionSettings(), clientContext); - this.deleteExclusionCallable = - callableFactory.createUnaryCallable( - deleteExclusionTransportSettings, settings.deleteExclusionSettings(), clientContext); - this.getCmekSettingsCallable = - callableFactory.createUnaryCallable( - getCmekSettingsTransportSettings, settings.getCmekSettingsSettings(), clientContext); - this.updateCmekSettingsCallable = - callableFactory.createUnaryCallable( - updateCmekSettingsTransportSettings, - settings.updateCmekSettingsSettings(), - clientContext); - this.getSettingsCallable = - callableFactory.createUnaryCallable( - getSettingsTransportSettings, settings.getSettingsSettings(), clientContext); - this.updateSettingsCallable = - callableFactory.createUnaryCallable( - updateSettingsTransportSettings, settings.updateSettingsSettings(), clientContext); - this.copyLogEntriesCallable = - callableFactory.createUnaryCallable( - copyLogEntriesTransportSettings, settings.copyLogEntriesSettings(), clientContext); - this.copyLogEntriesOperationCallable = - callableFactory.createOperationCallable( - copyLogEntriesTransportSettings, - settings.copyLogEntriesOperationSettings(), - clientContext, - operationsStub); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable listBucketsCallable() { - return listBucketsCallable; - } - - @Override - public UnaryCallable listBucketsPagedCallable() { - return listBucketsPagedCallable; - } - - @Override - public UnaryCallable getBucketCallable() { - return getBucketCallable; - } - - @Override - public UnaryCallable createBucketAsyncCallable() { - return createBucketAsyncCallable; - } - - @Override - public OperationCallable - createBucketAsyncOperationCallable() { - return createBucketAsyncOperationCallable; - } - - @Override - public UnaryCallable updateBucketAsyncCallable() { - return updateBucketAsyncCallable; - } - - @Override - public OperationCallable - updateBucketAsyncOperationCallable() { - return updateBucketAsyncOperationCallable; - } - - @Override - public UnaryCallable createBucketCallable() { - return createBucketCallable; - } - - @Override - public UnaryCallable updateBucketCallable() { - return updateBucketCallable; - } - - @Override - public UnaryCallable deleteBucketCallable() { - return deleteBucketCallable; - } - - @Override - public UnaryCallable undeleteBucketCallable() { - return undeleteBucketCallable; - } - - @Override - public UnaryCallable listViewsCallable() { - return listViewsCallable; - } - - @Override - public UnaryCallable listViewsPagedCallable() { - return listViewsPagedCallable; - } - - @Override - public UnaryCallable getViewCallable() { - return getViewCallable; - } - - @Override - public UnaryCallable createViewCallable() { - return createViewCallable; - } - - @Override - public UnaryCallable updateViewCallable() { - return updateViewCallable; - } - - @Override - public UnaryCallable deleteViewCallable() { - return deleteViewCallable; - } - - @Override - public UnaryCallable listSinksCallable() { - return listSinksCallable; - } - - @Override - public UnaryCallable listSinksPagedCallable() { - return listSinksPagedCallable; - } - - @Override - public UnaryCallable getSinkCallable() { - return getSinkCallable; - } - - @Override - public UnaryCallable createSinkCallable() { - return createSinkCallable; - } - - @Override - public UnaryCallable updateSinkCallable() { - return updateSinkCallable; - } - - @Override - public UnaryCallable deleteSinkCallable() { - return deleteSinkCallable; - } - - @Override - public UnaryCallable createLinkCallable() { - return createLinkCallable; - } - - @Override - public OperationCallable createLinkOperationCallable() { - return createLinkOperationCallable; - } - - @Override - public UnaryCallable deleteLinkCallable() { - return deleteLinkCallable; - } - - @Override - public OperationCallable deleteLinkOperationCallable() { - return deleteLinkOperationCallable; - } - - @Override - public UnaryCallable listLinksCallable() { - return listLinksCallable; - } - - @Override - public UnaryCallable listLinksPagedCallable() { - return listLinksPagedCallable; - } - - @Override - public UnaryCallable getLinkCallable() { - return getLinkCallable; - } - - @Override - public UnaryCallable listExclusionsCallable() { - return listExclusionsCallable; - } - - @Override - public UnaryCallable - listExclusionsPagedCallable() { - return listExclusionsPagedCallable; - } - - @Override - public UnaryCallable getExclusionCallable() { - return getExclusionCallable; - } - - @Override - public UnaryCallable createExclusionCallable() { - return createExclusionCallable; - } - - @Override - public UnaryCallable updateExclusionCallable() { - return updateExclusionCallable; - } - - @Override - public UnaryCallable deleteExclusionCallable() { - return deleteExclusionCallable; - } - - @Override - public UnaryCallable getCmekSettingsCallable() { - return getCmekSettingsCallable; - } - - @Override - public UnaryCallable updateCmekSettingsCallable() { - return updateCmekSettingsCallable; - } - - @Override - public UnaryCallable getSettingsCallable() { - return getSettingsCallable; - } - - @Override - public UnaryCallable updateSettingsCallable() { - return updateSettingsCallable; - } - - @Override - public UnaryCallable copyLogEntriesCallable() { - return copyLogEntriesCallable; - } - - @Override - public OperationCallable - copyLogEntriesOperationCallable() { - return copyLogEntriesOperationCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java deleted file mode 100644 index 95d2afb33..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java +++ /dev/null @@ -1,113 +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.logging.v2.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the LoggingServiceV2 service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcLoggingServiceV2CallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java deleted file mode 100644 index 7ad2ec7c7..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java +++ /dev/null @@ -1,357 +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.logging.v2.stub; - -import static com.google.cloud.logging.v2.LoggingClient.ListLogEntriesPagedResponse; -import static com.google.cloud.logging.v2.LoggingClient.ListLogsPagedResponse; -import static com.google.cloud.logging.v2.LoggingClient.ListMonitoredResourceDescriptorsPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.logging.v2.DeleteLogRequest; -import com.google.logging.v2.ListLogEntriesRequest; -import com.google.logging.v2.ListLogEntriesResponse; -import com.google.logging.v2.ListLogsRequest; -import com.google.logging.v2.ListLogsResponse; -import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; -import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; -import com.google.logging.v2.TailLogEntriesRequest; -import com.google.logging.v2.TailLogEntriesResponse; -import com.google.logging.v2.WriteLogEntriesRequest; -import com.google.logging.v2.WriteLogEntriesResponse; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the LoggingServiceV2 service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcLoggingServiceV2Stub extends LoggingServiceV2Stub { - private static final MethodDescriptor deleteLogMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.LoggingServiceV2/DeleteLog") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteLogRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - writeLogEntriesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.LoggingServiceV2/WriteLogEntries") - .setRequestMarshaller( - ProtoUtils.marshaller(WriteLogEntriesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(WriteLogEntriesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listLogEntriesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.LoggingServiceV2/ListLogEntries") - .setRequestMarshaller( - ProtoUtils.marshaller(ListLogEntriesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListLogEntriesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse> - listMonitoredResourceDescriptorsMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.logging.v2.LoggingServiceV2/ListMonitoredResourceDescriptors") - .setRequestMarshaller( - ProtoUtils.marshaller( - ListMonitoredResourceDescriptorsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - ListMonitoredResourceDescriptorsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listLogsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.LoggingServiceV2/ListLogs") - .setRequestMarshaller(ProtoUtils.marshaller(ListLogsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListLogsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - tailLogEntriesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName("google.logging.v2.LoggingServiceV2/TailLogEntries") - .setRequestMarshaller( - ProtoUtils.marshaller(TailLogEntriesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TailLogEntriesResponse.getDefaultInstance())) - .build(); - - private final UnaryCallable deleteLogCallable; - private final UnaryCallable - writeLogEntriesCallable; - private final UnaryCallable listLogEntriesCallable; - private final UnaryCallable - listLogEntriesPagedCallable; - private final UnaryCallable< - ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse> - listMonitoredResourceDescriptorsCallable; - private final UnaryCallable< - ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsPagedResponse> - listMonitoredResourceDescriptorsPagedCallable; - private final UnaryCallable listLogsCallable; - private final UnaryCallable listLogsPagedCallable; - private final BidiStreamingCallable - tailLogEntriesCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcLoggingServiceV2Stub create(LoggingServiceV2StubSettings settings) - throws IOException { - return new GrpcLoggingServiceV2Stub(settings, ClientContext.create(settings)); - } - - public static final GrpcLoggingServiceV2Stub create(ClientContext clientContext) - throws IOException { - return new GrpcLoggingServiceV2Stub( - LoggingServiceV2StubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcLoggingServiceV2Stub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcLoggingServiceV2Stub( - LoggingServiceV2StubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcLoggingServiceV2Stub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcLoggingServiceV2Stub( - LoggingServiceV2StubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcLoggingServiceV2CallableFactory()); - } - - /** - * Constructs an instance of GrpcLoggingServiceV2Stub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcLoggingServiceV2Stub( - LoggingServiceV2StubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings deleteLogTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteLogMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("log_name", String.valueOf(request.getLogName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - writeLogEntriesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(writeLogEntriesMethodDescriptor) - .build(); - GrpcCallSettings - listLogEntriesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listLogEntriesMethodDescriptor) - .build(); - GrpcCallSettings< - ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse> - listMonitoredResourceDescriptorsTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(listMonitoredResourceDescriptorsMethodDescriptor) - .build(); - GrpcCallSettings listLogsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listLogsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - tailLogEntriesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(tailLogEntriesMethodDescriptor) - .build(); - - this.deleteLogCallable = - callableFactory.createUnaryCallable( - deleteLogTransportSettings, settings.deleteLogSettings(), clientContext); - this.writeLogEntriesCallable = - callableFactory.createBatchingCallable( - writeLogEntriesTransportSettings, settings.writeLogEntriesSettings(), clientContext); - this.listLogEntriesCallable = - callableFactory.createUnaryCallable( - listLogEntriesTransportSettings, settings.listLogEntriesSettings(), clientContext); - this.listLogEntriesPagedCallable = - callableFactory.createPagedCallable( - listLogEntriesTransportSettings, settings.listLogEntriesSettings(), clientContext); - this.listMonitoredResourceDescriptorsCallable = - callableFactory.createUnaryCallable( - listMonitoredResourceDescriptorsTransportSettings, - settings.listMonitoredResourceDescriptorsSettings(), - clientContext); - this.listMonitoredResourceDescriptorsPagedCallable = - callableFactory.createPagedCallable( - listMonitoredResourceDescriptorsTransportSettings, - settings.listMonitoredResourceDescriptorsSettings(), - clientContext); - this.listLogsCallable = - callableFactory.createUnaryCallable( - listLogsTransportSettings, settings.listLogsSettings(), clientContext); - this.listLogsPagedCallable = - callableFactory.createPagedCallable( - listLogsTransportSettings, settings.listLogsSettings(), clientContext); - this.tailLogEntriesCallable = - callableFactory.createBidiStreamingCallable( - tailLogEntriesTransportSettings, settings.tailLogEntriesSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable deleteLogCallable() { - return deleteLogCallable; - } - - @Override - public UnaryCallable writeLogEntriesCallable() { - return writeLogEntriesCallable; - } - - @Override - public UnaryCallable listLogEntriesCallable() { - return listLogEntriesCallable; - } - - @Override - public UnaryCallable - listLogEntriesPagedCallable() { - return listLogEntriesPagedCallable; - } - - @Override - public UnaryCallable< - ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse> - listMonitoredResourceDescriptorsCallable() { - return listMonitoredResourceDescriptorsCallable; - } - - @Override - public UnaryCallable< - ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsPagedResponse> - listMonitoredResourceDescriptorsPagedCallable() { - return listMonitoredResourceDescriptorsPagedCallable; - } - - @Override - public UnaryCallable listLogsCallable() { - return listLogsCallable; - } - - @Override - public UnaryCallable listLogsPagedCallable() { - return listLogsPagedCallable; - } - - @Override - public BidiStreamingCallable - tailLogEntriesCallable() { - return tailLogEntriesCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java deleted file mode 100644 index 2759addac..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java +++ /dev/null @@ -1,113 +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.logging.v2.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the MetricsServiceV2 service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcMetricsServiceV2CallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java deleted file mode 100644 index bd93e589d..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java +++ /dev/null @@ -1,299 +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.logging.v2.stub; - -import static com.google.cloud.logging.v2.MetricsClient.ListLogMetricsPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.logging.v2.CreateLogMetricRequest; -import com.google.logging.v2.DeleteLogMetricRequest; -import com.google.logging.v2.GetLogMetricRequest; -import com.google.logging.v2.ListLogMetricsRequest; -import com.google.logging.v2.ListLogMetricsResponse; -import com.google.logging.v2.LogMetric; -import com.google.logging.v2.UpdateLogMetricRequest; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the MetricsServiceV2 service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcMetricsServiceV2Stub extends MetricsServiceV2Stub { - private static final MethodDescriptor - listLogMetricsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.MetricsServiceV2/ListLogMetrics") - .setRequestMarshaller( - ProtoUtils.marshaller(ListLogMetricsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListLogMetricsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getLogMetricMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.MetricsServiceV2/GetLogMetric") - .setRequestMarshaller(ProtoUtils.marshaller(GetLogMetricRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogMetric.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createLogMetricMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.MetricsServiceV2/CreateLogMetric") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateLogMetricRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogMetric.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateLogMetricMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.MetricsServiceV2/UpdateLogMetric") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateLogMetricRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LogMetric.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteLogMetricMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.logging.v2.MetricsServiceV2/DeleteLogMetric") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteLogMetricRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private final UnaryCallable listLogMetricsCallable; - private final UnaryCallable - listLogMetricsPagedCallable; - private final UnaryCallable getLogMetricCallable; - private final UnaryCallable createLogMetricCallable; - private final UnaryCallable updateLogMetricCallable; - private final UnaryCallable deleteLogMetricCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcMetricsServiceV2Stub create(MetricsServiceV2StubSettings settings) - throws IOException { - return new GrpcMetricsServiceV2Stub(settings, ClientContext.create(settings)); - } - - public static final GrpcMetricsServiceV2Stub create(ClientContext clientContext) - throws IOException { - return new GrpcMetricsServiceV2Stub( - MetricsServiceV2StubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcMetricsServiceV2Stub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcMetricsServiceV2Stub( - MetricsServiceV2StubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcMetricsServiceV2Stub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcMetricsServiceV2Stub( - MetricsServiceV2StubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcMetricsServiceV2CallableFactory()); - } - - /** - * Constructs an instance of GrpcMetricsServiceV2Stub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcMetricsServiceV2Stub( - MetricsServiceV2StubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - listLogMetricsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listLogMetricsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getLogMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getLogMetricMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("metric_name", String.valueOf(request.getMetricName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createLogMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createLogMetricMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateLogMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateLogMetricMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("metric_name", String.valueOf(request.getMetricName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteLogMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteLogMetricMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("metric_name", String.valueOf(request.getMetricName())); - return builder.build(); - }) - .build(); - - this.listLogMetricsCallable = - callableFactory.createUnaryCallable( - listLogMetricsTransportSettings, settings.listLogMetricsSettings(), clientContext); - this.listLogMetricsPagedCallable = - callableFactory.createPagedCallable( - listLogMetricsTransportSettings, settings.listLogMetricsSettings(), clientContext); - this.getLogMetricCallable = - callableFactory.createUnaryCallable( - getLogMetricTransportSettings, settings.getLogMetricSettings(), clientContext); - this.createLogMetricCallable = - callableFactory.createUnaryCallable( - createLogMetricTransportSettings, settings.createLogMetricSettings(), clientContext); - this.updateLogMetricCallable = - callableFactory.createUnaryCallable( - updateLogMetricTransportSettings, settings.updateLogMetricSettings(), clientContext); - this.deleteLogMetricCallable = - callableFactory.createUnaryCallable( - deleteLogMetricTransportSettings, settings.deleteLogMetricSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable listLogMetricsCallable() { - return listLogMetricsCallable; - } - - @Override - public UnaryCallable - listLogMetricsPagedCallable() { - return listLogMetricsPagedCallable; - } - - @Override - public UnaryCallable getLogMetricCallable() { - return getLogMetricCallable; - } - - @Override - public UnaryCallable createLogMetricCallable() { - return createLogMetricCallable; - } - - @Override - public UnaryCallable updateLogMetricCallable() { - return updateLogMetricCallable; - } - - @Override - public UnaryCallable deleteLogMetricCallable() { - return deleteLogMetricCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java deleted file mode 100644 index 2df08a840..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java +++ /dev/null @@ -1,95 +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.logging.v2.stub; - -import static com.google.cloud.logging.v2.LoggingClient.ListLogEntriesPagedResponse; -import static com.google.cloud.logging.v2.LoggingClient.ListLogsPagedResponse; -import static com.google.cloud.logging.v2.LoggingClient.ListMonitoredResourceDescriptorsPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.logging.v2.DeleteLogRequest; -import com.google.logging.v2.ListLogEntriesRequest; -import com.google.logging.v2.ListLogEntriesResponse; -import com.google.logging.v2.ListLogsRequest; -import com.google.logging.v2.ListLogsResponse; -import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; -import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; -import com.google.logging.v2.TailLogEntriesRequest; -import com.google.logging.v2.TailLogEntriesResponse; -import com.google.logging.v2.WriteLogEntriesRequest; -import com.google.logging.v2.WriteLogEntriesResponse; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the LoggingServiceV2 service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class LoggingServiceV2Stub implements BackgroundResource { - - public UnaryCallable deleteLogCallable() { - throw new UnsupportedOperationException("Not implemented: deleteLogCallable()"); - } - - public UnaryCallable writeLogEntriesCallable() { - throw new UnsupportedOperationException("Not implemented: writeLogEntriesCallable()"); - } - - public UnaryCallable - listLogEntriesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listLogEntriesPagedCallable()"); - } - - public UnaryCallable listLogEntriesCallable() { - throw new UnsupportedOperationException("Not implemented: listLogEntriesCallable()"); - } - - public UnaryCallable< - ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsPagedResponse> - listMonitoredResourceDescriptorsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listMonitoredResourceDescriptorsPagedCallable()"); - } - - public UnaryCallable< - ListMonitoredResourceDescriptorsRequest, ListMonitoredResourceDescriptorsResponse> - listMonitoredResourceDescriptorsCallable() { - throw new UnsupportedOperationException( - "Not implemented: listMonitoredResourceDescriptorsCallable()"); - } - - public UnaryCallable listLogsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listLogsPagedCallable()"); - } - - public UnaryCallable listLogsCallable() { - throw new UnsupportedOperationException("Not implemented: listLogsCallable()"); - } - - public BidiStreamingCallable - tailLogEntriesCallable() { - throw new UnsupportedOperationException("Not implemented: tailLogEntriesCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java deleted file mode 100644 index 7f8e5453d..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java +++ /dev/null @@ -1,771 +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.logging.v2.stub; - -import static com.google.cloud.logging.v2.LoggingClient.ListLogEntriesPagedResponse; -import static com.google.cloud.logging.v2.LoggingClient.ListLogsPagedResponse; -import static com.google.cloud.logging.v2.LoggingClient.ListMonitoredResourceDescriptorsPagedResponse; - -import com.google.api.MonitoredResourceDescriptor; -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.gax.batching.BatchingSettings; -import com.google.api.gax.batching.FlowControlSettings; -import com.google.api.gax.batching.FlowController; -import com.google.api.gax.batching.PartitionKey; -import com.google.api.gax.batching.RequestBuilder; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.BatchedRequestIssuer; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BatchingDescriptor; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.logging.v2.DeleteLogRequest; -import com.google.logging.v2.ListLogEntriesRequest; -import com.google.logging.v2.ListLogEntriesResponse; -import com.google.logging.v2.ListLogsRequest; -import com.google.logging.v2.ListLogsResponse; -import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; -import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; -import com.google.logging.v2.LogEntry; -import com.google.logging.v2.TailLogEntriesRequest; -import com.google.logging.v2.TailLogEntriesResponse; -import com.google.logging.v2.WriteLogEntriesRequest; -import com.google.logging.v2.WriteLogEntriesResponse; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.Collection; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link LoggingServiceV2Stub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (logging.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of deleteLog to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * LoggingServiceV2StubSettings.Builder loggingSettingsBuilder =
- *     LoggingServiceV2StubSettings.newBuilder();
- * loggingSettingsBuilder
- *     .deleteLogSettings()
- *     .setRetrySettings(
- *         loggingSettingsBuilder
- *             .deleteLogSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * LoggingServiceV2StubSettings loggingSettings = loggingSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class LoggingServiceV2StubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/cloud-platform") - .add("https://www.googleapis.com/auth/cloud-platform.read-only") - .add("https://www.googleapis.com/auth/logging.admin") - .add("https://www.googleapis.com/auth/logging.read") - .add("https://www.googleapis.com/auth/logging.write") - .build(); - - private final UnaryCallSettings deleteLogSettings; - private final BatchingCallSettings - writeLogEntriesSettings; - private final PagedCallSettings< - ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse> - listLogEntriesSettings; - private final PagedCallSettings< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - ListMonitoredResourceDescriptorsPagedResponse> - listMonitoredResourceDescriptorsSettings; - private final PagedCallSettings - listLogsSettings; - private final StreamingCallSettings - tailLogEntriesSettings; - - private static final PagedListDescriptor - LIST_LOG_ENTRIES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListLogEntriesRequest injectToken(ListLogEntriesRequest payload, String token) { - return ListLogEntriesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListLogEntriesRequest injectPageSize( - ListLogEntriesRequest payload, int pageSize) { - return ListLogEntriesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListLogEntriesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListLogEntriesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListLogEntriesResponse payload) { - return payload.getEntriesList() == null - ? ImmutableList.of() - : payload.getEntriesList(); - } - }; - - private static final PagedListDescriptor< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - MonitoredResourceDescriptor> - LIST_MONITORED_RESOURCE_DESCRIPTORS_PAGE_STR_DESC = - new PagedListDescriptor< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - MonitoredResourceDescriptor>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListMonitoredResourceDescriptorsRequest injectToken( - ListMonitoredResourceDescriptorsRequest payload, String token) { - return ListMonitoredResourceDescriptorsRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public ListMonitoredResourceDescriptorsRequest injectPageSize( - ListMonitoredResourceDescriptorsRequest payload, int pageSize) { - return ListMonitoredResourceDescriptorsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(ListMonitoredResourceDescriptorsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListMonitoredResourceDescriptorsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListMonitoredResourceDescriptorsResponse payload) { - return payload.getResourceDescriptorsList() == null - ? ImmutableList.of() - : payload.getResourceDescriptorsList(); - } - }; - - private static final PagedListDescriptor - LIST_LOGS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListLogsRequest injectToken(ListLogsRequest payload, String token) { - return ListLogsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListLogsRequest injectPageSize(ListLogsRequest payload, int pageSize) { - return ListLogsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListLogsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListLogsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListLogsResponse payload) { - return payload.getLogNamesList() == null - ? ImmutableList.of() - : payload.getLogNamesList(); - } - }; - - private static final PagedListResponseFactory< - ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse> - LIST_LOG_ENTRIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListLogEntriesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_LOG_ENTRIES_PAGE_STR_DESC, request, context); - return ListLogEntriesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - ListMonitoredResourceDescriptorsPagedResponse> - LIST_MONITORED_RESOURCE_DESCRIPTORS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - ListMonitoredResourceDescriptorsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse> - callable, - ListMonitoredResourceDescriptorsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - MonitoredResourceDescriptor> - pageContext = - PageContext.create( - callable, - LIST_MONITORED_RESOURCE_DESCRIPTORS_PAGE_STR_DESC, - request, - context); - return ListMonitoredResourceDescriptorsPagedResponse.createAsync( - pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListLogsRequest, ListLogsResponse, ListLogsPagedResponse> - LIST_LOGS_PAGE_STR_FACT = - new PagedListResponseFactory() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListLogsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_LOGS_PAGE_STR_DESC, request, context); - return ListLogsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final BatchingDescriptor - WRITE_LOG_ENTRIES_BATCHING_DESC = - new BatchingDescriptor() { - @Override - public PartitionKey getBatchPartitionKey(WriteLogEntriesRequest request) { - return new PartitionKey( - request.getLogName(), request.getResource(), request.getLabels()); - } - - @Override - public RequestBuilder getRequestBuilder() { - return new RequestBuilder() { - private WriteLogEntriesRequest.Builder builder; - - @Override - public void appendRequest(WriteLogEntriesRequest request) { - if (builder == null) { - builder = request.toBuilder(); - } else { - builder.addAllEntries(request.getEntriesList()); - } - } - - @Override - public WriteLogEntriesRequest build() { - return builder.build(); - } - }; - } - - @Override - public void splitResponse( - WriteLogEntriesResponse batchResponse, - Collection> batch) { - for (BatchedRequestIssuer responder : batch) { - WriteLogEntriesResponse response = WriteLogEntriesResponse.newBuilder().build(); - responder.setResponse(response); - } - } - - @Override - public void splitException( - Throwable throwable, - Collection> batch) { - for (BatchedRequestIssuer responder : batch) { - responder.setException(throwable); - } - } - - @Override - public long countElements(WriteLogEntriesRequest request) { - return request.getEntriesCount(); - } - - @Override - public long countBytes(WriteLogEntriesRequest request) { - return request.getSerializedSize(); - } - }; - - /** Returns the object with the settings used for calls to deleteLog. */ - public UnaryCallSettings deleteLogSettings() { - return deleteLogSettings; - } - - /** Returns the object with the settings used for calls to writeLogEntries. */ - public BatchingCallSettings - writeLogEntriesSettings() { - return writeLogEntriesSettings; - } - - /** Returns the object with the settings used for calls to listLogEntries. */ - public PagedCallSettings< - ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse> - listLogEntriesSettings() { - return listLogEntriesSettings; - } - - /** Returns the object with the settings used for calls to listMonitoredResourceDescriptors. */ - public PagedCallSettings< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - ListMonitoredResourceDescriptorsPagedResponse> - listMonitoredResourceDescriptorsSettings() { - return listMonitoredResourceDescriptorsSettings; - } - - /** Returns the object with the settings used for calls to listLogs. */ - public PagedCallSettings - listLogsSettings() { - return listLogsSettings; - } - - /** Returns the object with the settings used for calls to tailLogEntries. */ - public StreamingCallSettings - tailLogEntriesSettings() { - return tailLogEntriesSettings; - } - - public LoggingServiceV2Stub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcLoggingServiceV2Stub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - - /** Returns the default service name. */ - @Override - public String getServiceName() { - return "logging"; - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "logging.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "logging.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(LoggingServiceV2StubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected LoggingServiceV2StubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - deleteLogSettings = settingsBuilder.deleteLogSettings().build(); - writeLogEntriesSettings = settingsBuilder.writeLogEntriesSettings().build(); - listLogEntriesSettings = settingsBuilder.listLogEntriesSettings().build(); - listMonitoredResourceDescriptorsSettings = - settingsBuilder.listMonitoredResourceDescriptorsSettings().build(); - listLogsSettings = settingsBuilder.listLogsSettings().build(); - tailLogEntriesSettings = settingsBuilder.tailLogEntriesSettings().build(); - } - - /** Builder for LoggingServiceV2StubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder deleteLogSettings; - private final BatchingCallSettings.Builder - writeLogEntriesSettings; - private final PagedCallSettings.Builder< - ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse> - listLogEntriesSettings; - private final PagedCallSettings.Builder< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - ListMonitoredResourceDescriptorsPagedResponse> - listMonitoredResourceDescriptorsSettings; - private final PagedCallSettings.Builder< - ListLogsRequest, ListLogsResponse, ListLogsPagedResponse> - listLogsSettings; - private final StreamingCallSettings.Builder - tailLogEntriesSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_1_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_2_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - StatusCode.Code.UNAVAILABLE))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(3600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(3600000L)) - .setTotalTimeout(Duration.ofMillis(3600000L)) - .build(); - definitions.put("retry_policy_2_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - deleteLogSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - writeLogEntriesSettings = - BatchingCallSettings.newBuilder(WRITE_LOG_ENTRIES_BATCHING_DESC) - .setBatchingSettings(BatchingSettings.newBuilder().build()); - listLogEntriesSettings = PagedCallSettings.newBuilder(LIST_LOG_ENTRIES_PAGE_STR_FACT); - listMonitoredResourceDescriptorsSettings = - PagedCallSettings.newBuilder(LIST_MONITORED_RESOURCE_DESCRIPTORS_PAGE_STR_FACT); - listLogsSettings = PagedCallSettings.newBuilder(LIST_LOGS_PAGE_STR_FACT); - tailLogEntriesSettings = StreamingCallSettings.newBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - deleteLogSettings, - writeLogEntriesSettings, - listLogEntriesSettings, - listMonitoredResourceDescriptorsSettings, - listLogsSettings); - initDefaults(this); - } - - protected Builder(LoggingServiceV2StubSettings settings) { - super(settings); - - deleteLogSettings = settings.deleteLogSettings.toBuilder(); - writeLogEntriesSettings = settings.writeLogEntriesSettings.toBuilder(); - listLogEntriesSettings = settings.listLogEntriesSettings.toBuilder(); - listMonitoredResourceDescriptorsSettings = - settings.listMonitoredResourceDescriptorsSettings.toBuilder(); - listLogsSettings = settings.listLogsSettings.toBuilder(); - tailLogEntriesSettings = settings.tailLogEntriesSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - deleteLogSettings, - writeLogEntriesSettings, - listLogEntriesSettings, - listMonitoredResourceDescriptorsSettings, - listLogsSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .deleteLogSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .writeLogEntriesSettings() - .setBatchingSettings( - BatchingSettings.newBuilder() - .setElementCountThreshold(1000L) - .setRequestByteThreshold(1048576L) - .setDelayThreshold(Duration.ofMillis(50L)) - .setFlowControlSettings( - FlowControlSettings.newBuilder() - .setMaxOutstandingElementCount(100000L) - .setMaxOutstandingRequestBytes(10485760L) - .setLimitExceededBehavior( - FlowController.LimitExceededBehavior.ThrowException) - .build()) - .build()); - - builder - .writeLogEntriesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .listLogEntriesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .listMonitoredResourceDescriptorsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .listLogsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to deleteLog. */ - public UnaryCallSettings.Builder deleteLogSettings() { - return deleteLogSettings; - } - - /** Returns the builder for the settings used for calls to writeLogEntries. */ - public BatchingCallSettings.Builder - writeLogEntriesSettings() { - return writeLogEntriesSettings; - } - - /** Returns the builder for the settings used for calls to listLogEntries. */ - public PagedCallSettings.Builder< - ListLogEntriesRequest, ListLogEntriesResponse, ListLogEntriesPagedResponse> - listLogEntriesSettings() { - return listLogEntriesSettings; - } - - /** Returns the builder for the settings used for calls to listMonitoredResourceDescriptors. */ - public PagedCallSettings.Builder< - ListMonitoredResourceDescriptorsRequest, - ListMonitoredResourceDescriptorsResponse, - ListMonitoredResourceDescriptorsPagedResponse> - listMonitoredResourceDescriptorsSettings() { - return listMonitoredResourceDescriptorsSettings; - } - - /** Returns the builder for the settings used for calls to listLogs. */ - public PagedCallSettings.Builder - listLogsSettings() { - return listLogsSettings; - } - - /** Returns the builder for the settings used for calls to tailLogEntries. */ - public StreamingCallSettings.Builder - tailLogEntriesSettings() { - return tailLogEntriesSettings; - } - - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - - @Override - public LoggingServiceV2StubSettings build() throws IOException { - return new LoggingServiceV2StubSettings(this); - } - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java deleted file mode 100644 index 8cec6cf38..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java +++ /dev/null @@ -1,69 +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.logging.v2.stub; - -import static com.google.cloud.logging.v2.MetricsClient.ListLogMetricsPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.logging.v2.CreateLogMetricRequest; -import com.google.logging.v2.DeleteLogMetricRequest; -import com.google.logging.v2.GetLogMetricRequest; -import com.google.logging.v2.ListLogMetricsRequest; -import com.google.logging.v2.ListLogMetricsResponse; -import com.google.logging.v2.LogMetric; -import com.google.logging.v2.UpdateLogMetricRequest; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the MetricsServiceV2 service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class MetricsServiceV2Stub implements BackgroundResource { - - public UnaryCallable - listLogMetricsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listLogMetricsPagedCallable()"); - } - - public UnaryCallable listLogMetricsCallable() { - throw new UnsupportedOperationException("Not implemented: listLogMetricsCallable()"); - } - - public UnaryCallable getLogMetricCallable() { - throw new UnsupportedOperationException("Not implemented: getLogMetricCallable()"); - } - - public UnaryCallable createLogMetricCallable() { - throw new UnsupportedOperationException("Not implemented: createLogMetricCallable()"); - } - - public UnaryCallable updateLogMetricCallable() { - throw new UnsupportedOperationException("Not implemented: updateLogMetricCallable()"); - } - - public UnaryCallable deleteLogMetricCallable() { - throw new UnsupportedOperationException("Not implemented: deleteLogMetricCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java deleted file mode 100644 index 8b1568809..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java +++ /dev/null @@ -1,488 +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.logging.v2.stub; - -import static com.google.cloud.logging.v2.MetricsClient.ListLogMetricsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.logging.v2.CreateLogMetricRequest; -import com.google.logging.v2.DeleteLogMetricRequest; -import com.google.logging.v2.GetLogMetricRequest; -import com.google.logging.v2.ListLogMetricsRequest; -import com.google.logging.v2.ListLogMetricsResponse; -import com.google.logging.v2.LogMetric; -import com.google.logging.v2.UpdateLogMetricRequest; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link MetricsServiceV2Stub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (logging.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getLogMetric to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * MetricsServiceV2StubSettings.Builder metricsSettingsBuilder =
- *     MetricsServiceV2StubSettings.newBuilder();
- * metricsSettingsBuilder
- *     .getLogMetricSettings()
- *     .setRetrySettings(
- *         metricsSettingsBuilder
- *             .getLogMetricSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * MetricsServiceV2StubSettings metricsSettings = metricsSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class MetricsServiceV2StubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/cloud-platform") - .add("https://www.googleapis.com/auth/cloud-platform.read-only") - .add("https://www.googleapis.com/auth/logging.admin") - .add("https://www.googleapis.com/auth/logging.read") - .add("https://www.googleapis.com/auth/logging.write") - .build(); - - private final PagedCallSettings< - ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse> - listLogMetricsSettings; - private final UnaryCallSettings getLogMetricSettings; - private final UnaryCallSettings createLogMetricSettings; - private final UnaryCallSettings updateLogMetricSettings; - private final UnaryCallSettings deleteLogMetricSettings; - - private static final PagedListDescriptor - LIST_LOG_METRICS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListLogMetricsRequest injectToken(ListLogMetricsRequest payload, String token) { - return ListLogMetricsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListLogMetricsRequest injectPageSize( - ListLogMetricsRequest payload, int pageSize) { - return ListLogMetricsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListLogMetricsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListLogMetricsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListLogMetricsResponse payload) { - return payload.getMetricsList() == null - ? ImmutableList.of() - : payload.getMetricsList(); - } - }; - - private static final PagedListResponseFactory< - ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse> - LIST_LOG_METRICS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListLogMetricsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_LOG_METRICS_PAGE_STR_DESC, request, context); - return ListLogMetricsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to listLogMetrics. */ - public PagedCallSettings< - ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse> - listLogMetricsSettings() { - return listLogMetricsSettings; - } - - /** Returns the object with the settings used for calls to getLogMetric. */ - public UnaryCallSettings getLogMetricSettings() { - return getLogMetricSettings; - } - - /** Returns the object with the settings used for calls to createLogMetric. */ - public UnaryCallSettings createLogMetricSettings() { - return createLogMetricSettings; - } - - /** Returns the object with the settings used for calls to updateLogMetric. */ - public UnaryCallSettings updateLogMetricSettings() { - return updateLogMetricSettings; - } - - /** Returns the object with the settings used for calls to deleteLogMetric. */ - public UnaryCallSettings deleteLogMetricSettings() { - return deleteLogMetricSettings; - } - - public MetricsServiceV2Stub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcMetricsServiceV2Stub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - - /** Returns the default service name. */ - @Override - public String getServiceName() { - return "logging"; - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "logging.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "logging.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(MetricsServiceV2StubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected MetricsServiceV2StubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listLogMetricsSettings = settingsBuilder.listLogMetricsSettings().build(); - getLogMetricSettings = settingsBuilder.getLogMetricSettings().build(); - createLogMetricSettings = settingsBuilder.createLogMetricSettings().build(); - updateLogMetricSettings = settingsBuilder.updateLogMetricSettings().build(); - deleteLogMetricSettings = settingsBuilder.deleteLogMetricSettings().build(); - } - - /** Builder for MetricsServiceV2StubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final PagedCallSettings.Builder< - ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse> - listLogMetricsSettings; - private final UnaryCallSettings.Builder getLogMetricSettings; - private final UnaryCallSettings.Builder - createLogMetricSettings; - private final UnaryCallSettings.Builder - updateLogMetricSettings; - private final UnaryCallSettings.Builder deleteLogMetricSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_5_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, - StatusCode.Code.INTERNAL, - StatusCode.Code.UNAVAILABLE))); - definitions.put( - "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_5_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("no_retry_0_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listLogMetricsSettings = PagedCallSettings.newBuilder(LIST_LOG_METRICS_PAGE_STR_FACT); - getLogMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createLogMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateLogMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteLogMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listLogMetricsSettings, - getLogMetricSettings, - createLogMetricSettings, - updateLogMetricSettings, - deleteLogMetricSettings); - initDefaults(this); - } - - protected Builder(MetricsServiceV2StubSettings settings) { - super(settings); - - listLogMetricsSettings = settings.listLogMetricsSettings.toBuilder(); - getLogMetricSettings = settings.getLogMetricSettings.toBuilder(); - createLogMetricSettings = settings.createLogMetricSettings.toBuilder(); - updateLogMetricSettings = settings.updateLogMetricSettings.toBuilder(); - deleteLogMetricSettings = settings.deleteLogMetricSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listLogMetricsSettings, - getLogMetricSettings, - createLogMetricSettings, - updateLogMetricSettings, - deleteLogMetricSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .listLogMetricsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); - - builder - .getLogMetricSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); - - builder - .createLogMetricSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .updateLogMetricSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); - - builder - .deleteLogMetricSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_5_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_5_params")); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listLogMetrics. */ - public PagedCallSettings.Builder< - ListLogMetricsRequest, ListLogMetricsResponse, ListLogMetricsPagedResponse> - listLogMetricsSettings() { - return listLogMetricsSettings; - } - - /** Returns the builder for the settings used for calls to getLogMetric. */ - public UnaryCallSettings.Builder getLogMetricSettings() { - return getLogMetricSettings; - } - - /** Returns the builder for the settings used for calls to createLogMetric. */ - public UnaryCallSettings.Builder createLogMetricSettings() { - return createLogMetricSettings; - } - - /** Returns the builder for the settings used for calls to updateLogMetric. */ - public UnaryCallSettings.Builder updateLogMetricSettings() { - return updateLogMetricSettings; - } - - /** Returns the builder for the settings used for calls to deleteLogMetric. */ - public UnaryCallSettings.Builder deleteLogMetricSettings() { - return deleteLogMetricSettings; - } - - /** Returns the endpoint set by the user or the the service's default endpoint. */ - @Override - public String getEndpoint() { - if (super.getEndpoint() != null) { - return super.getEndpoint(); - } - return getDefaultEndpoint(); - } - - @Override - public MetricsServiceV2StubSettings build() throws IOException { - return new MetricsServiceV2StubSettings(this); - } - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/main/resources/META-INF/native-image/com.google.cloud.logging.v2/reflect-config.json b/owl-bot-staging/v2/google-cloud-logging/src/main/resources/META-INF/native-image/com.google.cloud.logging.v2/reflect-config.json deleted file mode 100644 index 061630fe2..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/resources/META-INF/native-image/com.google.cloud.logging.v2/reflect-config.json +++ /dev/null @@ -1,3116 +0,0 @@ -[ - { - "name": "com.google.api.ClientLibraryDestination", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibraryOrganization", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibrarySettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ClientLibrarySettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CommonLanguageSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CommonLanguageSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CppSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CppSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CustomHttpPattern", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.CustomHttpPattern$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Distribution", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Distribution$BucketOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Distribution$BucketOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Distribution$BucketOptions$Explicit", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Distribution$BucketOptions$Explicit$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Distribution$BucketOptions$Exponential", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Distribution$BucketOptions$Exponential$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Distribution$BucketOptions$Linear", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Distribution$BucketOptions$Linear$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Distribution$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Distribution$Exemplar", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Distribution$Exemplar$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Distribution$Range", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Distribution$Range$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.DotnetSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.DotnetSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.FieldBehavior", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.GoSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.GoSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Http", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Http$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.HttpRule", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.HttpRule$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.JavaSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.JavaSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.LabelDescriptor", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.LabelDescriptor$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.LabelDescriptor$ValueType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.LaunchStage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$LongRunning", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MethodSettings$LongRunning$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Metric", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Metric$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MetricDescriptor", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MetricDescriptor$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MetricDescriptor$MetricDescriptorMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MetricDescriptor$MetricDescriptorMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MetricDescriptor$MetricKind", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MetricDescriptor$ValueType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MonitoredResource", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MonitoredResource$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MonitoredResourceDescriptor", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MonitoredResourceDescriptor$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MonitoredResourceMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.MonitoredResourceMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.NodeSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.NodeSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PhpSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PhpSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Publishing", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.Publishing$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.PythonSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$History", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceDescriptor$Style", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceReference", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.ResourceReference$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.RubySettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.api.RubySettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.type.HttpRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.type.HttpRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.type.LogSeverity", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.BigQueryDataset", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.BigQueryDataset$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.BigQueryOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.BigQueryOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.BucketMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.BucketMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CmekSettings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CmekSettings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CopyLogEntriesMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CopyLogEntriesMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CopyLogEntriesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CopyLogEntriesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CopyLogEntriesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CopyLogEntriesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CreateBucketRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CreateBucketRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CreateExclusionRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CreateExclusionRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CreateLinkRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CreateLinkRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CreateLogMetricRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CreateLogMetricRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CreateSinkRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CreateSinkRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CreateViewRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.CreateViewRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.DeleteBucketRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.DeleteBucketRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.DeleteExclusionRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.DeleteExclusionRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.DeleteLinkRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.DeleteLinkRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.DeleteLogMetricRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.DeleteLogMetricRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.DeleteLogRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.DeleteLogRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.DeleteSinkRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.DeleteSinkRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.DeleteViewRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.DeleteViewRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetBucketRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetBucketRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetCmekSettingsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetCmekSettingsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetExclusionRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetExclusionRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetLinkRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetLinkRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetLogMetricRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetLogMetricRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetSettingsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetSettingsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetSinkRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetSinkRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetViewRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.GetViewRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.IndexConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.IndexConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.IndexType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LifecycleState", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.Link", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.Link$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LinkMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LinkMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListBucketsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListBucketsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListBucketsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListBucketsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListExclusionsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListExclusionsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListExclusionsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListExclusionsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLinksRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLinksRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLinksResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLinksResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLogEntriesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLogEntriesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLogEntriesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLogEntriesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLogMetricsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLogMetricsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLogMetricsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLogMetricsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLogsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLogsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLogsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListLogsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListMonitoredResourceDescriptorsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListMonitoredResourceDescriptorsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListMonitoredResourceDescriptorsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListMonitoredResourceDescriptorsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListSinksRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListSinksRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListSinksResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListSinksResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListViewsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListViewsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListViewsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.ListViewsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LocationMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LocationMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogBucket", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogBucket$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogEntry", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogEntry$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogEntryOperation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogEntryOperation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogEntrySourceLocation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogEntrySourceLocation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogExclusion", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogExclusion$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogMetric", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogMetric$ApiVersion", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogMetric$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogSink", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogSink$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogSink$VersionFormat", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogSplit", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogSplit$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogView", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.LogView$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.OperationState", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.Settings", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.Settings$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.TailLogEntriesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.TailLogEntriesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.TailLogEntriesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.TailLogEntriesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.TailLogEntriesResponse$SuppressionInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.TailLogEntriesResponse$SuppressionInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.TailLogEntriesResponse$SuppressionInfo$Reason", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UndeleteBucketRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UndeleteBucketRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UpdateBucketRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UpdateBucketRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UpdateCmekSettingsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UpdateCmekSettingsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UpdateExclusionRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UpdateExclusionRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UpdateLogMetricRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UpdateLogMetricRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UpdateSettingsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UpdateSettingsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UpdateSinkRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UpdateSinkRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UpdateViewRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.UpdateViewRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.WriteLogEntriesPartialErrors", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.WriteLogEntriesPartialErrors$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.WriteLogEntriesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.WriteLogEntriesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.WriteLogEntriesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.logging.v2.WriteLogEntriesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.CancelOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.CancelOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.DeleteOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.DeleteOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.GetOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.GetOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.ListOperationsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.Operation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.Operation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.OperationInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.OperationInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.WaitOperationRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.longrunning.WaitOperationRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Any", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Any$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$Edition", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Duration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Duration$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Empty", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Empty$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.FieldMask", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.FieldMask$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.ListValue", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.ListValue$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.NullValue", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Struct", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Struct$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Value", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Value$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - } -] \ No newline at end of file diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java deleted file mode 100644 index 55ab13c6b..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java +++ /dev/null @@ -1,3269 +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.logging.v2; - -import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; -import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.logging.v2.BigQueryDataset; -import com.google.logging.v2.BillingAccountLocationName; -import com.google.logging.v2.BillingAccountName; -import com.google.logging.v2.CmekSettings; -import com.google.logging.v2.CmekSettingsName; -import com.google.logging.v2.CopyLogEntriesRequest; -import com.google.logging.v2.CopyLogEntriesResponse; -import com.google.logging.v2.CreateBucketRequest; -import com.google.logging.v2.CreateExclusionRequest; -import com.google.logging.v2.CreateLinkRequest; -import com.google.logging.v2.CreateSinkRequest; -import com.google.logging.v2.CreateViewRequest; -import com.google.logging.v2.DeleteBucketRequest; -import com.google.logging.v2.DeleteExclusionRequest; -import com.google.logging.v2.DeleteLinkRequest; -import com.google.logging.v2.DeleteSinkRequest; -import com.google.logging.v2.DeleteViewRequest; -import com.google.logging.v2.FolderLocationName; -import com.google.logging.v2.FolderName; -import com.google.logging.v2.GetBucketRequest; -import com.google.logging.v2.GetCmekSettingsRequest; -import com.google.logging.v2.GetExclusionRequest; -import com.google.logging.v2.GetLinkRequest; -import com.google.logging.v2.GetSettingsRequest; -import com.google.logging.v2.GetSinkRequest; -import com.google.logging.v2.GetViewRequest; -import com.google.logging.v2.IndexConfig; -import com.google.logging.v2.LifecycleState; -import com.google.logging.v2.Link; -import com.google.logging.v2.LinkName; -import com.google.logging.v2.ListBucketsRequest; -import com.google.logging.v2.ListBucketsResponse; -import com.google.logging.v2.ListExclusionsRequest; -import com.google.logging.v2.ListExclusionsResponse; -import com.google.logging.v2.ListLinksRequest; -import com.google.logging.v2.ListLinksResponse; -import com.google.logging.v2.ListSinksRequest; -import com.google.logging.v2.ListSinksResponse; -import com.google.logging.v2.ListViewsRequest; -import com.google.logging.v2.ListViewsResponse; -import com.google.logging.v2.LocationName; -import com.google.logging.v2.LogBucket; -import com.google.logging.v2.LogBucketName; -import com.google.logging.v2.LogExclusion; -import com.google.logging.v2.LogExclusionName; -import com.google.logging.v2.LogSink; -import com.google.logging.v2.LogSinkName; -import com.google.logging.v2.LogView; -import com.google.logging.v2.LogViewName; -import com.google.logging.v2.OrganizationLocationName; -import com.google.logging.v2.OrganizationName; -import com.google.logging.v2.ProjectName; -import com.google.logging.v2.Settings; -import com.google.logging.v2.SettingsName; -import com.google.logging.v2.UndeleteBucketRequest; -import com.google.logging.v2.UpdateBucketRequest; -import com.google.logging.v2.UpdateCmekSettingsRequest; -import com.google.logging.v2.UpdateExclusionRequest; -import com.google.logging.v2.UpdateSettingsRequest; -import com.google.logging.v2.UpdateSinkRequest; -import com.google.logging.v2.UpdateViewRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class ConfigClientTest { - private static MockConfigServiceV2 mockConfigServiceV2; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private ConfigClient client; - - @BeforeClass - public static void startStaticServer() { - mockConfigServiceV2 = new MockConfigServiceV2(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockConfigServiceV2)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - ConfigSettings settings = - ConfigSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = ConfigClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void listBucketsTest() throws Exception { - LogBucket responsesElement = LogBucket.newBuilder().build(); - ListBucketsResponse expectedResponse = - ListBucketsResponse.newBuilder() - .setNextPageToken("") - .addAllBuckets(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - BillingAccountLocationName parent = - BillingAccountLocationName.of("[BILLING_ACCOUNT]", "[LOCATION]"); - - ListBucketsPagedResponse pagedListResponse = client.listBuckets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBucketsList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListBucketsRequest actualRequest = ((ListBucketsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listBucketsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - BillingAccountLocationName parent = - BillingAccountLocationName.of("[BILLING_ACCOUNT]", "[LOCATION]"); - client.listBuckets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listBucketsTest2() throws Exception { - LogBucket responsesElement = LogBucket.newBuilder().build(); - ListBucketsResponse expectedResponse = - ListBucketsResponse.newBuilder() - .setNextPageToken("") - .addAllBuckets(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); - - ListBucketsPagedResponse pagedListResponse = client.listBuckets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBucketsList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListBucketsRequest actualRequest = ((ListBucketsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listBucketsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); - client.listBuckets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listBucketsTest3() throws Exception { - LogBucket responsesElement = LogBucket.newBuilder().build(); - ListBucketsResponse expectedResponse = - ListBucketsResponse.newBuilder() - .setNextPageToken("") - .addAllBuckets(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListBucketsPagedResponse pagedListResponse = client.listBuckets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBucketsList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListBucketsRequest actualRequest = ((ListBucketsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listBucketsExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listBuckets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listBucketsTest4() throws Exception { - LogBucket responsesElement = LogBucket.newBuilder().build(); - ListBucketsResponse expectedResponse = - ListBucketsResponse.newBuilder() - .setNextPageToken("") - .addAllBuckets(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); - - ListBucketsPagedResponse pagedListResponse = client.listBuckets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBucketsList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListBucketsRequest actualRequest = ((ListBucketsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listBucketsExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); - client.listBuckets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listBucketsTest5() throws Exception { - LogBucket responsesElement = LogBucket.newBuilder().build(); - ListBucketsResponse expectedResponse = - ListBucketsResponse.newBuilder() - .setNextPageToken("") - .addAllBuckets(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListBucketsPagedResponse pagedListResponse = client.listBuckets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBucketsList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListBucketsRequest actualRequest = ((ListBucketsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listBucketsExceptionTest5() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String parent = "parent-995424086"; - client.listBuckets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getBucketTest() throws Exception { - LogBucket expectedResponse = - LogBucket.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .setDescription("description-1724546052") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setRetentionDays(1544391896) - .setLocked(true) - .setLifecycleState(LifecycleState.forNumber(0)) - .setAnalyticsEnabled(true) - .addAllRestrictedFields(new ArrayList()) - .addAllIndexConfigs(new ArrayList()) - .setCmekSettings(CmekSettings.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - GetBucketRequest request = - GetBucketRequest.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .build(); - - LogBucket actualResponse = client.getBucket(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetBucketRequest actualRequest = ((GetBucketRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getBucketExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - GetBucketRequest request = - GetBucketRequest.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .build(); - client.getBucket(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createBucketAsyncTest() throws Exception { - LogBucket expectedResponse = - LogBucket.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .setDescription("description-1724546052") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setRetentionDays(1544391896) - .setLocked(true) - .setLifecycleState(LifecycleState.forNumber(0)) - .setAnalyticsEnabled(true) - .addAllRestrictedFields(new ArrayList()) - .addAllIndexConfigs(new ArrayList()) - .setCmekSettings(CmekSettings.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createBucketAsyncTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockConfigServiceV2.addResponse(resultOperation); - - CreateBucketRequest request = - CreateBucketRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setBucketId("bucketId-1603305307") - .setBucket(LogBucket.newBuilder().build()) - .build(); - - LogBucket actualResponse = client.createBucketAsyncAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateBucketRequest actualRequest = ((CreateBucketRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getBucketId(), actualRequest.getBucketId()); - Assert.assertEquals(request.getBucket(), actualRequest.getBucket()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createBucketAsyncExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - CreateBucketRequest request = - CreateBucketRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setBucketId("bucketId-1603305307") - .setBucket(LogBucket.newBuilder().build()) - .build(); - client.createBucketAsyncAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void updateBucketAsyncTest() throws Exception { - LogBucket expectedResponse = - LogBucket.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .setDescription("description-1724546052") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setRetentionDays(1544391896) - .setLocked(true) - .setLifecycleState(LifecycleState.forNumber(0)) - .setAnalyticsEnabled(true) - .addAllRestrictedFields(new ArrayList()) - .addAllIndexConfigs(new ArrayList()) - .setCmekSettings(CmekSettings.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateBucketAsyncTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockConfigServiceV2.addResponse(resultOperation); - - UpdateBucketRequest request = - UpdateBucketRequest.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .setBucket(LogBucket.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - - LogBucket actualResponse = client.updateBucketAsyncAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateBucketRequest actualRequest = ((UpdateBucketRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getBucket(), actualRequest.getBucket()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateBucketAsyncExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - UpdateBucketRequest request = - UpdateBucketRequest.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .setBucket(LogBucket.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.updateBucketAsyncAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createBucketTest() throws Exception { - LogBucket expectedResponse = - LogBucket.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .setDescription("description-1724546052") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setRetentionDays(1544391896) - .setLocked(true) - .setLifecycleState(LifecycleState.forNumber(0)) - .setAnalyticsEnabled(true) - .addAllRestrictedFields(new ArrayList()) - .addAllIndexConfigs(new ArrayList()) - .setCmekSettings(CmekSettings.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - CreateBucketRequest request = - CreateBucketRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setBucketId("bucketId-1603305307") - .setBucket(LogBucket.newBuilder().build()) - .build(); - - LogBucket actualResponse = client.createBucket(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateBucketRequest actualRequest = ((CreateBucketRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getBucketId(), actualRequest.getBucketId()); - Assert.assertEquals(request.getBucket(), actualRequest.getBucket()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createBucketExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - CreateBucketRequest request = - CreateBucketRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setBucketId("bucketId-1603305307") - .setBucket(LogBucket.newBuilder().build()) - .build(); - client.createBucket(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateBucketTest() throws Exception { - LogBucket expectedResponse = - LogBucket.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .setDescription("description-1724546052") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setRetentionDays(1544391896) - .setLocked(true) - .setLifecycleState(LifecycleState.forNumber(0)) - .setAnalyticsEnabled(true) - .addAllRestrictedFields(new ArrayList()) - .addAllIndexConfigs(new ArrayList()) - .setCmekSettings(CmekSettings.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - UpdateBucketRequest request = - UpdateBucketRequest.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .setBucket(LogBucket.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - - LogBucket actualResponse = client.updateBucket(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateBucketRequest actualRequest = ((UpdateBucketRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getBucket(), actualRequest.getBucket()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateBucketExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - UpdateBucketRequest request = - UpdateBucketRequest.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .setBucket(LogBucket.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.updateBucket(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteBucketTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockConfigServiceV2.addResponse(expectedResponse); - - DeleteBucketRequest request = - DeleteBucketRequest.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .build(); - - client.deleteBucket(request); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteBucketRequest actualRequest = ((DeleteBucketRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteBucketExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - DeleteBucketRequest request = - DeleteBucketRequest.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .build(); - client.deleteBucket(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void undeleteBucketTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockConfigServiceV2.addResponse(expectedResponse); - - UndeleteBucketRequest request = - UndeleteBucketRequest.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .build(); - - client.undeleteBucket(request); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UndeleteBucketRequest actualRequest = ((UndeleteBucketRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void undeleteBucketExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - UndeleteBucketRequest request = - UndeleteBucketRequest.newBuilder() - .setName( - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") - .toString()) - .build(); - client.undeleteBucket(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listViewsTest() throws Exception { - LogView responsesElement = LogView.newBuilder().build(); - ListViewsResponse expectedResponse = - ListViewsResponse.newBuilder() - .setNextPageToken("") - .addAllViews(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListViewsPagedResponse pagedListResponse = client.listViews(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getViewsList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListViewsRequest actualRequest = ((ListViewsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listViewsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String parent = "parent-995424086"; - client.listViews(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getViewTest() throws Exception { - LogView expectedResponse = - LogView.newBuilder() - .setName( - LogViewName.ofProjectLocationBucketViewName( - "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") - .toString()) - .setDescription("description-1724546052") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setFilter("filter-1274492040") - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - GetViewRequest request = - GetViewRequest.newBuilder() - .setName( - LogViewName.ofProjectLocationBucketViewName( - "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") - .toString()) - .build(); - - LogView actualResponse = client.getView(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetViewRequest actualRequest = ((GetViewRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getViewExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - GetViewRequest request = - GetViewRequest.newBuilder() - .setName( - LogViewName.ofProjectLocationBucketViewName( - "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") - .toString()) - .build(); - client.getView(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createViewTest() throws Exception { - LogView expectedResponse = - LogView.newBuilder() - .setName( - LogViewName.ofProjectLocationBucketViewName( - "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") - .toString()) - .setDescription("description-1724546052") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setFilter("filter-1274492040") - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - CreateViewRequest request = - CreateViewRequest.newBuilder() - .setParent("parent-995424086") - .setViewId("viewId-816632160") - .setView(LogView.newBuilder().build()) - .build(); - - LogView actualResponse = client.createView(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateViewRequest actualRequest = ((CreateViewRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getViewId(), actualRequest.getViewId()); - Assert.assertEquals(request.getView(), actualRequest.getView()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createViewExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - CreateViewRequest request = - CreateViewRequest.newBuilder() - .setParent("parent-995424086") - .setViewId("viewId-816632160") - .setView(LogView.newBuilder().build()) - .build(); - client.createView(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateViewTest() throws Exception { - LogView expectedResponse = - LogView.newBuilder() - .setName( - LogViewName.ofProjectLocationBucketViewName( - "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") - .toString()) - .setDescription("description-1724546052") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setFilter("filter-1274492040") - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - UpdateViewRequest request = - UpdateViewRequest.newBuilder() - .setName("name3373707") - .setView(LogView.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - - LogView actualResponse = client.updateView(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateViewRequest actualRequest = ((UpdateViewRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getView(), actualRequest.getView()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateViewExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - UpdateViewRequest request = - UpdateViewRequest.newBuilder() - .setName("name3373707") - .setView(LogView.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.updateView(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteViewTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockConfigServiceV2.addResponse(expectedResponse); - - DeleteViewRequest request = - DeleteViewRequest.newBuilder() - .setName( - LogViewName.ofProjectLocationBucketViewName( - "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") - .toString()) - .build(); - - client.deleteView(request); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteViewRequest actualRequest = ((DeleteViewRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteViewExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - DeleteViewRequest request = - DeleteViewRequest.newBuilder() - .setName( - LogViewName.ofProjectLocationBucketViewName( - "[PROJECT]", "[LOCATION]", "[BUCKET]", "[VIEW]") - .toString()) - .build(); - client.deleteView(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listSinksTest() throws Exception { - LogSink responsesElement = LogSink.newBuilder().build(); - ListSinksResponse expectedResponse = - ListSinksResponse.newBuilder() - .setNextPageToken("") - .addAllSinks(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); - - ListSinksPagedResponse pagedListResponse = client.listSinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSinksList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListSinksRequest actualRequest = ((ListSinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listSinksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); - client.listSinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listSinksTest2() throws Exception { - LogSink responsesElement = LogSink.newBuilder().build(); - ListSinksResponse expectedResponse = - ListSinksResponse.newBuilder() - .setNextPageToken("") - .addAllSinks(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - FolderName parent = FolderName.of("[FOLDER]"); - - ListSinksPagedResponse pagedListResponse = client.listSinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSinksList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListSinksRequest actualRequest = ((ListSinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listSinksExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - FolderName parent = FolderName.of("[FOLDER]"); - client.listSinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listSinksTest3() throws Exception { - LogSink responsesElement = LogSink.newBuilder().build(); - ListSinksResponse expectedResponse = - ListSinksResponse.newBuilder() - .setNextPageToken("") - .addAllSinks(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); - - ListSinksPagedResponse pagedListResponse = client.listSinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSinksList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListSinksRequest actualRequest = ((ListSinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listSinksExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); - client.listSinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listSinksTest4() throws Exception { - LogSink responsesElement = LogSink.newBuilder().build(); - ListSinksResponse expectedResponse = - ListSinksResponse.newBuilder() - .setNextPageToken("") - .addAllSinks(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - ProjectName parent = ProjectName.of("[PROJECT]"); - - ListSinksPagedResponse pagedListResponse = client.listSinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSinksList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListSinksRequest actualRequest = ((ListSinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listSinksExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - ProjectName parent = ProjectName.of("[PROJECT]"); - client.listSinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listSinksTest5() throws Exception { - LogSink responsesElement = LogSink.newBuilder().build(); - ListSinksResponse expectedResponse = - ListSinksResponse.newBuilder() - .setNextPageToken("") - .addAllSinks(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListSinksPagedResponse pagedListResponse = client.listSinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getSinksList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListSinksRequest actualRequest = ((ListSinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listSinksExceptionTest5() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String parent = "parent-995424086"; - client.listSinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSinkTest() throws Exception { - LogSink expectedResponse = - LogSink.newBuilder() - .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) - .setDestination("destination-1429847026") - .setFilter("filter-1274492040") - .setDescription("description-1724546052") - .setDisabled(true) - .addAllExclusions(new ArrayList()) - .setWriterIdentity("writerIdentity925193809") - .setIncludeChildren(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); - - LogSink actualResponse = client.getSink(sinkName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetSinkRequest actualRequest = ((GetSinkRequest) actualRequests.get(0)); - - Assert.assertEquals(sinkName.toString(), actualRequest.getSinkName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getSinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); - client.getSink(sinkName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSinkTest2() throws Exception { - LogSink expectedResponse = - LogSink.newBuilder() - .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) - .setDestination("destination-1429847026") - .setFilter("filter-1274492040") - .setDescription("description-1724546052") - .setDisabled(true) - .addAllExclusions(new ArrayList()) - .setWriterIdentity("writerIdentity925193809") - .setIncludeChildren(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String sinkName = "sinkName508775358"; - - LogSink actualResponse = client.getSink(sinkName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetSinkRequest actualRequest = ((GetSinkRequest) actualRequests.get(0)); - - Assert.assertEquals(sinkName, actualRequest.getSinkName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getSinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String sinkName = "sinkName508775358"; - client.getSink(sinkName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createSinkTest() throws Exception { - LogSink expectedResponse = - LogSink.newBuilder() - .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) - .setDestination("destination-1429847026") - .setFilter("filter-1274492040") - .setDescription("description-1724546052") - .setDisabled(true) - .addAllExclusions(new ArrayList()) - .setWriterIdentity("writerIdentity925193809") - .setIncludeChildren(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); - LogSink sink = LogSink.newBuilder().build(); - - LogSink actualResponse = client.createSink(parent, sink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateSinkRequest actualRequest = ((CreateSinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(sink, actualRequest.getSink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createSinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); - LogSink sink = LogSink.newBuilder().build(); - client.createSink(parent, sink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createSinkTest2() throws Exception { - LogSink expectedResponse = - LogSink.newBuilder() - .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) - .setDestination("destination-1429847026") - .setFilter("filter-1274492040") - .setDescription("description-1724546052") - .setDisabled(true) - .addAllExclusions(new ArrayList()) - .setWriterIdentity("writerIdentity925193809") - .setIncludeChildren(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - FolderName parent = FolderName.of("[FOLDER]"); - LogSink sink = LogSink.newBuilder().build(); - - LogSink actualResponse = client.createSink(parent, sink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateSinkRequest actualRequest = ((CreateSinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(sink, actualRequest.getSink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createSinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - FolderName parent = FolderName.of("[FOLDER]"); - LogSink sink = LogSink.newBuilder().build(); - client.createSink(parent, sink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createSinkTest3() throws Exception { - LogSink expectedResponse = - LogSink.newBuilder() - .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) - .setDestination("destination-1429847026") - .setFilter("filter-1274492040") - .setDescription("description-1724546052") - .setDisabled(true) - .addAllExclusions(new ArrayList()) - .setWriterIdentity("writerIdentity925193809") - .setIncludeChildren(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); - LogSink sink = LogSink.newBuilder().build(); - - LogSink actualResponse = client.createSink(parent, sink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateSinkRequest actualRequest = ((CreateSinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(sink, actualRequest.getSink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createSinkExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); - LogSink sink = LogSink.newBuilder().build(); - client.createSink(parent, sink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createSinkTest4() throws Exception { - LogSink expectedResponse = - LogSink.newBuilder() - .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) - .setDestination("destination-1429847026") - .setFilter("filter-1274492040") - .setDescription("description-1724546052") - .setDisabled(true) - .addAllExclusions(new ArrayList()) - .setWriterIdentity("writerIdentity925193809") - .setIncludeChildren(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - ProjectName parent = ProjectName.of("[PROJECT]"); - LogSink sink = LogSink.newBuilder().build(); - - LogSink actualResponse = client.createSink(parent, sink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateSinkRequest actualRequest = ((CreateSinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(sink, actualRequest.getSink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createSinkExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - ProjectName parent = ProjectName.of("[PROJECT]"); - LogSink sink = LogSink.newBuilder().build(); - client.createSink(parent, sink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createSinkTest5() throws Exception { - LogSink expectedResponse = - LogSink.newBuilder() - .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) - .setDestination("destination-1429847026") - .setFilter("filter-1274492040") - .setDescription("description-1724546052") - .setDisabled(true) - .addAllExclusions(new ArrayList()) - .setWriterIdentity("writerIdentity925193809") - .setIncludeChildren(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String parent = "parent-995424086"; - LogSink sink = LogSink.newBuilder().build(); - - LogSink actualResponse = client.createSink(parent, sink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateSinkRequest actualRequest = ((CreateSinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(sink, actualRequest.getSink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createSinkExceptionTest5() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String parent = "parent-995424086"; - LogSink sink = LogSink.newBuilder().build(); - client.createSink(parent, sink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateSinkTest() throws Exception { - LogSink expectedResponse = - LogSink.newBuilder() - .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) - .setDestination("destination-1429847026") - .setFilter("filter-1274492040") - .setDescription("description-1724546052") - .setDisabled(true) - .addAllExclusions(new ArrayList()) - .setWriterIdentity("writerIdentity925193809") - .setIncludeChildren(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); - LogSink sink = LogSink.newBuilder().build(); - - LogSink actualResponse = client.updateSink(sinkName, sink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateSinkRequest actualRequest = ((UpdateSinkRequest) actualRequests.get(0)); - - Assert.assertEquals(sinkName.toString(), actualRequest.getSinkName()); - Assert.assertEquals(sink, actualRequest.getSink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateSinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); - LogSink sink = LogSink.newBuilder().build(); - client.updateSink(sinkName, sink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateSinkTest2() throws Exception { - LogSink expectedResponse = - LogSink.newBuilder() - .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) - .setDestination("destination-1429847026") - .setFilter("filter-1274492040") - .setDescription("description-1724546052") - .setDisabled(true) - .addAllExclusions(new ArrayList()) - .setWriterIdentity("writerIdentity925193809") - .setIncludeChildren(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String sinkName = "sinkName508775358"; - LogSink sink = LogSink.newBuilder().build(); - - LogSink actualResponse = client.updateSink(sinkName, sink); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateSinkRequest actualRequest = ((UpdateSinkRequest) actualRequests.get(0)); - - Assert.assertEquals(sinkName, actualRequest.getSinkName()); - Assert.assertEquals(sink, actualRequest.getSink()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateSinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String sinkName = "sinkName508775358"; - LogSink sink = LogSink.newBuilder().build(); - client.updateSink(sinkName, sink); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateSinkTest3() throws Exception { - LogSink expectedResponse = - LogSink.newBuilder() - .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) - .setDestination("destination-1429847026") - .setFilter("filter-1274492040") - .setDescription("description-1724546052") - .setDisabled(true) - .addAllExclusions(new ArrayList()) - .setWriterIdentity("writerIdentity925193809") - .setIncludeChildren(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); - LogSink sink = LogSink.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - LogSink actualResponse = client.updateSink(sinkName, sink, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateSinkRequest actualRequest = ((UpdateSinkRequest) actualRequests.get(0)); - - Assert.assertEquals(sinkName.toString(), actualRequest.getSinkName()); - Assert.assertEquals(sink, actualRequest.getSink()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateSinkExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); - LogSink sink = LogSink.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateSink(sinkName, sink, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateSinkTest4() throws Exception { - LogSink expectedResponse = - LogSink.newBuilder() - .setName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) - .setDestination("destination-1429847026") - .setFilter("filter-1274492040") - .setDescription("description-1724546052") - .setDisabled(true) - .addAllExclusions(new ArrayList()) - .setWriterIdentity("writerIdentity925193809") - .setIncludeChildren(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String sinkName = "sinkName508775358"; - LogSink sink = LogSink.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - LogSink actualResponse = client.updateSink(sinkName, sink, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateSinkRequest actualRequest = ((UpdateSinkRequest) actualRequests.get(0)); - - Assert.assertEquals(sinkName, actualRequest.getSinkName()); - Assert.assertEquals(sink, actualRequest.getSink()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateSinkExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String sinkName = "sinkName508775358"; - LogSink sink = LogSink.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateSink(sinkName, sink, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteSinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockConfigServiceV2.addResponse(expectedResponse); - - LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); - - client.deleteSink(sinkName); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteSinkRequest actualRequest = ((DeleteSinkRequest) actualRequests.get(0)); - - Assert.assertEquals(sinkName.toString(), actualRequest.getSinkName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteSinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); - client.deleteSink(sinkName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteSinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String sinkName = "sinkName508775358"; - - client.deleteSink(sinkName); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteSinkRequest actualRequest = ((DeleteSinkRequest) actualRequests.get(0)); - - Assert.assertEquals(sinkName, actualRequest.getSinkName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteSinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String sinkName = "sinkName508775358"; - client.deleteSink(sinkName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createLinkTest() throws Exception { - Link expectedResponse = - Link.newBuilder() - .setName( - LinkName.ofProjectLocationBucketLinkName( - "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") - .toString()) - .setDescription("description-1724546052") - .setCreateTime(Timestamp.newBuilder().build()) - .setLifecycleState(LifecycleState.forNumber(0)) - .setBigqueryDataset(BigQueryDataset.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createLinkTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockConfigServiceV2.addResponse(resultOperation); - - LogBucketName parent = - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]"); - Link link = Link.newBuilder().build(); - String linkId = "linkId-1102667083"; - - Link actualResponse = client.createLinkAsync(parent, link, linkId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateLinkRequest actualRequest = ((CreateLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(link, actualRequest.getLink()); - Assert.assertEquals(linkId, actualRequest.getLinkId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - LogBucketName parent = - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]"); - Link link = Link.newBuilder().build(); - String linkId = "linkId-1102667083"; - client.createLinkAsync(parent, link, linkId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createLinkTest2() throws Exception { - Link expectedResponse = - Link.newBuilder() - .setName( - LinkName.ofProjectLocationBucketLinkName( - "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") - .toString()) - .setDescription("description-1724546052") - .setCreateTime(Timestamp.newBuilder().build()) - .setLifecycleState(LifecycleState.forNumber(0)) - .setBigqueryDataset(BigQueryDataset.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createLinkTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockConfigServiceV2.addResponse(resultOperation); - - String parent = "parent-995424086"; - Link link = Link.newBuilder().build(); - String linkId = "linkId-1102667083"; - - Link actualResponse = client.createLinkAsync(parent, link, linkId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateLinkRequest actualRequest = ((CreateLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(link, actualRequest.getLink()); - Assert.assertEquals(linkId, actualRequest.getLinkId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String parent = "parent-995424086"; - Link link = Link.newBuilder().build(); - String linkId = "linkId-1102667083"; - client.createLinkAsync(parent, link, linkId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteLinkTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteLinkTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockConfigServiceV2.addResponse(resultOperation); - - LinkName name = - LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"); - - client.deleteLinkAsync(name).get(); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteLinkRequest actualRequest = ((DeleteLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - LinkName name = - LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"); - client.deleteLinkAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteLinkTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteLinkTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockConfigServiceV2.addResponse(resultOperation); - - String name = "name3373707"; - - client.deleteLinkAsync(name).get(); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteLinkRequest actualRequest = ((DeleteLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String name = "name3373707"; - client.deleteLinkAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void listLinksTest() throws Exception { - Link responsesElement = Link.newBuilder().build(); - ListLinksResponse expectedResponse = - ListLinksResponse.newBuilder() - .setNextPageToken("") - .addAllLinks(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - LogBucketName parent = - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]"); - - ListLinksPagedResponse pagedListResponse = client.listLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLinksList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListLinksRequest actualRequest = ((ListLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listLinksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - LogBucketName parent = - LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]"); - client.listLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listLinksTest2() throws Exception { - Link responsesElement = Link.newBuilder().build(); - ListLinksResponse expectedResponse = - ListLinksResponse.newBuilder() - .setNextPageToken("") - .addAllLinks(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListLinksPagedResponse pagedListResponse = client.listLinks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLinksList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListLinksRequest actualRequest = ((ListLinksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listLinksExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String parent = "parent-995424086"; - client.listLinks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getLinkTest() throws Exception { - Link expectedResponse = - Link.newBuilder() - .setName( - LinkName.ofProjectLocationBucketLinkName( - "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") - .toString()) - .setDescription("description-1724546052") - .setCreateTime(Timestamp.newBuilder().build()) - .setLifecycleState(LifecycleState.forNumber(0)) - .setBigqueryDataset(BigQueryDataset.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - LinkName name = - LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"); - - Link actualResponse = client.getLink(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetLinkRequest actualRequest = ((GetLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - LinkName name = - LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"); - client.getLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getLinkTest2() throws Exception { - Link expectedResponse = - Link.newBuilder() - .setName( - LinkName.ofProjectLocationBucketLinkName( - "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") - .toString()) - .setDescription("description-1724546052") - .setCreateTime(Timestamp.newBuilder().build()) - .setLifecycleState(LifecycleState.forNumber(0)) - .setBigqueryDataset(BigQueryDataset.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String name = "name3373707"; - - Link actualResponse = client.getLink(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetLinkRequest actualRequest = ((GetLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getLinkExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String name = "name3373707"; - client.getLink(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listExclusionsTest() throws Exception { - LogExclusion responsesElement = LogExclusion.newBuilder().build(); - ListExclusionsResponse expectedResponse = - ListExclusionsResponse.newBuilder() - .setNextPageToken("") - .addAllExclusions(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); - - ListExclusionsPagedResponse pagedListResponse = client.listExclusions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getExclusionsList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListExclusionsRequest actualRequest = ((ListExclusionsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listExclusionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); - client.listExclusions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listExclusionsTest2() throws Exception { - LogExclusion responsesElement = LogExclusion.newBuilder().build(); - ListExclusionsResponse expectedResponse = - ListExclusionsResponse.newBuilder() - .setNextPageToken("") - .addAllExclusions(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - FolderName parent = FolderName.of("[FOLDER]"); - - ListExclusionsPagedResponse pagedListResponse = client.listExclusions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getExclusionsList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListExclusionsRequest actualRequest = ((ListExclusionsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listExclusionsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - FolderName parent = FolderName.of("[FOLDER]"); - client.listExclusions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listExclusionsTest3() throws Exception { - LogExclusion responsesElement = LogExclusion.newBuilder().build(); - ListExclusionsResponse expectedResponse = - ListExclusionsResponse.newBuilder() - .setNextPageToken("") - .addAllExclusions(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); - - ListExclusionsPagedResponse pagedListResponse = client.listExclusions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getExclusionsList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListExclusionsRequest actualRequest = ((ListExclusionsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listExclusionsExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); - client.listExclusions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listExclusionsTest4() throws Exception { - LogExclusion responsesElement = LogExclusion.newBuilder().build(); - ListExclusionsResponse expectedResponse = - ListExclusionsResponse.newBuilder() - .setNextPageToken("") - .addAllExclusions(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - ProjectName parent = ProjectName.of("[PROJECT]"); - - ListExclusionsPagedResponse pagedListResponse = client.listExclusions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getExclusionsList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListExclusionsRequest actualRequest = ((ListExclusionsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listExclusionsExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - ProjectName parent = ProjectName.of("[PROJECT]"); - client.listExclusions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listExclusionsTest5() throws Exception { - LogExclusion responsesElement = LogExclusion.newBuilder().build(); - ListExclusionsResponse expectedResponse = - ListExclusionsResponse.newBuilder() - .setNextPageToken("") - .addAllExclusions(Arrays.asList(responsesElement)) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListExclusionsPagedResponse pagedListResponse = client.listExclusions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getExclusionsList().get(0), resources.get(0)); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListExclusionsRequest actualRequest = ((ListExclusionsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listExclusionsExceptionTest5() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String parent = "parent-995424086"; - client.listExclusions(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getExclusionTest() throws Exception { - LogExclusion expectedResponse = - LogExclusion.newBuilder() - .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setDisabled(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); - - LogExclusion actualResponse = client.getExclusion(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetExclusionRequest actualRequest = ((GetExclusionRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getExclusionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); - client.getExclusion(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getExclusionTest2() throws Exception { - LogExclusion expectedResponse = - LogExclusion.newBuilder() - .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setDisabled(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String name = "name3373707"; - - LogExclusion actualResponse = client.getExclusion(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetExclusionRequest actualRequest = ((GetExclusionRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getExclusionExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String name = "name3373707"; - client.getExclusion(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createExclusionTest() throws Exception { - LogExclusion expectedResponse = - LogExclusion.newBuilder() - .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setDisabled(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); - LogExclusion exclusion = LogExclusion.newBuilder().build(); - - LogExclusion actualResponse = client.createExclusion(parent, exclusion); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateExclusionRequest actualRequest = ((CreateExclusionRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(exclusion, actualRequest.getExclusion()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createExclusionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); - LogExclusion exclusion = LogExclusion.newBuilder().build(); - client.createExclusion(parent, exclusion); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createExclusionTest2() throws Exception { - LogExclusion expectedResponse = - LogExclusion.newBuilder() - .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setDisabled(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - FolderName parent = FolderName.of("[FOLDER]"); - LogExclusion exclusion = LogExclusion.newBuilder().build(); - - LogExclusion actualResponse = client.createExclusion(parent, exclusion); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateExclusionRequest actualRequest = ((CreateExclusionRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(exclusion, actualRequest.getExclusion()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createExclusionExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - FolderName parent = FolderName.of("[FOLDER]"); - LogExclusion exclusion = LogExclusion.newBuilder().build(); - client.createExclusion(parent, exclusion); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createExclusionTest3() throws Exception { - LogExclusion expectedResponse = - LogExclusion.newBuilder() - .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setDisabled(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); - LogExclusion exclusion = LogExclusion.newBuilder().build(); - - LogExclusion actualResponse = client.createExclusion(parent, exclusion); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateExclusionRequest actualRequest = ((CreateExclusionRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(exclusion, actualRequest.getExclusion()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createExclusionExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); - LogExclusion exclusion = LogExclusion.newBuilder().build(); - client.createExclusion(parent, exclusion); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createExclusionTest4() throws Exception { - LogExclusion expectedResponse = - LogExclusion.newBuilder() - .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setDisabled(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - ProjectName parent = ProjectName.of("[PROJECT]"); - LogExclusion exclusion = LogExclusion.newBuilder().build(); - - LogExclusion actualResponse = client.createExclusion(parent, exclusion); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateExclusionRequest actualRequest = ((CreateExclusionRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(exclusion, actualRequest.getExclusion()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createExclusionExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - ProjectName parent = ProjectName.of("[PROJECT]"); - LogExclusion exclusion = LogExclusion.newBuilder().build(); - client.createExclusion(parent, exclusion); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createExclusionTest5() throws Exception { - LogExclusion expectedResponse = - LogExclusion.newBuilder() - .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setDisabled(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String parent = "parent-995424086"; - LogExclusion exclusion = LogExclusion.newBuilder().build(); - - LogExclusion actualResponse = client.createExclusion(parent, exclusion); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateExclusionRequest actualRequest = ((CreateExclusionRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(exclusion, actualRequest.getExclusion()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createExclusionExceptionTest5() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String parent = "parent-995424086"; - LogExclusion exclusion = LogExclusion.newBuilder().build(); - client.createExclusion(parent, exclusion); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateExclusionTest() throws Exception { - LogExclusion expectedResponse = - LogExclusion.newBuilder() - .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setDisabled(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); - LogExclusion exclusion = LogExclusion.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - LogExclusion actualResponse = client.updateExclusion(name, exclusion, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateExclusionRequest actualRequest = ((UpdateExclusionRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(exclusion, actualRequest.getExclusion()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateExclusionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); - LogExclusion exclusion = LogExclusion.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateExclusion(name, exclusion, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateExclusionTest2() throws Exception { - LogExclusion expectedResponse = - LogExclusion.newBuilder() - .setName(LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setDisabled(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String name = "name3373707"; - LogExclusion exclusion = LogExclusion.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - LogExclusion actualResponse = client.updateExclusion(name, exclusion, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateExclusionRequest actualRequest = ((UpdateExclusionRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(exclusion, actualRequest.getExclusion()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateExclusionExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String name = "name3373707"; - LogExclusion exclusion = LogExclusion.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateExclusion(name, exclusion, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteExclusionTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockConfigServiceV2.addResponse(expectedResponse); - - LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); - - client.deleteExclusion(name); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteExclusionRequest actualRequest = ((DeleteExclusionRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteExclusionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - LogExclusionName name = LogExclusionName.ofProjectExclusionName("[PROJECT]", "[EXCLUSION]"); - client.deleteExclusion(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteExclusionTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteExclusion(name); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteExclusionRequest actualRequest = ((DeleteExclusionRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteExclusionExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String name = "name3373707"; - client.deleteExclusion(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getCmekSettingsTest() throws Exception { - CmekSettings expectedResponse = - CmekSettings.newBuilder() - .setName(CmekSettingsName.ofProjectName("[PROJECT]").toString()) - .setKmsKeyName("kmsKeyName412586233") - .setKmsKeyVersionName("kmsKeyVersionName-1798811307") - .setServiceAccountId("serviceAccountId1964232947") - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - GetCmekSettingsRequest request = - GetCmekSettingsRequest.newBuilder() - .setName(CmekSettingsName.ofProjectName("[PROJECT]").toString()) - .build(); - - CmekSettings actualResponse = client.getCmekSettings(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetCmekSettingsRequest actualRequest = ((GetCmekSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getCmekSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - GetCmekSettingsRequest request = - GetCmekSettingsRequest.newBuilder() - .setName(CmekSettingsName.ofProjectName("[PROJECT]").toString()) - .build(); - client.getCmekSettings(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateCmekSettingsTest() throws Exception { - CmekSettings expectedResponse = - CmekSettings.newBuilder() - .setName(CmekSettingsName.ofProjectName("[PROJECT]").toString()) - .setKmsKeyName("kmsKeyName412586233") - .setKmsKeyVersionName("kmsKeyVersionName-1798811307") - .setServiceAccountId("serviceAccountId1964232947") - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - UpdateCmekSettingsRequest request = - UpdateCmekSettingsRequest.newBuilder() - .setName("name3373707") - .setCmekSettings(CmekSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - - CmekSettings actualResponse = client.updateCmekSettings(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateCmekSettingsRequest actualRequest = ((UpdateCmekSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getCmekSettings(), actualRequest.getCmekSettings()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateCmekSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - UpdateCmekSettingsRequest request = - UpdateCmekSettingsRequest.newBuilder() - .setName("name3373707") - .setCmekSettings(CmekSettings.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.updateCmekSettings(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSettingsTest() throws Exception { - Settings expectedResponse = - Settings.newBuilder() - .setName(SettingsName.ofProjectName("[PROJECT]").toString()) - .setKmsKeyName("kmsKeyName412586233") - .setKmsServiceAccountId("kmsServiceAccountId662368868") - .setStorageLocation("storageLocation911842128") - .setDisableDefaultSink(true) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - SettingsName name = SettingsName.ofProjectName("[PROJECT]"); - - Settings actualResponse = client.getSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetSettingsRequest actualRequest = ((GetSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - SettingsName name = SettingsName.ofProjectName("[PROJECT]"); - client.getSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getSettingsTest2() throws Exception { - Settings expectedResponse = - Settings.newBuilder() - .setName(SettingsName.ofProjectName("[PROJECT]").toString()) - .setKmsKeyName("kmsKeyName412586233") - .setKmsServiceAccountId("kmsServiceAccountId662368868") - .setStorageLocation("storageLocation911842128") - .setDisableDefaultSink(true) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - String name = "name3373707"; - - Settings actualResponse = client.getSettings(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetSettingsRequest actualRequest = ((GetSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getSettingsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - String name = "name3373707"; - client.getSettings(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateSettingsTest() throws Exception { - Settings expectedResponse = - Settings.newBuilder() - .setName(SettingsName.ofProjectName("[PROJECT]").toString()) - .setKmsKeyName("kmsKeyName412586233") - .setKmsServiceAccountId("kmsServiceAccountId662368868") - .setStorageLocation("storageLocation911842128") - .setDisableDefaultSink(true) - .build(); - mockConfigServiceV2.addResponse(expectedResponse); - - Settings settings = Settings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Settings actualResponse = client.updateSettings(settings, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateSettingsRequest actualRequest = ((UpdateSettingsRequest) actualRequests.get(0)); - - Assert.assertEquals(settings, actualRequest.getSettings()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateSettingsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - Settings settings = Settings.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateSettings(settings, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void copyLogEntriesTest() throws Exception { - CopyLogEntriesResponse expectedResponse = - CopyLogEntriesResponse.newBuilder().setLogEntriesCopiedCount(-2134326978).build(); - Operation resultOperation = - Operation.newBuilder() - .setName("copyLogEntriesTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockConfigServiceV2.addResponse(resultOperation); - - CopyLogEntriesRequest request = - CopyLogEntriesRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setDestination("destination-1429847026") - .build(); - - CopyLogEntriesResponse actualResponse = client.copyLogEntriesAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockConfigServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CopyLogEntriesRequest actualRequest = ((CopyLogEntriesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); - Assert.assertEquals(request.getDestination(), actualRequest.getDestination()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void copyLogEntriesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockConfigServiceV2.addException(exception); - - try { - CopyLogEntriesRequest request = - CopyLogEntriesRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setDestination("destination-1429847026") - .build(); - client.copyLogEntriesAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java deleted file mode 100644 index 02dc0e329..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java +++ /dev/null @@ -1,656 +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.logging.v2; - -import static com.google.cloud.logging.v2.LoggingClient.ListLogEntriesPagedResponse; -import static com.google.cloud.logging.v2.LoggingClient.ListLogsPagedResponse; -import static com.google.cloud.logging.v2.LoggingClient.ListMonitoredResourceDescriptorsPagedResponse; - -import com.google.api.MonitoredResource; -import com.google.api.MonitoredResourceDescriptor; -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.grpc.testing.MockStreamObserver; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiStreamObserver; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.common.collect.Lists; -import com.google.logging.v2.BillingAccountName; -import com.google.logging.v2.DeleteLogRequest; -import com.google.logging.v2.FolderName; -import com.google.logging.v2.ListLogEntriesRequest; -import com.google.logging.v2.ListLogEntriesResponse; -import com.google.logging.v2.ListLogsRequest; -import com.google.logging.v2.ListLogsResponse; -import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; -import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; -import com.google.logging.v2.LogEntry; -import com.google.logging.v2.LogName; -import com.google.logging.v2.OrganizationName; -import com.google.logging.v2.ProjectName; -import com.google.logging.v2.TailLogEntriesRequest; -import com.google.logging.v2.TailLogEntriesResponse; -import com.google.logging.v2.WriteLogEntriesRequest; -import com.google.logging.v2.WriteLogEntriesResponse; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Duration; -import com.google.protobuf.Empty; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class LoggingClientTest { - private static MockLoggingServiceV2 mockLoggingServiceV2; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private LoggingClient client; - - @BeforeClass - public static void startStaticServer() { - mockLoggingServiceV2 = new MockLoggingServiceV2(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockLoggingServiceV2)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - LoggingSettings settings = - LoggingSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = LoggingClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void deleteLogTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockLoggingServiceV2.addResponse(expectedResponse); - - LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]"); - - client.deleteLog(logName); - - List actualRequests = mockLoggingServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteLogRequest actualRequest = ((DeleteLogRequest) actualRequests.get(0)); - - Assert.assertEquals(logName.toString(), actualRequest.getLogName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteLogExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLoggingServiceV2.addException(exception); - - try { - LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]"); - client.deleteLog(logName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteLogTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockLoggingServiceV2.addResponse(expectedResponse); - - String logName = "logName341528559"; - - client.deleteLog(logName); - - List actualRequests = mockLoggingServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteLogRequest actualRequest = ((DeleteLogRequest) actualRequests.get(0)); - - Assert.assertEquals(logName, actualRequest.getLogName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteLogExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLoggingServiceV2.addException(exception); - - try { - String logName = "logName341528559"; - client.deleteLog(logName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void writeLogEntriesTest() throws Exception { - WriteLogEntriesResponse expectedResponse = WriteLogEntriesResponse.newBuilder().build(); - mockLoggingServiceV2.addResponse(expectedResponse); - - LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]"); - MonitoredResource resource = MonitoredResource.newBuilder().build(); - Map labels = new HashMap<>(); - List entries = new ArrayList<>(); - - WriteLogEntriesResponse actualResponse = - client.writeLogEntries(logName, resource, labels, entries); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockLoggingServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - WriteLogEntriesRequest actualRequest = ((WriteLogEntriesRequest) actualRequests.get(0)); - - Assert.assertEquals(logName.toString(), actualRequest.getLogName()); - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertEquals(labels, actualRequest.getLabelsMap()); - Assert.assertEquals(entries, actualRequest.getEntriesList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void writeLogEntriesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLoggingServiceV2.addException(exception); - - try { - LogName logName = LogName.ofProjectLogName("[PROJECT]", "[LOG]"); - MonitoredResource resource = MonitoredResource.newBuilder().build(); - Map labels = new HashMap<>(); - List entries = new ArrayList<>(); - client.writeLogEntries(logName, resource, labels, entries); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void writeLogEntriesTest2() throws Exception { - WriteLogEntriesResponse expectedResponse = WriteLogEntriesResponse.newBuilder().build(); - mockLoggingServiceV2.addResponse(expectedResponse); - - String logName = "logName341528559"; - MonitoredResource resource = MonitoredResource.newBuilder().build(); - Map labels = new HashMap<>(); - List entries = new ArrayList<>(); - - WriteLogEntriesResponse actualResponse = - client.writeLogEntries(logName, resource, labels, entries); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockLoggingServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - WriteLogEntriesRequest actualRequest = ((WriteLogEntriesRequest) actualRequests.get(0)); - - Assert.assertEquals(logName, actualRequest.getLogName()); - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertEquals(labels, actualRequest.getLabelsMap()); - Assert.assertEquals(entries, actualRequest.getEntriesList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void writeLogEntriesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLoggingServiceV2.addException(exception); - - try { - String logName = "logName341528559"; - MonitoredResource resource = MonitoredResource.newBuilder().build(); - Map labels = new HashMap<>(); - List entries = new ArrayList<>(); - client.writeLogEntries(logName, resource, labels, entries); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listLogEntriesTest() throws Exception { - LogEntry responsesElement = LogEntry.newBuilder().build(); - ListLogEntriesResponse expectedResponse = - ListLogEntriesResponse.newBuilder() - .setNextPageToken("") - .addAllEntries(Arrays.asList(responsesElement)) - .build(); - mockLoggingServiceV2.addResponse(expectedResponse); - - List resourceNames = new ArrayList<>(); - String filter = "filter-1274492040"; - String orderBy = "orderBy-1207110587"; - - ListLogEntriesPagedResponse pagedListResponse = - client.listLogEntries(resourceNames, filter, orderBy); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); - - List actualRequests = mockLoggingServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListLogEntriesRequest actualRequest = ((ListLogEntriesRequest) actualRequests.get(0)); - - Assert.assertEquals(resourceNames, actualRequest.getResourceNamesList()); - Assert.assertEquals(filter, actualRequest.getFilter()); - Assert.assertEquals(orderBy, actualRequest.getOrderBy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listLogEntriesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLoggingServiceV2.addException(exception); - - try { - List resourceNames = new ArrayList<>(); - String filter = "filter-1274492040"; - String orderBy = "orderBy-1207110587"; - client.listLogEntries(resourceNames, filter, orderBy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listMonitoredResourceDescriptorsTest() throws Exception { - MonitoredResourceDescriptor responsesElement = MonitoredResourceDescriptor.newBuilder().build(); - ListMonitoredResourceDescriptorsResponse expectedResponse = - ListMonitoredResourceDescriptorsResponse.newBuilder() - .setNextPageToken("") - .addAllResourceDescriptors(Arrays.asList(responsesElement)) - .build(); - mockLoggingServiceV2.addResponse(expectedResponse); - - ListMonitoredResourceDescriptorsRequest request = - ListMonitoredResourceDescriptorsRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListMonitoredResourceDescriptorsPagedResponse pagedListResponse = - client.listMonitoredResourceDescriptors(request); - - List resources = - Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getResourceDescriptorsList().get(0), resources.get(0)); - - List actualRequests = mockLoggingServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListMonitoredResourceDescriptorsRequest actualRequest = - ((ListMonitoredResourceDescriptorsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listMonitoredResourceDescriptorsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLoggingServiceV2.addException(exception); - - try { - ListMonitoredResourceDescriptorsRequest request = - ListMonitoredResourceDescriptorsRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listMonitoredResourceDescriptors(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listLogsTest() throws Exception { - String responsesElement = "responsesElement-318365110"; - ListLogsResponse expectedResponse = - ListLogsResponse.newBuilder() - .setNextPageToken("") - .addAllLogNames(Arrays.asList(responsesElement)) - .build(); - mockLoggingServiceV2.addResponse(expectedResponse); - - BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); - - ListLogsPagedResponse pagedListResponse = client.listLogs(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLogNamesList().get(0), resources.get(0)); - - List actualRequests = mockLoggingServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListLogsRequest actualRequest = ((ListLogsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listLogsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLoggingServiceV2.addException(exception); - - try { - BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]"); - client.listLogs(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listLogsTest2() throws Exception { - String responsesElement = "responsesElement-318365110"; - ListLogsResponse expectedResponse = - ListLogsResponse.newBuilder() - .setNextPageToken("") - .addAllLogNames(Arrays.asList(responsesElement)) - .build(); - mockLoggingServiceV2.addResponse(expectedResponse); - - FolderName parent = FolderName.of("[FOLDER]"); - - ListLogsPagedResponse pagedListResponse = client.listLogs(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLogNamesList().get(0), resources.get(0)); - - List actualRequests = mockLoggingServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListLogsRequest actualRequest = ((ListLogsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listLogsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLoggingServiceV2.addException(exception); - - try { - FolderName parent = FolderName.of("[FOLDER]"); - client.listLogs(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listLogsTest3() throws Exception { - String responsesElement = "responsesElement-318365110"; - ListLogsResponse expectedResponse = - ListLogsResponse.newBuilder() - .setNextPageToken("") - .addAllLogNames(Arrays.asList(responsesElement)) - .build(); - mockLoggingServiceV2.addResponse(expectedResponse); - - OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); - - ListLogsPagedResponse pagedListResponse = client.listLogs(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLogNamesList().get(0), resources.get(0)); - - List actualRequests = mockLoggingServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListLogsRequest actualRequest = ((ListLogsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listLogsExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLoggingServiceV2.addException(exception); - - try { - OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); - client.listLogs(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listLogsTest4() throws Exception { - String responsesElement = "responsesElement-318365110"; - ListLogsResponse expectedResponse = - ListLogsResponse.newBuilder() - .setNextPageToken("") - .addAllLogNames(Arrays.asList(responsesElement)) - .build(); - mockLoggingServiceV2.addResponse(expectedResponse); - - ProjectName parent = ProjectName.of("[PROJECT]"); - - ListLogsPagedResponse pagedListResponse = client.listLogs(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLogNamesList().get(0), resources.get(0)); - - List actualRequests = mockLoggingServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListLogsRequest actualRequest = ((ListLogsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listLogsExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLoggingServiceV2.addException(exception); - - try { - ProjectName parent = ProjectName.of("[PROJECT]"); - client.listLogs(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listLogsTest5() throws Exception { - String responsesElement = "responsesElement-318365110"; - ListLogsResponse expectedResponse = - ListLogsResponse.newBuilder() - .setNextPageToken("") - .addAllLogNames(Arrays.asList(responsesElement)) - .build(); - mockLoggingServiceV2.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListLogsPagedResponse pagedListResponse = client.listLogs(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLogNamesList().get(0), resources.get(0)); - - List actualRequests = mockLoggingServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListLogsRequest actualRequest = ((ListLogsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listLogsExceptionTest5() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLoggingServiceV2.addException(exception); - - try { - String parent = "parent-995424086"; - client.listLogs(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void tailLogEntriesTest() throws Exception { - TailLogEntriesResponse expectedResponse = - TailLogEntriesResponse.newBuilder() - .addAllEntries(new ArrayList()) - .addAllSuppressionInfo(new ArrayList()) - .build(); - mockLoggingServiceV2.addResponse(expectedResponse); - TailLogEntriesRequest request = - TailLogEntriesRequest.newBuilder() - .addAllResourceNames(new ArrayList()) - .setFilter("filter-1274492040") - .setBufferWindow(Duration.newBuilder().build()) - .build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - BidiStreamingCallable callable = - client.tailLogEntriesCallable(); - ApiStreamObserver requestObserver = - callable.bidiStreamingCall(responseObserver); - - requestObserver.onNext(request); - requestObserver.onCompleted(); - - List actualResponses = responseObserver.future().get(); - Assert.assertEquals(1, actualResponses.size()); - Assert.assertEquals(expectedResponse, actualResponses.get(0)); - } - - @Test - public void tailLogEntriesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLoggingServiceV2.addException(exception); - TailLogEntriesRequest request = - TailLogEntriesRequest.newBuilder() - .addAllResourceNames(new ArrayList()) - .setFilter("filter-1274492040") - .setBufferWindow(Duration.newBuilder().build()) - .build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - BidiStreamingCallable callable = - client.tailLogEntriesCallable(); - ApiStreamObserver requestObserver = - callable.bidiStreamingCall(responseObserver); - - requestObserver.onNext(request); - - try { - List actualResponses = responseObserver.future().get(); - Assert.fail("No exception thrown"); - } catch (ExecutionException e) { - Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java deleted file mode 100644 index 410a03588..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java +++ /dev/null @@ -1,550 +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.logging.v2; - -import static com.google.cloud.logging.v2.MetricsClient.ListLogMetricsPagedResponse; - -import com.google.api.Distribution; -import com.google.api.MetricDescriptor; -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.common.collect.Lists; -import com.google.logging.v2.CreateLogMetricRequest; -import com.google.logging.v2.DeleteLogMetricRequest; -import com.google.logging.v2.GetLogMetricRequest; -import com.google.logging.v2.ListLogMetricsRequest; -import com.google.logging.v2.ListLogMetricsResponse; -import com.google.logging.v2.LogMetric; -import com.google.logging.v2.LogMetricName; -import com.google.logging.v2.ProjectName; -import com.google.logging.v2.UpdateLogMetricRequest; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class MetricsClientTest { - private static MockMetricsServiceV2 mockMetricsServiceV2; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private MetricsClient client; - - @BeforeClass - public static void startStaticServer() { - mockMetricsServiceV2 = new MockMetricsServiceV2(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockMetricsServiceV2)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - MetricsSettings settings = - MetricsSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = MetricsClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void listLogMetricsTest() throws Exception { - LogMetric responsesElement = LogMetric.newBuilder().build(); - ListLogMetricsResponse expectedResponse = - ListLogMetricsResponse.newBuilder() - .setNextPageToken("") - .addAllMetrics(Arrays.asList(responsesElement)) - .build(); - mockMetricsServiceV2.addResponse(expectedResponse); - - ProjectName parent = ProjectName.of("[PROJECT]"); - - ListLogMetricsPagedResponse pagedListResponse = client.listLogMetrics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getMetricsList().get(0), resources.get(0)); - - List actualRequests = mockMetricsServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListLogMetricsRequest actualRequest = ((ListLogMetricsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listLogMetricsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockMetricsServiceV2.addException(exception); - - try { - ProjectName parent = ProjectName.of("[PROJECT]"); - client.listLogMetrics(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listLogMetricsTest2() throws Exception { - LogMetric responsesElement = LogMetric.newBuilder().build(); - ListLogMetricsResponse expectedResponse = - ListLogMetricsResponse.newBuilder() - .setNextPageToken("") - .addAllMetrics(Arrays.asList(responsesElement)) - .build(); - mockMetricsServiceV2.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListLogMetricsPagedResponse pagedListResponse = client.listLogMetrics(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getMetricsList().get(0), resources.get(0)); - - List actualRequests = mockMetricsServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListLogMetricsRequest actualRequest = ((ListLogMetricsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listLogMetricsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockMetricsServiceV2.addException(exception); - - try { - String parent = "parent-995424086"; - client.listLogMetrics(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getLogMetricTest() throws Exception { - LogMetric expectedResponse = - LogMetric.newBuilder() - .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setBucketName("bucketName1117008789") - .setDisabled(true) - .setMetricDescriptor(MetricDescriptor.newBuilder().build()) - .setValueExtractor("valueExtractor-1867420749") - .putAllLabelExtractors(new HashMap()) - .setBucketOptions(Distribution.BucketOptions.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockMetricsServiceV2.addResponse(expectedResponse); - - LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); - - LogMetric actualResponse = client.getLogMetric(metricName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockMetricsServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetLogMetricRequest actualRequest = ((GetLogMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(metricName.toString(), actualRequest.getMetricName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getLogMetricExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockMetricsServiceV2.addException(exception); - - try { - LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); - client.getLogMetric(metricName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getLogMetricTest2() throws Exception { - LogMetric expectedResponse = - LogMetric.newBuilder() - .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setBucketName("bucketName1117008789") - .setDisabled(true) - .setMetricDescriptor(MetricDescriptor.newBuilder().build()) - .setValueExtractor("valueExtractor-1867420749") - .putAllLabelExtractors(new HashMap()) - .setBucketOptions(Distribution.BucketOptions.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockMetricsServiceV2.addResponse(expectedResponse); - - String metricName = "metricName-610759589"; - - LogMetric actualResponse = client.getLogMetric(metricName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockMetricsServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetLogMetricRequest actualRequest = ((GetLogMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(metricName, actualRequest.getMetricName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getLogMetricExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockMetricsServiceV2.addException(exception); - - try { - String metricName = "metricName-610759589"; - client.getLogMetric(metricName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createLogMetricTest() throws Exception { - LogMetric expectedResponse = - LogMetric.newBuilder() - .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setBucketName("bucketName1117008789") - .setDisabled(true) - .setMetricDescriptor(MetricDescriptor.newBuilder().build()) - .setValueExtractor("valueExtractor-1867420749") - .putAllLabelExtractors(new HashMap()) - .setBucketOptions(Distribution.BucketOptions.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockMetricsServiceV2.addResponse(expectedResponse); - - ProjectName parent = ProjectName.of("[PROJECT]"); - LogMetric metric = LogMetric.newBuilder().build(); - - LogMetric actualResponse = client.createLogMetric(parent, metric); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockMetricsServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateLogMetricRequest actualRequest = ((CreateLogMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(metric, actualRequest.getMetric()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createLogMetricExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockMetricsServiceV2.addException(exception); - - try { - ProjectName parent = ProjectName.of("[PROJECT]"); - LogMetric metric = LogMetric.newBuilder().build(); - client.createLogMetric(parent, metric); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createLogMetricTest2() throws Exception { - LogMetric expectedResponse = - LogMetric.newBuilder() - .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setBucketName("bucketName1117008789") - .setDisabled(true) - .setMetricDescriptor(MetricDescriptor.newBuilder().build()) - .setValueExtractor("valueExtractor-1867420749") - .putAllLabelExtractors(new HashMap()) - .setBucketOptions(Distribution.BucketOptions.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockMetricsServiceV2.addResponse(expectedResponse); - - String parent = "parent-995424086"; - LogMetric metric = LogMetric.newBuilder().build(); - - LogMetric actualResponse = client.createLogMetric(parent, metric); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockMetricsServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateLogMetricRequest actualRequest = ((CreateLogMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(metric, actualRequest.getMetric()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createLogMetricExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockMetricsServiceV2.addException(exception); - - try { - String parent = "parent-995424086"; - LogMetric metric = LogMetric.newBuilder().build(); - client.createLogMetric(parent, metric); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateLogMetricTest() throws Exception { - LogMetric expectedResponse = - LogMetric.newBuilder() - .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setBucketName("bucketName1117008789") - .setDisabled(true) - .setMetricDescriptor(MetricDescriptor.newBuilder().build()) - .setValueExtractor("valueExtractor-1867420749") - .putAllLabelExtractors(new HashMap()) - .setBucketOptions(Distribution.BucketOptions.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockMetricsServiceV2.addResponse(expectedResponse); - - LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); - LogMetric metric = LogMetric.newBuilder().build(); - - LogMetric actualResponse = client.updateLogMetric(metricName, metric); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockMetricsServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateLogMetricRequest actualRequest = ((UpdateLogMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(metricName.toString(), actualRequest.getMetricName()); - Assert.assertEquals(metric, actualRequest.getMetric()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateLogMetricExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockMetricsServiceV2.addException(exception); - - try { - LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); - LogMetric metric = LogMetric.newBuilder().build(); - client.updateLogMetric(metricName, metric); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateLogMetricTest2() throws Exception { - LogMetric expectedResponse = - LogMetric.newBuilder() - .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) - .setDescription("description-1724546052") - .setFilter("filter-1274492040") - .setBucketName("bucketName1117008789") - .setDisabled(true) - .setMetricDescriptor(MetricDescriptor.newBuilder().build()) - .setValueExtractor("valueExtractor-1867420749") - .putAllLabelExtractors(new HashMap()) - .setBucketOptions(Distribution.BucketOptions.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .build(); - mockMetricsServiceV2.addResponse(expectedResponse); - - String metricName = "metricName-610759589"; - LogMetric metric = LogMetric.newBuilder().build(); - - LogMetric actualResponse = client.updateLogMetric(metricName, metric); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockMetricsServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateLogMetricRequest actualRequest = ((UpdateLogMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(metricName, actualRequest.getMetricName()); - Assert.assertEquals(metric, actualRequest.getMetric()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateLogMetricExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockMetricsServiceV2.addException(exception); - - try { - String metricName = "metricName-610759589"; - LogMetric metric = LogMetric.newBuilder().build(); - client.updateLogMetric(metricName, metric); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteLogMetricTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockMetricsServiceV2.addResponse(expectedResponse); - - LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); - - client.deleteLogMetric(metricName); - - List actualRequests = mockMetricsServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteLogMetricRequest actualRequest = ((DeleteLogMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(metricName.toString(), actualRequest.getMetricName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteLogMetricExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockMetricsServiceV2.addException(exception); - - try { - LogMetricName metricName = LogMetricName.of("[PROJECT]", "[METRIC]"); - client.deleteLogMetric(metricName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteLogMetricTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockMetricsServiceV2.addResponse(expectedResponse); - - String metricName = "metricName-610759589"; - - client.deleteLogMetric(metricName); - - List actualRequests = mockMetricsServiceV2.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteLogMetricRequest actualRequest = ((DeleteLogMetricRequest) actualRequests.get(0)); - - Assert.assertEquals(metricName, actualRequest.getMetricName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteLogMetricExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockMetricsServiceV2.addException(exception); - - try { - String metricName = "metricName-610759589"; - client.deleteLogMetric(metricName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2.java deleted file mode 100644 index 325959baa..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2.java +++ /dev/null @@ -1,59 +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.logging.v2; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockConfigServiceV2 implements MockGrpcService { - private final MockConfigServiceV2Impl serviceImpl; - - public MockConfigServiceV2() { - serviceImpl = new MockConfigServiceV2Impl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java deleted file mode 100644 index d214b0517..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java +++ /dev/null @@ -1,762 +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.logging.v2; - -import com.google.api.core.BetaApi; -import com.google.logging.v2.CmekSettings; -import com.google.logging.v2.ConfigServiceV2Grpc.ConfigServiceV2ImplBase; -import com.google.logging.v2.CopyLogEntriesRequest; -import com.google.logging.v2.CreateBucketRequest; -import com.google.logging.v2.CreateExclusionRequest; -import com.google.logging.v2.CreateLinkRequest; -import com.google.logging.v2.CreateSinkRequest; -import com.google.logging.v2.CreateViewRequest; -import com.google.logging.v2.DeleteBucketRequest; -import com.google.logging.v2.DeleteExclusionRequest; -import com.google.logging.v2.DeleteLinkRequest; -import com.google.logging.v2.DeleteSinkRequest; -import com.google.logging.v2.DeleteViewRequest; -import com.google.logging.v2.GetBucketRequest; -import com.google.logging.v2.GetCmekSettingsRequest; -import com.google.logging.v2.GetExclusionRequest; -import com.google.logging.v2.GetLinkRequest; -import com.google.logging.v2.GetSettingsRequest; -import com.google.logging.v2.GetSinkRequest; -import com.google.logging.v2.GetViewRequest; -import com.google.logging.v2.Link; -import com.google.logging.v2.ListBucketsRequest; -import com.google.logging.v2.ListBucketsResponse; -import com.google.logging.v2.ListExclusionsRequest; -import com.google.logging.v2.ListExclusionsResponse; -import com.google.logging.v2.ListLinksRequest; -import com.google.logging.v2.ListLinksResponse; -import com.google.logging.v2.ListSinksRequest; -import com.google.logging.v2.ListSinksResponse; -import com.google.logging.v2.ListViewsRequest; -import com.google.logging.v2.ListViewsResponse; -import com.google.logging.v2.LogBucket; -import com.google.logging.v2.LogExclusion; -import com.google.logging.v2.LogSink; -import com.google.logging.v2.LogView; -import com.google.logging.v2.Settings; -import com.google.logging.v2.UndeleteBucketRequest; -import com.google.logging.v2.UpdateBucketRequest; -import com.google.logging.v2.UpdateCmekSettingsRequest; -import com.google.logging.v2.UpdateExclusionRequest; -import com.google.logging.v2.UpdateSettingsRequest; -import com.google.logging.v2.UpdateSinkRequest; -import com.google.logging.v2.UpdateViewRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockConfigServiceV2Impl extends ConfigServiceV2ImplBase { - private List requests; - private Queue responses; - - public MockConfigServiceV2Impl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listBuckets( - ListBucketsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListBucketsResponse) { - requests.add(request); - responseObserver.onNext(((ListBucketsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListBuckets, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListBucketsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getBucket(GetBucketRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogBucket) { - requests.add(request); - responseObserver.onNext(((LogBucket) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetBucket, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogBucket.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createBucketAsync( - CreateBucketRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateBucketAsync, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateBucketAsync( - UpdateBucketRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateBucketAsync, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createBucket( - CreateBucketRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogBucket) { - requests.add(request); - responseObserver.onNext(((LogBucket) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateBucket, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogBucket.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateBucket( - UpdateBucketRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogBucket) { - requests.add(request); - responseObserver.onNext(((LogBucket) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateBucket, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogBucket.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteBucket(DeleteBucketRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteBucket, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void undeleteBucket( - UndeleteBucketRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UndeleteBucket, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listViews( - ListViewsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListViewsResponse) { - requests.add(request); - responseObserver.onNext(((ListViewsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListViews, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListViewsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getView(GetViewRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogView) { - requests.add(request); - responseObserver.onNext(((LogView) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetView, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogView.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createView(CreateViewRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogView) { - requests.add(request); - responseObserver.onNext(((LogView) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateView, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogView.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateView(UpdateViewRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogView) { - requests.add(request); - responseObserver.onNext(((LogView) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateView, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogView.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteView(DeleteViewRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteView, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listSinks( - ListSinksRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListSinksResponse) { - requests.add(request); - responseObserver.onNext(((ListSinksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListSinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListSinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getSink(GetSinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogSink) { - requests.add(request); - responseObserver.onNext(((LogSink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetSink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogSink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createSink(CreateSinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogSink) { - requests.add(request); - responseObserver.onNext(((LogSink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateSink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogSink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateSink(UpdateSinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogSink) { - requests.add(request); - responseObserver.onNext(((LogSink) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateSink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogSink.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteSink(DeleteSinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteSink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createLink(CreateLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteLink(DeleteLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listLinks( - ListLinksRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListLinksResponse) { - requests.add(request); - responseObserver.onNext(((ListLinksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListLinks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListLinksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getLink(GetLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Link) { - requests.add(request); - responseObserver.onNext(((Link) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Link.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listExclusions( - ListExclusionsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListExclusionsResponse) { - requests.add(request); - responseObserver.onNext(((ListExclusionsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListExclusions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListExclusionsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getExclusion( - GetExclusionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogExclusion) { - requests.add(request); - responseObserver.onNext(((LogExclusion) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetExclusion, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogExclusion.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createExclusion( - CreateExclusionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogExclusion) { - requests.add(request); - responseObserver.onNext(((LogExclusion) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateExclusion, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogExclusion.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateExclusion( - UpdateExclusionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogExclusion) { - requests.add(request); - responseObserver.onNext(((LogExclusion) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateExclusion, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogExclusion.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteExclusion( - DeleteExclusionRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteExclusion, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getCmekSettings( - GetCmekSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CmekSettings) { - requests.add(request); - responseObserver.onNext(((CmekSettings) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetCmekSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CmekSettings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateCmekSettings( - UpdateCmekSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof CmekSettings) { - requests.add(request); - responseObserver.onNext(((CmekSettings) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateCmekSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - CmekSettings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getSettings(GetSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Settings) { - requests.add(request); - responseObserver.onNext(((Settings) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Settings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateSettings( - UpdateSettingsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Settings) { - requests.add(request); - responseObserver.onNext(((Settings) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateSettings, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Settings.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void copyLogEntries( - CopyLogEntriesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CopyLogEntries, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2.java deleted file mode 100644 index 027dae3a1..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2.java +++ /dev/null @@ -1,59 +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.logging.v2; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockLoggingServiceV2 implements MockGrpcService { - private final MockLoggingServiceV2Impl serviceImpl; - - public MockLoggingServiceV2() { - serviceImpl = new MockLoggingServiceV2Impl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java deleted file mode 100644 index 7efc702ba..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java +++ /dev/null @@ -1,213 +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.logging.v2; - -import com.google.api.core.BetaApi; -import com.google.logging.v2.DeleteLogRequest; -import com.google.logging.v2.ListLogEntriesRequest; -import com.google.logging.v2.ListLogEntriesResponse; -import com.google.logging.v2.ListLogsRequest; -import com.google.logging.v2.ListLogsResponse; -import com.google.logging.v2.ListMonitoredResourceDescriptorsRequest; -import com.google.logging.v2.ListMonitoredResourceDescriptorsResponse; -import com.google.logging.v2.LoggingServiceV2Grpc.LoggingServiceV2ImplBase; -import com.google.logging.v2.TailLogEntriesRequest; -import com.google.logging.v2.TailLogEntriesResponse; -import com.google.logging.v2.WriteLogEntriesRequest; -import com.google.logging.v2.WriteLogEntriesResponse; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockLoggingServiceV2Impl extends LoggingServiceV2ImplBase { - private List requests; - private Queue responses; - - public MockLoggingServiceV2Impl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void deleteLog(DeleteLogRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteLog, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void writeLogEntries( - WriteLogEntriesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof WriteLogEntriesResponse) { - requests.add(request); - responseObserver.onNext(((WriteLogEntriesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method WriteLogEntries, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - WriteLogEntriesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listLogEntries( - ListLogEntriesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListLogEntriesResponse) { - requests.add(request); - responseObserver.onNext(((ListLogEntriesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListLogEntries, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListLogEntriesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listMonitoredResourceDescriptors( - ListMonitoredResourceDescriptorsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListMonitoredResourceDescriptorsResponse) { - requests.add(request); - responseObserver.onNext(((ListMonitoredResourceDescriptorsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListMonitoredResourceDescriptors, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListMonitoredResourceDescriptorsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listLogs(ListLogsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListLogsResponse) { - requests.add(request); - responseObserver.onNext(((ListLogsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListLogs, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListLogsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public StreamObserver tailLogEntries( - final StreamObserver responseObserver) { - StreamObserver requestObserver = - new StreamObserver() { - @Override - public void onNext(TailLogEntriesRequest value) { - requests.add(value); - final Object response = responses.remove(); - if (response instanceof TailLogEntriesResponse) { - responseObserver.onNext(((TailLogEntriesResponse) response)); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TailLogEntries, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TailLogEntriesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void onError(Throwable t) { - responseObserver.onError(t); - } - - @Override - public void onCompleted() { - responseObserver.onCompleted(); - } - }; - return requestObserver; - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2.java deleted file mode 100644 index f9ba04a31..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2.java +++ /dev/null @@ -1,59 +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.logging.v2; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockMetricsServiceV2 implements MockGrpcService { - private final MockMetricsServiceV2Impl serviceImpl; - - public MockMetricsServiceV2() { - serviceImpl = new MockMetricsServiceV2Impl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java deleted file mode 100644 index 765831f7c..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java +++ /dev/null @@ -1,173 +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.logging.v2; - -import com.google.api.core.BetaApi; -import com.google.logging.v2.CreateLogMetricRequest; -import com.google.logging.v2.DeleteLogMetricRequest; -import com.google.logging.v2.GetLogMetricRequest; -import com.google.logging.v2.ListLogMetricsRequest; -import com.google.logging.v2.ListLogMetricsResponse; -import com.google.logging.v2.LogMetric; -import com.google.logging.v2.MetricsServiceV2Grpc.MetricsServiceV2ImplBase; -import com.google.logging.v2.UpdateLogMetricRequest; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockMetricsServiceV2Impl extends MetricsServiceV2ImplBase { - private List requests; - private Queue responses; - - public MockMetricsServiceV2Impl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listLogMetrics( - ListLogMetricsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListLogMetricsResponse) { - requests.add(request); - responseObserver.onNext(((ListLogMetricsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListLogMetrics, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListLogMetricsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getLogMetric( - GetLogMetricRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogMetric) { - requests.add(request); - responseObserver.onNext(((LogMetric) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetLogMetric, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogMetric.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createLogMetric( - CreateLogMetricRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogMetric) { - requests.add(request); - responseObserver.onNext(((LogMetric) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateLogMetric, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogMetric.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateLogMetric( - UpdateLogMetricRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LogMetric) { - requests.add(request); - responseObserver.onNext(((LogMetric) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateLogMetric, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LogMetric.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteLogMetric( - DeleteLogMetricRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteLogMetric, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java deleted file mode 100644 index 2945040f5..000000000 --- a/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java +++ /dev/null @@ -1,667 +0,0 @@ -package com.google.logging.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service for configuring logs-based metrics.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/logging/v2/logging_metrics.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class MetricsServiceV2Grpc { - - private MetricsServiceV2Grpc() {} - - public static final java.lang.String SERVICE_NAME = "google.logging.v2.MetricsServiceV2"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListLogMetricsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLogMetrics", - requestType = com.google.logging.v2.ListLogMetricsRequest.class, - responseType = com.google.logging.v2.ListLogMetricsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListLogMetricsMethod() { - io.grpc.MethodDescriptor getListLogMetricsMethod; - if ((getListLogMetricsMethod = MetricsServiceV2Grpc.getListLogMetricsMethod) == null) { - synchronized (MetricsServiceV2Grpc.class) { - if ((getListLogMetricsMethod = MetricsServiceV2Grpc.getListLogMetricsMethod) == null) { - MetricsServiceV2Grpc.getListLogMetricsMethod = getListLogMetricsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLogMetrics")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLogMetricsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.ListLogMetricsResponse.getDefaultInstance())) - .setSchemaDescriptor(new MetricsServiceV2MethodDescriptorSupplier("ListLogMetrics")) - .build(); - } - } - } - return getListLogMetricsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetLogMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLogMetric", - requestType = com.google.logging.v2.GetLogMetricRequest.class, - responseType = com.google.logging.v2.LogMetric.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetLogMetricMethod() { - io.grpc.MethodDescriptor getGetLogMetricMethod; - if ((getGetLogMetricMethod = MetricsServiceV2Grpc.getGetLogMetricMethod) == null) { - synchronized (MetricsServiceV2Grpc.class) { - if ((getGetLogMetricMethod = MetricsServiceV2Grpc.getGetLogMetricMethod) == null) { - MetricsServiceV2Grpc.getGetLogMetricMethod = getGetLogMetricMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLogMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.GetLogMetricRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogMetric.getDefaultInstance())) - .setSchemaDescriptor(new MetricsServiceV2MethodDescriptorSupplier("GetLogMetric")) - .build(); - } - } - } - return getGetLogMetricMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateLogMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateLogMetric", - requestType = com.google.logging.v2.CreateLogMetricRequest.class, - responseType = com.google.logging.v2.LogMetric.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateLogMetricMethod() { - io.grpc.MethodDescriptor getCreateLogMetricMethod; - if ((getCreateLogMetricMethod = MetricsServiceV2Grpc.getCreateLogMetricMethod) == null) { - synchronized (MetricsServiceV2Grpc.class) { - if ((getCreateLogMetricMethod = MetricsServiceV2Grpc.getCreateLogMetricMethod) == null) { - MetricsServiceV2Grpc.getCreateLogMetricMethod = getCreateLogMetricMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateLogMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.CreateLogMetricRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogMetric.getDefaultInstance())) - .setSchemaDescriptor(new MetricsServiceV2MethodDescriptorSupplier("CreateLogMetric")) - .build(); - } - } - } - return getCreateLogMetricMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateLogMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateLogMetric", - requestType = com.google.logging.v2.UpdateLogMetricRequest.class, - responseType = com.google.logging.v2.LogMetric.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateLogMetricMethod() { - io.grpc.MethodDescriptor getUpdateLogMetricMethod; - if ((getUpdateLogMetricMethod = MetricsServiceV2Grpc.getUpdateLogMetricMethod) == null) { - synchronized (MetricsServiceV2Grpc.class) { - if ((getUpdateLogMetricMethod = MetricsServiceV2Grpc.getUpdateLogMetricMethod) == null) { - MetricsServiceV2Grpc.getUpdateLogMetricMethod = getUpdateLogMetricMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateLogMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.UpdateLogMetricRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.LogMetric.getDefaultInstance())) - .setSchemaDescriptor(new MetricsServiceV2MethodDescriptorSupplier("UpdateLogMetric")) - .build(); - } - } - } - return getUpdateLogMetricMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteLogMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteLogMetric", - requestType = com.google.logging.v2.DeleteLogMetricRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteLogMetricMethod() { - io.grpc.MethodDescriptor getDeleteLogMetricMethod; - if ((getDeleteLogMetricMethod = MetricsServiceV2Grpc.getDeleteLogMetricMethod) == null) { - synchronized (MetricsServiceV2Grpc.class) { - if ((getDeleteLogMetricMethod = MetricsServiceV2Grpc.getDeleteLogMetricMethod) == null) { - MetricsServiceV2Grpc.getDeleteLogMetricMethod = getDeleteLogMetricMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLogMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.logging.v2.DeleteLogMetricRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new MetricsServiceV2MethodDescriptorSupplier("DeleteLogMetric")) - .build(); - } - } - } - return getDeleteLogMetricMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static MetricsServiceV2Stub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MetricsServiceV2Stub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricsServiceV2Stub(channel, callOptions); - } - }; - return MetricsServiceV2Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static MetricsServiceV2BlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MetricsServiceV2BlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricsServiceV2BlockingStub(channel, callOptions); - } - }; - return MetricsServiceV2BlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static MetricsServiceV2FutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public MetricsServiceV2FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricsServiceV2FutureStub(channel, callOptions); - } - }; - return MetricsServiceV2FutureStub.newStub(factory, channel); - } - - /** - *
-   * Service for configuring logs-based metrics.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Lists logs-based metrics.
-     * 
- */ - default void listLogMetrics(com.google.logging.v2.ListLogMetricsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLogMetricsMethod(), responseObserver); - } - - /** - *
-     * Gets a logs-based metric.
-     * 
- */ - default void getLogMetric(com.google.logging.v2.GetLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLogMetricMethod(), responseObserver); - } - - /** - *
-     * Creates a logs-based metric.
-     * 
- */ - default void createLogMetric(com.google.logging.v2.CreateLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateLogMetricMethod(), responseObserver); - } - - /** - *
-     * Creates or updates a logs-based metric.
-     * 
- */ - default void updateLogMetric(com.google.logging.v2.UpdateLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateLogMetricMethod(), responseObserver); - } - - /** - *
-     * Deletes a logs-based metric.
-     * 
- */ - default void deleteLogMetric(com.google.logging.v2.DeleteLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteLogMetricMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service MetricsServiceV2. - *
-   * Service for configuring logs-based metrics.
-   * 
- */ - public static abstract class MetricsServiceV2ImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return MetricsServiceV2Grpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service MetricsServiceV2. - *
-   * Service for configuring logs-based metrics.
-   * 
- */ - public static final class MetricsServiceV2Stub - extends io.grpc.stub.AbstractAsyncStub { - private MetricsServiceV2Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MetricsServiceV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricsServiceV2Stub(channel, callOptions); - } - - /** - *
-     * Lists logs-based metrics.
-     * 
- */ - public void listLogMetrics(com.google.logging.v2.ListLogMetricsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLogMetricsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a logs-based metric.
-     * 
- */ - public void getLogMetric(com.google.logging.v2.GetLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLogMetricMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a logs-based metric.
-     * 
- */ - public void createLogMetric(com.google.logging.v2.CreateLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateLogMetricMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates or updates a logs-based metric.
-     * 
- */ - public void updateLogMetric(com.google.logging.v2.UpdateLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateLogMetricMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a logs-based metric.
-     * 
- */ - public void deleteLogMetric(com.google.logging.v2.DeleteLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteLogMetricMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service MetricsServiceV2. - *
-   * Service for configuring logs-based metrics.
-   * 
- */ - public static final class MetricsServiceV2BlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private MetricsServiceV2BlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MetricsServiceV2BlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricsServiceV2BlockingStub(channel, callOptions); - } - - /** - *
-     * Lists logs-based metrics.
-     * 
- */ - public com.google.logging.v2.ListLogMetricsResponse listLogMetrics(com.google.logging.v2.ListLogMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLogMetricsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a logs-based metric.
-     * 
- */ - public com.google.logging.v2.LogMetric getLogMetric(com.google.logging.v2.GetLogMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLogMetricMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a logs-based metric.
-     * 
- */ - public com.google.logging.v2.LogMetric createLogMetric(com.google.logging.v2.CreateLogMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateLogMetricMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates or updates a logs-based metric.
-     * 
- */ - public com.google.logging.v2.LogMetric updateLogMetric(com.google.logging.v2.UpdateLogMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateLogMetricMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a logs-based metric.
-     * 
- */ - public com.google.protobuf.Empty deleteLogMetric(com.google.logging.v2.DeleteLogMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteLogMetricMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service MetricsServiceV2. - *
-   * Service for configuring logs-based metrics.
-   * 
- */ - public static final class MetricsServiceV2FutureStub - extends io.grpc.stub.AbstractFutureStub { - private MetricsServiceV2FutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected MetricsServiceV2FutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new MetricsServiceV2FutureStub(channel, callOptions); - } - - /** - *
-     * Lists logs-based metrics.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listLogMetrics( - com.google.logging.v2.ListLogMetricsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLogMetricsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a logs-based metric.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getLogMetric( - com.google.logging.v2.GetLogMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLogMetricMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a logs-based metric.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createLogMetric( - com.google.logging.v2.CreateLogMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateLogMetricMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates or updates a logs-based metric.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateLogMetric( - com.google.logging.v2.UpdateLogMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateLogMetricMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a logs-based metric.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteLogMetric( - com.google.logging.v2.DeleteLogMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteLogMetricMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_LOG_METRICS = 0; - private static final int METHODID_GET_LOG_METRIC = 1; - private static final int METHODID_CREATE_LOG_METRIC = 2; - private static final int METHODID_UPDATE_LOG_METRIC = 3; - private static final int METHODID_DELETE_LOG_METRIC = 4; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private 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_LOG_METRICS: - serviceImpl.listLogMetrics((com.google.logging.v2.ListLogMetricsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_LOG_METRIC: - serviceImpl.getLogMetric((com.google.logging.v2.GetLogMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_LOG_METRIC: - serviceImpl.createLogMetric((com.google.logging.v2.CreateLogMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_LOG_METRIC: - serviceImpl.updateLogMetric((com.google.logging.v2.UpdateLogMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_LOG_METRIC: - serviceImpl.deleteLogMetric((com.google.logging.v2.DeleteLogMetricRequest) 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( - getListLogMetricsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListLogMetricsRequest, - com.google.logging.v2.ListLogMetricsResponse>( - service, METHODID_LIST_LOG_METRICS))) - .addMethod( - getGetLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetLogMetricRequest, - com.google.logging.v2.LogMetric>( - service, METHODID_GET_LOG_METRIC))) - .addMethod( - getCreateLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateLogMetricRequest, - com.google.logging.v2.LogMetric>( - service, METHODID_CREATE_LOG_METRIC))) - .addMethod( - getUpdateLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateLogMetricRequest, - com.google.logging.v2.LogMetric>( - service, METHODID_UPDATE_LOG_METRIC))) - .addMethod( - getDeleteLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteLogMetricRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_LOG_METRIC))) - .build(); - } - - private static abstract class MetricsServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - MetricsServiceV2BaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("MetricsServiceV2"); - } - } - - private static final class MetricsServiceV2FileDescriptorSupplier - extends MetricsServiceV2BaseDescriptorSupplier { - MetricsServiceV2FileDescriptorSupplier() {} - } - - private static final class MetricsServiceV2MethodDescriptorSupplier - extends MetricsServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - MetricsServiceV2MethodDescriptorSupplier(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 (MetricsServiceV2Grpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new MetricsServiceV2FileDescriptorSupplier()) - .addMethod(getListLogMetricsMethod()) - .addMethod(getGetLogMetricMethod()) - .addMethod(getCreateLogMetricMethod()) - .addMethod(getUpdateLogMetricMethod()) - .addMethod(getDeleteLogMetricMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java deleted file mode 100644 index 7f03a62c4..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -// Protobuf Java Version: 3.25.3 -package com.google.logging.v2; - -public interface CopyLogEntriesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v2.CopyLogEntriesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Number of log entries copied.
-   * 
- * - * int64 log_entries_copied_count = 1; - * @return The logEntriesCopiedCount. - */ - long getLogEntriesCopiedCount(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java deleted file mode 100644 index 8eca6f1db..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_metrics.proto - -// Protobuf Java Version: 3.25.3 -package com.google.logging.v2; - -public interface DeleteLogMetricRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteLogMetricRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the metric to delete:
-   *
-   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
-   * 
- * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The metricName. - */ - java.lang.String getMetricName(); - /** - *
-   * Required. The resource name of the metric to delete:
-   *
-   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
-   * 
- * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for metricName. - */ - com.google.protobuf.ByteString - getMetricNameBytes(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java deleted file mode 100644 index a797df37b..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_metrics.proto - -// Protobuf Java Version: 3.25.3 -package com.google.logging.v2; - -public interface GetLogMetricRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v2.GetLogMetricRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the desired metric:
-   *
-   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
-   * 
- * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The metricName. - */ - java.lang.String getMetricName(); - /** - *
-   * Required. The resource name of the desired metric:
-   *
-   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
-   * 
- * - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for metricName. - */ - com.google.protobuf.ByteString - getMetricNameBytes(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java deleted file mode 100644 index d84b0135d..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -// Protobuf Java Version: 3.25.3 -package com.google.logging.v2; - -public interface GetViewRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v2.GetViewRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the policy:
-   *
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *
-   * For example:
-   *
-   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the policy:
-   *
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *
-   * For example:
-   *
-   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java deleted file mode 100644 index 133c32435..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -// Protobuf Java Version: 3.25.3 -package com.google.logging.v2; - -public interface LocationMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v2.LocationMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Indicates whether or not Log Analytics features are supported in the given
-   * location.
-   * 
- * - * bool log_analytics_enabled = 1; - * @return The logAnalyticsEnabled. - */ - boolean getLogAnalyticsEnabled(); -} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java deleted file mode 100644 index 6337425b1..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java +++ /dev/null @@ -1,157 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/log_entry.proto - -// Protobuf Java Version: 3.25.3 -package com.google.logging.v2; - -public final class LogEntryProto { - private LogEntryProto() {} - 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_logging_v2_LogEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogEntry_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogEntryOperation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogEntrySourceLocation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogSplit_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogSplit_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!google/logging/v2/log_entry.proto\022\021goo" + - "gle.logging.v2\032\037google/api/field_behavio" + - "r.proto\032#google/api/monitored_resource.p" + - "roto\032\031google/api/resource.proto\032&google/" + - "logging/type/http_request.proto\032&google/" + - "logging/type/log_severity.proto\032\031google/" + - "protobuf/any.proto\032\034google/protobuf/stru" + - "ct.proto\032\037google/protobuf/timestamp.prot" + - "o\"\203\010\n\010LogEntry\022\025\n\010log_name\030\014 \001(\tB\003\340A\002\0224\n" + - "\010resource\030\010 \001(\0132\035.google.api.MonitoredRe" + - "sourceB\003\340A\002\022-\n\rproto_payload\030\002 \001(\0132\024.goo" + - "gle.protobuf.AnyH\000\022\026\n\014text_payload\030\003 \001(\t" + - "H\000\022/\n\014json_payload\030\006 \001(\0132\027.google.protob" + - "uf.StructH\000\0222\n\ttimestamp\030\t \001(\0132\032.google." + - "protobuf.TimestampB\003\340A\001\022:\n\021receive_times" + - "tamp\030\030 \001(\0132\032.google.protobuf.TimestampB\003" + - "\340A\003\0227\n\010severity\030\n \001(\0162 .google.logging.t" + - "ype.LogSeverityB\003\340A\001\022\026\n\tinsert_id\030\004 \001(\tB" + - "\003\340A\001\022;\n\014http_request\030\007 \001(\0132 .google.logg" + - "ing.type.HttpRequestB\003\340A\001\022<\n\006labels\030\013 \003(" + - "\0132\'.google.logging.v2.LogEntry.LabelsEnt" + - "ryB\003\340A\001\022<\n\toperation\030\017 \001(\0132$.google.logg" + - "ing.v2.LogEntryOperationB\003\340A\001\022\022\n\005trace\030\026" + - " \001(\tB\003\340A\001\022\024\n\007span_id\030\033 \001(\tB\003\340A\001\022\032\n\rtrace" + - "_sampled\030\036 \001(\010B\003\340A\001\022G\n\017source_location\030\027" + - " \001(\0132).google.logging.v2.LogEntrySourceL" + - "ocationB\003\340A\001\022/\n\005split\030# \001(\0132\033.google.log" + - "ging.v2.LogSplitB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\275\001\352A\271\001\n\032log" + - "ging.googleapis.com/Log\022\035projects/{proje" + - "ct}/logs/{log}\022\'organizations/{organizat" + - "ion}/logs/{log}\022\033folders/{folder}/logs/{" + - "log}\022,billingAccounts/{billing_account}/" + - "logs/{log}\032\010log_nameB\t\n\007payload\"b\n\021LogEn" + - "tryOperation\022\017\n\002id\030\001 \001(\tB\003\340A\001\022\025\n\010produce" + - "r\030\002 \001(\tB\003\340A\001\022\022\n\005first\030\003 \001(\010B\003\340A\001\022\021\n\004last" + - "\030\004 \001(\010B\003\340A\001\"U\n\026LogEntrySourceLocation\022\021\n" + - "\004file\030\001 \001(\tB\003\340A\001\022\021\n\004line\030\002 \001(\003B\003\340A\001\022\025\n\010f" + - "unction\030\003 \001(\tB\003\340A\001\"<\n\010LogSplit\022\013\n\003uid\030\001 " + - "\001(\t\022\r\n\005index\030\002 \001(\005\022\024\n\014total_splits\030\003 \001(\005" + - "B\263\001\n\025com.google.logging.v2B\rLogEntryProt" + - "oP\001Z5cloud.google.com/go/logging/apiv2/l" + - "oggingpb;loggingpb\370\001\001\252\002\027Google.Cloud.Log" + - "ging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032Goog" + - "le::Cloud::Logging::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MonitoredResourceProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.logging.type.HttpRequestProto.getDescriptor(), - com.google.logging.type.LogSeverityProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_logging_v2_LogEntry_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_logging_v2_LogEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogEntry_descriptor, - new java.lang.String[] { "LogName", "Resource", "ProtoPayload", "TextPayload", "JsonPayload", "Timestamp", "ReceiveTimestamp", "Severity", "InsertId", "HttpRequest", "Labels", "Operation", "Trace", "SpanId", "TraceSampled", "SourceLocation", "Split", "Payload", }); - internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor = - internal_static_google_logging_v2_LogEntry_descriptor.getNestedTypes().get(0); - internal_static_google_logging_v2_LogEntry_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_logging_v2_LogEntryOperation_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogEntryOperation_descriptor, - new java.lang.String[] { "Id", "Producer", "First", "Last", }); - internal_static_google_logging_v2_LogEntrySourceLocation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogEntrySourceLocation_descriptor, - new java.lang.String[] { "File", "Line", "Function", }); - internal_static_google_logging_v2_LogSplit_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_logging_v2_LogSplit_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogSplit_descriptor, - new java.lang.String[] { "Uid", "Index", "TotalSplits", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MonitoredResourceProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.logging.type.HttpRequestProto.getDescriptor(); - com.google.logging.type.LogSeverityProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java deleted file mode 100644 index 6cfa64c6e..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java +++ /dev/null @@ -1,1156 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -// Protobuf Java Version: 3.25.3 -package com.google.logging.v2; - -public final class LoggingConfigProto { - private LoggingConfigProto() {} - 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_logging_v2_IndexConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_IndexConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogBucket_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogBucket_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogView_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogView_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogSink_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogSink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_BigQueryDataset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_Link_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_Link_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_BigQueryOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListBucketsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListBucketsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CreateBucketRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UpdateBucketRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetBucketRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_DeleteBucketRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListViewsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListViewsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CreateViewRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UpdateViewRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetViewRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_DeleteViewRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListSinksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListSinksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetSinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CreateSinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UpdateSinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_DeleteSinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CreateLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_DeleteLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLinksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLinksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogExclusion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogExclusion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListExclusionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListExclusionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetExclusionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CreateExclusionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CmekSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CmekSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UpdateSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_Settings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_Settings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_BucketMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LinkMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LocationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&google/logging/v2/logging_config.proto" + - "\022\021google.logging.v2\032\034google/api/annotati" + - "ons.proto\032\027google/api/client.proto\032\037goog" + - "le/api/field_behavior.proto\032\031google/api/" + - "resource.proto\032#google/longrunning/opera" + - "tions.proto\032\033google/protobuf/empty.proto" + - "\032 google/protobuf/field_mask.proto\032\037goog" + - "le/protobuf/timestamp.proto\"\215\001\n\013IndexCon" + - "fig\022\027\n\nfield_path\030\001 \001(\tB\003\340A\002\022/\n\004type\030\002 \001" + - "(\0162\034.google.logging.v2.IndexTypeB\003\340A\002\0224\n" + - "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" + - "estampB\003\340A\003\"\325\005\n\tLogBucket\022\021\n\004name\030\001 \001(\tB" + - "\003\340A\003\022\023\n\013description\030\003 \001(\t\0224\n\013create_time" + - "\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + - "4\n\013update_time\030\005 \001(\0132\032.google.protobuf.T" + - "imestampB\003\340A\003\022\026\n\016retention_days\030\013 \001(\005\022\016\n" + - "\006locked\030\t \001(\010\022?\n\017lifecycle_state\030\014 \001(\0162!" + - ".google.logging.v2.LifecycleStateB\003\340A\003\022\031" + - "\n\021analytics_enabled\030\016 \001(\010\022\031\n\021restricted_" + - "fields\030\017 \003(\t\0225\n\rindex_configs\030\021 \003(\0132\036.go" + - "ogle.logging.v2.IndexConfig\0226\n\rcmek_sett" + - "ings\030\023 \001(\0132\037.google.logging.v2.CmekSetti" + - "ngs:\245\002\352A\241\002\n logging.googleapis.com/LogBu" + - "cket\0228projects/{project}/locations/{loca" + - "tion}/buckets/{bucket}\022Borganizations/{o" + - "rganization}/locations/{location}/bucket" + - "s/{bucket}\0226folders/{folder}/locations/{" + - "location}/buckets/{bucket}\022GbillingAccou" + - "nts/{billing_account}/locations/{locatio" + - "n}/buckets/{bucket}\"\202\004\n\007LogView\022\014\n\004name\030" + - "\001 \001(\t\022\023\n\013description\030\003 \001(\t\0224\n\013create_tim" + - "e\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + - "\0224\n\013update_time\030\005 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\022\016\n\006filter\030\007 \001(\t:\327\002\352A\323\002\n\036l" + - "ogging.googleapis.com/LogView\022Eprojects/" + - "{project}/locations/{location}/buckets/{" + - "bucket}/views/{view}\022Oorganizations/{org" + - "anization}/locations/{location}/buckets/" + - "{bucket}/views/{view}\022Cfolders/{folder}/" + - "locations/{location}/buckets/{bucket}/vi" + - "ews/{view}\022TbillingAccounts/{billing_acc" + - "ount}/locations/{location}/buckets/{buck" + - "et}/views/{view}\"\205\006\n\007LogSink\022\021\n\004name\030\001 \001" + - "(\tB\003\340A\002\022\036\n\013destination\030\003 \001(\tB\t\340A\002\372A\003\n\001*\022" + - "\023\n\006filter\030\005 \001(\tB\003\340A\001\022\030\n\013description\030\022 \001(" + - "\tB\003\340A\001\022\025\n\010disabled\030\023 \001(\010B\003\340A\001\0228\n\nexclusi" + - "ons\030\020 \003(\0132\037.google.logging.v2.LogExclusi" + - "onB\003\340A\001\022K\n\025output_version_format\030\006 \001(\0162(" + - ".google.logging.v2.LogSink.VersionFormat" + - "B\002\030\001\022\034\n\017writer_identity\030\010 \001(\tB\003\340A\003\022\035\n\020in" + - "clude_children\030\t \001(\010B\003\340A\001\022C\n\020bigquery_op" + - "tions\030\014 \001(\0132\".google.logging.v2.BigQuery" + - "OptionsB\003\340A\001H\000\0224\n\013create_time\030\r \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + - "ime\030\016 \001(\0132\032.google.protobuf.TimestampB\003\340" + - "A\003\"?\n\rVersionFormat\022\036\n\032VERSION_FORMAT_UN" + - "SPECIFIED\020\000\022\006\n\002V2\020\001\022\006\n\002V1\020\002:\277\001\352A\273\001\n\036logg" + - "ing.googleapis.com/LogSink\022\037projects/{pr" + - "oject}/sinks/{sink}\022)organizations/{orga" + - "nization}/sinks/{sink}\022\035folders/{folder}" + - "/sinks/{sink}\022.billingAccounts/{billing_" + - "account}/sinks/{sink}B\t\n\007options\"*\n\017BigQ" + - "ueryDataset\022\027\n\ndataset_id\030\001 \001(\tB\003\340A\003\"\265\004\n" + - "\004Link\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t" + - "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\022?\n\017lifecycle_state\030\004 \001(\0162" + - "!.google.logging.v2.LifecycleStateB\003\340A\003\022" + - "<\n\020bigquery_dataset\030\005 \001(\0132\".google.loggi" + - "ng.v2.BigQueryDataset:\324\002\352A\320\002\n\033logging.go" + - "ogleapis.com/Link\022Eprojects/{project}/lo" + - "cations/{location}/buckets/{bucket}/link" + - "s/{link}\022Oorganizations/{organization}/l" + - "ocations/{location}/buckets/{bucket}/lin" + - "ks/{link}\022Cfolders/{folder}/locations/{l" + - "ocation}/buckets/{bucket}/links/{link}\022T" + - "billingAccounts/{billing_account}/locati" + - "ons/{location}/buckets/{bucket}/links/{l" + - "ink}\"g\n\017BigQueryOptions\022#\n\026use_partition" + - "ed_tables\030\001 \001(\010B\003\340A\001\022/\n\"uses_timestamp_c" + - "olumn_partitioning\030\003 \001(\010B\003\340A\003\"\177\n\022ListBuc" + - "ketsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 log" + - "ging.googleapis.com/LogBucket\022\027\n\npage_to" + - "ken\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"]" + - "\n\023ListBucketsResponse\022-\n\007buckets\030\001 \003(\0132\034" + - ".google.logging.v2.LogBucket\022\027\n\017next_pag" + - "e_token\030\002 \001(\t\"\232\001\n\023CreateBucketRequest\0228\n" + - "\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging.googleapi" + - "s.com/LogBucket\022\026\n\tbucket_id\030\002 \001(\tB\003\340A\002\022" + - "1\n\006bucket\030\003 \001(\0132\034.google.logging.v2.LogB" + - "ucketB\003\340A\002\"\266\001\n\023UpdateBucketRequest\0226\n\004na" + - "me\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.com" + - "/LogBucket\0221\n\006bucket\030\002 \001(\0132\034.google.logg" + - "ing.v2.LogBucketB\003\340A\002\0224\n\013update_mask\030\004 \001" + - "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"J\n\020G" + - "etBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n l" + - "ogging.googleapis.com/LogBucket\"M\n\023Delet" + - "eBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n lo" + - "gging.googleapis.com/LogBucket\"O\n\025Undele" + - "teBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n l" + - "ogging.googleapis.com/LogBucket\"X\n\020ListV" + - "iewsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\027\n\npage" + - "_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A" + - "\001\"W\n\021ListViewsResponse\022)\n\005views\030\001 \003(\0132\032." + - "google.logging.v2.LogView\022\027\n\017next_page_t" + - "oken\030\002 \001(\t\"m\n\021CreateViewRequest\022\023\n\006paren" + - "t\030\001 \001(\tB\003\340A\002\022\024\n\007view_id\030\002 \001(\tB\003\340A\002\022-\n\004vi" + - "ew\030\003 \001(\0132\032.google.logging.v2.LogViewB\003\340A" + - "\002\"\213\001\n\021UpdateViewRequest\022\021\n\004name\030\001 \001(\tB\003\340" + - "A\002\022-\n\004view\030\002 \001(\0132\032.google.logging.v2.Log" + - "ViewB\003\340A\002\0224\n\013update_mask\030\004 \001(\0132\032.google." + - "protobuf.FieldMaskB\003\340A\001\"F\n\016GetViewReques" + - "t\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036logging.googlea" + - "pis.com/LogView\"I\n\021DeleteViewRequest\0224\n\004" + - "name\030\001 \001(\tB&\340A\002\372A \n\036logging.googleapis.c" + - "om/LogView\"{\n\020ListSinksRequest\0226\n\006parent" + - "\030\001 \001(\tB&\340A\002\372A \022\036logging.googleapis.com/L" + - "ogSink\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_" + - "size\030\003 \001(\005B\003\340A\001\"W\n\021ListSinksResponse\022)\n\005" + - "sinks\030\001 \003(\0132\032.google.logging.v2.LogSink\022" + - "\027\n\017next_page_token\030\002 \001(\t\"K\n\016GetSinkReque" + - "st\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036logging.g" + - "oogleapis.com/LogSink\"\237\001\n\021CreateSinkRequ" + - "est\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036logging.goo" + - "gleapis.com/LogSink\022-\n\004sink\030\002 \001(\0132\032.goog" + - "le.logging.v2.LogSinkB\003\340A\002\022#\n\026unique_wri" + - "ter_identity\030\003 \001(\010B\003\340A\001\"\330\001\n\021UpdateSinkRe" + - "quest\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036loggin" + - "g.googleapis.com/LogSink\022-\n\004sink\030\002 \001(\0132\032" + - ".google.logging.v2.LogSinkB\003\340A\002\022#\n\026uniqu" + - "e_writer_identity\030\003 \001(\010B\003\340A\001\0224\n\013update_m" + - "ask\030\004 \001(\0132\032.google.protobuf.FieldMaskB\003\340" + - "A\001\"N\n\021DeleteSinkRequest\0229\n\tsink_name\030\001 \001" + - "(\tB&\340A\002\372A \n\036logging.googleapis.com/LogSi" + - "nk\"\212\001\n\021CreateLinkRequest\0223\n\006parent\030\001 \001(\t" + - "B#\340A\002\372A\035\022\033logging.googleapis.com/Link\022*\n" + - "\004link\030\002 \001(\0132\027.google.logging.v2.LinkB\003\340A" + - "\002\022\024\n\007link_id\030\003 \001(\tB\003\340A\002\"F\n\021DeleteLinkReq" + - "uest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033logging.goog" + - "leapis.com/Link\"x\n\020ListLinksRequest\0223\n\006p" + - "arent\030\001 \001(\tB#\340A\002\372A\035\022\033logging.googleapis." + - "com/Link\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\tpag" + - "e_size\030\003 \001(\005B\003\340A\001\"T\n\021ListLinksResponse\022&" + - "\n\005links\030\001 \003(\0132\027.google.logging.v2.Link\022\027" + - "\n\017next_page_token\030\002 \001(\t\"C\n\016GetLinkReques" + - "t\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033logging.googlea" + - "pis.com/Link\"\302\003\n\014LogExclusion\022\021\n\004name\030\001 " + - "\001(\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006fi" + - "lter\030\003 \001(\tB\003\340A\002\022\025\n\010disabled\030\004 \001(\010B\003\340A\001\0224" + - "\n\013create_time\030\005 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.goog" + - "le.protobuf.TimestampB\003\340A\003:\354\001\352A\350\001\n#loggi" + - "ng.googleapis.com/LogExclusion\022)projects" + - "/{project}/exclusions/{exclusion}\0223organ" + - "izations/{organization}/exclusions/{excl" + - "usion}\022\'folders/{folder}/exclusions/{exc" + - "lusion}\0228billingAccounts/{billing_accoun" + - "t}/exclusions/{exclusion}\"\205\001\n\025ListExclus" + - "ionsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#log" + - "ging.googleapis.com/LogExclusion\022\027\n\npage" + - "_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A" + - "\001\"f\n\026ListExclusionsResponse\0223\n\nexclusion" + - "s\030\001 \003(\0132\037.google.logging.v2.LogExclusion" + - "\022\027\n\017next_page_token\030\002 \001(\t\"P\n\023GetExclusio" + - "nRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging." + - "googleapis.com/LogExclusion\"\216\001\n\026CreateEx" + - "clusionRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#" + - "logging.googleapis.com/LogExclusion\0227\n\te" + - "xclusion\030\002 \001(\0132\037.google.logging.v2.LogEx" + - "clusionB\003\340A\002\"\302\001\n\026UpdateExclusionRequest\022" + - "9\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging.googleapi" + - "s.com/LogExclusion\0227\n\texclusion\030\002 \001(\0132\037." + - "google.logging.v2.LogExclusionB\003\340A\002\0224\n\013u" + - "pdate_mask\030\003 \001(\0132\032.google.protobuf.Field" + - "MaskB\003\340A\002\"S\n\026DeleteExclusionRequest\0229\n\004n" + - "ame\030\001 \001(\tB+\340A\002\372A%\n#logging.googleapis.co" + - "m/LogExclusion\"S\n\026GetCmekSettingsRequest" + - "\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging.googleap" + - "is.com/CmekSettings\"\241\001\n\031UpdateCmekSettin" + - "gsRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022;\n\rcmek_set" + - "tings\030\002 \001(\0132\037.google.logging.v2.CmekSett" + - "ingsB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132\032.google." + - "protobuf.FieldMaskB\003\340A\001\"\275\002\n\014CmekSettings" + - "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014kms_key_name\030\002 \001(" + - "\t\022\034\n\024kms_key_version_name\030\004 \001(\t\022\037\n\022servi" + - "ce_account_id\030\003 \001(\tB\003\340A\003:\304\001\352A\300\001\n#logging" + - ".googleapis.com/CmekSettings\022\037projects/{" + - "project}/cmekSettings\022)organizations/{or" + - "ganization}/cmekSettings\022\035folders/{folde" + - "r}/cmekSettings\022.billingAccounts/{billin" + - "g_account}/cmekSettings\"K\n\022GetSettingsRe" + - "quest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037logging.goo" + - "gleapis.com/Settings\"\224\001\n\025UpdateSettingsR" + - "equest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\010settings\030\002 " + - "\001(\0132\033.google.logging.v2.SettingsB\003\340A\002\0224\n" + - "\013update_mask\030\003 \001(\0132\032.google.protobuf.Fie" + - "ldMaskB\003\340A\001\"\322\002\n\010Settings\022\021\n\004name\030\001 \001(\tB\003" + - "\340A\003\022\031\n\014kms_key_name\030\002 \001(\tB\003\340A\001\022#\n\026kms_se" + - "rvice_account_id\030\003 \001(\tB\003\340A\003\022\035\n\020storage_l" + - "ocation\030\004 \001(\tB\003\340A\001\022!\n\024disable_default_si" + - "nk\030\005 \001(\010B\003\340A\001:\260\001\352A\254\001\n\037logging.googleapis" + - ".com/Settings\022\033projects/{project}/settin" + - "gs\022%organizations/{organization}/setting" + - "s\022\031folders/{folder}/settings\022*billingAcc" + - "ounts/{billing_account}/settings\"Y\n\025Copy" + - "LogEntriesRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\006" + - "filter\030\003 \001(\tB\003\340A\001\022\030\n\013destination\030\004 \001(\tB\003" + - "\340A\002\"\256\002\n\026CopyLogEntriesMetadata\022.\n\nstart_" + - "time\030\001 \001(\0132\032.google.protobuf.Timestamp\022," + - "\n\010end_time\030\002 \001(\0132\032.google.protobuf.Times" + - "tamp\0220\n\005state\030\003 \001(\0162!.google.logging.v2." + - "OperationState\022\036\n\026cancellation_requested" + - "\030\004 \001(\010\0229\n\007request\030\005 \001(\0132(.google.logging" + - ".v2.CopyLogEntriesRequest\022\020\n\010progress\030\006 " + - "\001(\005\022\027\n\017writer_identity\030\007 \001(\t\":\n\026CopyLogE" + - "ntriesResponse\022 \n\030log_entries_copied_cou" + - "nt\030\001 \001(\003\"\275\002\n\016BucketMetadata\022.\n\nstart_tim" + - "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010e" + - "nd_time\030\002 \001(\0132\032.google.protobuf.Timestam" + - "p\0220\n\005state\030\003 \001(\0162!.google.logging.v2.Ope" + - "rationState\022G\n\025create_bucket_request\030\004 \001" + - "(\0132&.google.logging.v2.CreateBucketReque" + - "stH\000\022G\n\025update_bucket_request\030\005 \001(\0132&.go" + - "ogle.logging.v2.UpdateBucketRequestH\000B\t\n" + - "\007request\"\263\002\n\014LinkMetadata\022.\n\nstart_time\030" + - "\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010end" + - "_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022" + - "0\n\005state\030\003 \001(\0162!.google.logging.v2.Opera" + - "tionState\022C\n\023create_link_request\030\004 \001(\0132$" + - ".google.logging.v2.CreateLinkRequestH\000\022C" + - "\n\023delete_link_request\030\005 \001(\0132$.google.log" + - "ging.v2.DeleteLinkRequestH\000B\t\n\007request\"1" + - "\n\020LocationMetadata\022\035\n\025log_analytics_enab" + - "led\030\001 \001(\010*\364\001\n\016OperationState\022\037\n\033OPERATIO" + - "N_STATE_UNSPECIFIED\020\000\022\035\n\031OPERATION_STATE" + - "_SCHEDULED\020\001\022+\n\'OPERATION_STATE_WAITING_" + - "FOR_PERMISSIONS\020\002\022\033\n\027OPERATION_STATE_RUN" + - "NING\020\003\022\035\n\031OPERATION_STATE_SUCCEEDED\020\004\022\032\n" + - "\026OPERATION_STATE_FAILED\020\005\022\035\n\031OPERATION_S" + - "TATE_CANCELLED\020\006*{\n\016LifecycleState\022\037\n\033LI" + - "FECYCLE_STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022" + - "\024\n\020DELETE_REQUESTED\020\002\022\014\n\010UPDATING\020\003\022\014\n\010C" + - "REATING\020\004\022\n\n\006FAILED\020\005*V\n\tIndexType\022\032\n\026IN" + - "DEX_TYPE_UNSPECIFIED\020\000\022\025\n\021INDEX_TYPE_STR" + - "ING\020\001\022\026\n\022INDEX_TYPE_INTEGER\020\0022\237Y\n\017Config" + - "ServiceV2\022\334\002\n\013ListBuckets\022%.google.loggi" + - "ng.v2.ListBucketsRequest\032&.google.loggin" + - "g.v2.ListBucketsResponse\"\375\001\332A\006parent\202\323\344\223" + - "\002\355\001\022$/v2/{parent=*/*/locations/*}/bucket" + - "sZ-\022+/v2/{parent=projects/*/locations/*}" + - "/bucketsZ2\0220/v2/{parent=organizations/*/" + - "locations/*}/bucketsZ,\022*/v2/{parent=fold" + - "ers/*/locations/*}/bucketsZ4\0222/v2/{paren" + - "t=billingAccounts/*/locations/*}/buckets" + - "\022\305\002\n\tGetBucket\022#.google.logging.v2.GetBu" + - "cketRequest\032\034.google.logging.v2.LogBucke" + - "t\"\364\001\202\323\344\223\002\355\001\022$/v2/{name=*/*/locations/*/b" + - "uckets/*}Z-\022+/v2/{name=projects/*/locati" + - "ons/*/buckets/*}Z2\0220/v2/{name=organizati" + - "ons/*/locations/*/buckets/*}Z,\022*/v2/{nam" + - "e=folders/*/locations/*/buckets/*}Z4\0222/v" + - "2/{name=billingAccounts/*/locations/*/bu" + - "ckets/*}\022\323\003\n\021CreateBucketAsync\022&.google." + - "logging.v2.CreateBucketRequest\032\035.google." + - "longrunning.Operation\"\366\002\312A\033\n\tLogBucket\022\016" + - "BucketMetadata\202\323\344\223\002\321\002\"0/v2/{parent=*/*/l" + - "ocations/*}/buckets:createAsync:\006bucketZ" + - "A\"7/v2/{parent=projects/*/locations/*}/b" + - "uckets:createAsync:\006bucketZF\"/v2/{parent=billingAccounts/*/lo" + - "cations/*}/buckets:createAsync:\006bucket\022\323" + - "\003\n\021UpdateBucketAsync\022&.google.logging.v2" + - ".UpdateBucketRequest\032\035.google.longrunnin" + - "g.Operation\"\366\002\312A\033\n\tLogBucket\022\016BucketMeta" + - "data\202\323\344\223\002\321\002\"0/v2/{name=*/*/locations/*/b" + - "uckets/*}:updateAsync:\006bucketZA\"7/v2/{na" + - "me=projects/*/locations/*/buckets/*}:upd" + - "ateAsync:\006bucketZF\"/v" + - "2/{name=billingAccounts/*/locations/*/bu" + - "ckets/*}:updateAsync:\006bucket\022\363\002\n\014CreateB" + - "ucket\022&.google.logging.v2.CreateBucketRe" + - "quest\032\034.google.logging.v2.LogBucket\"\234\002\202\323" + - "\344\223\002\225\002\"$/v2/{parent=*/*/locations/*}/buck" + - "ets:\006bucketZ5\"+/v2/{parent=projects/*/lo" + - "cations/*}/buckets:\006bucketZ:\"0/v2/{paren" + - "t=organizations/*/locations/*}/buckets:\006" + - "bucketZ4\"*/v2/{parent=folders/*/location" + - "s/*}/buckets:\006bucketZ<\"2/v2/{parent=bill" + - "ingAccounts/*/locations/*}/buckets:\006buck" + - "et\022\363\002\n\014UpdateBucket\022&.google.logging.v2." + - "UpdateBucketRequest\032\034.google.logging.v2." + - "LogBucket\"\234\002\202\323\344\223\002\225\0022$/v2/{name=*/*/locat" + - "ions/*/buckets/*}:\006bucketZ52+/v2/{name=p" + - "rojects/*/locations/*/buckets/*}:\006bucket" + - "Z:20/v2/{name=organizations/*/locations/" + - "*/buckets/*}:\006bucketZ42*/v2/{name=folder" + - "s/*/locations/*/buckets/*}:\006bucketZ<22/v" + - "2/{name=billingAccounts/*/locations/*/bu" + - "ckets/*}:\006bucket\022\305\002\n\014DeleteBucket\022&.goog" + - "le.logging.v2.DeleteBucketRequest\032\026.goog" + - "le.protobuf.Empty\"\364\001\202\323\344\223\002\355\001*$/v2/{name=*" + - "/*/locations/*/buckets/*}Z-*+/v2/{name=p" + - "rojects/*/locations/*/buckets/*}Z2*0/v2/" + - "{name=organizations/*/locations/*/bucket" + - "s/*}Z,**/v2/{name=folders/*/locations/*/" + - "buckets/*}Z4*2/v2/{name=billingAccounts/" + - "*/locations/*/buckets/*}\022\205\003\n\016UndeleteBuc" + - "ket\022(.google.logging.v2.UndeleteBucketRe" + - "quest\032\026.google.protobuf.Empty\"\260\002\202\323\344\223\002\251\002\"" + - "-/v2/{name=*/*/locations/*/buckets/*}:un" + - "delete:\001*Z9\"4/v2/{name=projects/*/locati" + - "ons/*/buckets/*}:undelete:\001*Z>\"9/v2/{nam" + - "e=organizations/*/locations/*/buckets/*}" + - ":undelete:\001*Z8\"3/v2/{name=folders/*/loca" + - "tions/*/buckets/*}:undelete:\001*Z@\";/v2/{n" + - "ame=billingAccounts/*/locations/*/bucket" + - "s/*}:undelete:\001*\022\376\002\n\tListViews\022#.google." + - "logging.v2.ListViewsRequest\032$.google.log" + - "ging.v2.ListViewsResponse\"\245\002\332A\006parent\202\323\344" + - "\223\002\225\002\022,/v2/{parent=*/*/locations/*/bucket" + - "s/*}/viewsZ5\0223/v2/{parent=projects/*/loc" + - "ations/*/buckets/*}/viewsZ:\0228/v2/{parent" + - "=organizations/*/locations/*/buckets/*}/" + - "viewsZ4\0222/v2/{parent=folders/*/locations" + - "/*/buckets/*}/viewsZ<\022:/v2/{parent=billi" + - "ngAccounts/*/locations/*/buckets/*}/view" + - "s\022\347\002\n\007GetView\022!.google.logging.v2.GetVie" + - "wRequest\032\032.google.logging.v2.LogView\"\234\002\202" + - "\323\344\223\002\225\002\022,/v2/{name=*/*/locations/*/bucket" + - "s/*/views/*}Z5\0223/v2/{name=projects/*/loc" + - "ations/*/buckets/*/views/*}Z:\0228/v2/{name" + - "=organizations/*/locations/*/buckets/*/v" + - "iews/*}Z4\0222/v2/{name=folders/*/locations" + - "/*/buckets/*/views/*}Z<\022:/v2/{name=billi" + - "ngAccounts/*/locations/*/buckets/*/views" + - "/*}\022\213\003\n\nCreateView\022$.google.logging.v2.C" + - "reateViewRequest\032\032.google.logging.v2.Log" + - "View\"\272\002\202\323\344\223\002\263\002\",/v2/{parent=*/*/location" + - "s/*/buckets/*}/views:\004viewZ;\"3/v2/{paren" + - "t=projects/*/locations/*/buckets/*}/view" + - "s:\004viewZ@\"8/v2/{parent=organizations/*/l" + - "ocations/*/buckets/*}/views:\004viewZ:\"2/v2" + - "/{parent=folders/*/locations/*/buckets/*" + - "}/views:\004viewZB\":/v2/{parent=billingAcco" + - "unts/*/locations/*/buckets/*}/views:\004vie" + - "w\022\213\003\n\nUpdateView\022$.google.logging.v2.Upd" + - "ateViewRequest\032\032.google.logging.v2.LogVi" + - "ew\"\272\002\202\323\344\223\002\263\0022,/v2/{name=*/*/locations/*/" + - "buckets/*/views/*}:\004viewZ;23/v2/{name=pr" + - "ojects/*/locations/*/buckets/*/views/*}:" + - "\004viewZ@28/v2/{name=organizations/*/locat" + - "ions/*/buckets/*/views/*}:\004viewZ:22/v2/{" + - "name=folders/*/locations/*/buckets/*/vie" + - "ws/*}:\004viewZB2:/v2/{name=billingAccounts" + - "/*/locations/*/buckets/*/views/*}:\004view\022" + - "\351\002\n\nDeleteView\022$.google.logging.v2.Delet" + - "eViewRequest\032\026.google.protobuf.Empty\"\234\002\202" + - "\323\344\223\002\225\002*,/v2/{name=*/*/locations/*/bucket" + - "s/*/views/*}Z5*3/v2/{name=projects/*/loc" + - "ations/*/buckets/*/views/*}Z:*8/v2/{name" + - "=organizations/*/locations/*/buckets/*/v" + - "iews/*}Z4*2/v2/{name=folders/*/locations" + - "/*/buckets/*/views/*}Z<*:/v2/{name=billi" + - "ngAccounts/*/locations/*/buckets/*/views" + - "/*}\022\220\002\n\tListSinks\022#.google.logging.v2.Li" + - "stSinksRequest\032$.google.logging.v2.ListS" + - "inksResponse\"\267\001\332A\006parent\202\323\344\223\002\247\001\022\026/v2/{pa" + - "rent=*/*}/sinksZ\037\022\035/v2/{parent=projects/" + - "*}/sinksZ$\022\"/v2/{parent=organizations/*}" + - "/sinksZ\036\022\034/v2/{parent=folders/*}/sinksZ&" + - "\022$/v2/{parent=billingAccounts/*}/sinks\022\236" + - "\002\n\007GetSink\022!.google.logging.v2.GetSinkRe" + - "quest\032\032.google.logging.v2.LogSink\"\323\001\332A\ts" + - "ink_name\202\323\344\223\002\300\001\022\033/v2/{sink_name=*/*/sink" + - "s/*}Z$\022\"/v2/{sink_name=projects/*/sinks/" + - "*}Z)\022\'/v2/{sink_name=organizations/*/sin" + - "ks/*}Z#\022!/v2/{sink_name=folders/*/sinks/" + - "*}Z+\022)/v2/{sink_name=billingAccounts/*/s" + - "inks/*}\022\253\002\n\nCreateSink\022$.google.logging." + - "v2.CreateSinkRequest\032\032.google.logging.v2" + - ".LogSink\"\332\001\332A\013parent,sink\202\323\344\223\002\305\001\"\026/v2/{p" + - "arent=*/*}/sinks:\004sinkZ%\"\035/v2/{parent=pr" + - "ojects/*}/sinks:\004sinkZ*\"\"/v2/{parent=org" + - "anizations/*}/sinks:\004sinkZ$\"\034/v2/{parent" + - "=folders/*}/sinks:\004sinkZ,\"$/v2/{parent=b" + - "illingAccounts/*}/sinks:\004sink\022\237\004\n\nUpdate" + - "Sink\022$.google.logging.v2.UpdateSinkReque" + - "st\032\032.google.logging.v2.LogSink\"\316\003\332A\032sink" + - "_name,sink,update_mask\332A\016sink_name,sink\202" + - "\323\344\223\002\231\003\032\033/v2/{sink_name=*/*/sinks/*}:\004sin" + - "kZ*\032\"/v2/{sink_name=projects/*/sinks/*}:" + - "\004sinkZ/\032\'/v2/{sink_name=organizations/*/" + - "sinks/*}:\004sinkZ)\032!/v2/{sink_name=folders" + - "/*/sinks/*}:\004sinkZ1\032)/v2/{sink_name=bill" + - "ingAccounts/*/sinks/*}:\004sinkZ*2\"/v2/{sin", - "k_name=projects/*/sinks/*}:\004sinkZ/2\'/v2/" + - "{sink_name=organizations/*/sinks/*}:\004sin" + - "kZ)2!/v2/{sink_name=folders/*/sinks/*}:\004" + - "sinkZ12)/v2/{sink_name=billingAccounts/*" + - "/sinks/*}:\004sink\022\240\002\n\nDeleteSink\022$.google." + - "logging.v2.DeleteSinkRequest\032\026.google.pr" + - "otobuf.Empty\"\323\001\332A\tsink_name\202\323\344\223\002\300\001*\033/v2/" + - "{sink_name=*/*/sinks/*}Z$*\"/v2/{sink_nam" + - "e=projects/*/sinks/*}Z)*\'/v2/{sink_name=" + - "organizations/*/sinks/*}Z#*!/v2/{sink_na" + - "me=folders/*/sinks/*}Z+*)/v2/{sink_name=" + - "billingAccounts/*/sinks/*}\022\273\003\n\nCreateLin" + - "k\022$.google.logging.v2.CreateLinkRequest\032" + - "\035.google.longrunning.Operation\"\347\002\312A\024\n\004Li" + - "nk\022\014LinkMetadata\332A\023parent,link,link_id\202\323" + - "\344\223\002\263\002\",/v2/{parent=*/*/locations/*/bucke" + - "ts/*}/links:\004linkZ;\"3/v2/{parent=project" + - "s/*/locations/*/buckets/*}/links:\004linkZ@" + - "\"8/v2/{parent=organizations/*/locations/" + - "*/buckets/*}/links:\004linkZ:\"2/v2/{parent=" + - "folders/*/locations/*/buckets/*}/links:\004" + - "linkZB\":/v2/{parent=billingAccounts/*/lo" + - "cations/*/buckets/*}/links:\004link\022\237\003\n\nDel" + - "eteLink\022$.google.logging.v2.DeleteLinkRe" + - "quest\032\035.google.longrunning.Operation\"\313\002\312" + - "A%\n\025google.protobuf.Empty\022\014LinkMetadata\332" + - "A\004name\202\323\344\223\002\225\002*,/v2/{name=*/*/locations/*" + - "/buckets/*/links/*}Z5*3/v2/{name=project" + - "s/*/locations/*/buckets/*/links/*}Z:*8/v" + - "2/{name=organizations/*/locations/*/buck" + - "ets/*/links/*}Z4*2/v2/{name=folders/*/lo" + - "cations/*/buckets/*/links/*}Z<*:/v2/{nam" + - "e=billingAccounts/*/locations/*/buckets/" + - "*/links/*}\022\376\002\n\tListLinks\022#.google.loggin" + - "g.v2.ListLinksRequest\032$.google.logging.v" + - "2.ListLinksResponse\"\245\002\332A\006parent\202\323\344\223\002\225\002\022," + - "/v2/{parent=*/*/locations/*/buckets/*}/l" + - "inksZ5\0223/v2/{parent=projects/*/locations" + - "/*/buckets/*}/linksZ:\0228/v2/{parent=organ" + - "izations/*/locations/*/buckets/*}/linksZ" + - "4\0222/v2/{parent=folders/*/locations/*/buc" + - "kets/*}/linksZ<\022:/v2/{parent=billingAcco" + - "unts/*/locations/*/buckets/*}/links\022\353\002\n\007" + - "GetLink\022!.google.logging.v2.GetLinkReque" + - "st\032\027.google.logging.v2.Link\"\243\002\332A\004name\202\323\344" + - "\223\002\225\002\022,/v2/{name=*/*/locations/*/buckets/" + - "*/links/*}Z5\0223/v2/{name=projects/*/locat" + - "ions/*/buckets/*/links/*}Z:\0228/v2/{name=o" + - "rganizations/*/locations/*/buckets/*/lin" + - "ks/*}Z4\0222/v2/{name=folders/*/locations/*" + - "/buckets/*/links/*}Z<\022:/v2/{name=billing" + - "Accounts/*/locations/*/buckets/*/links/*" + - "}\022\270\002\n\016ListExclusions\022(.google.logging.v2" + - ".ListExclusionsRequest\032).google.logging." + - "v2.ListExclusionsResponse\"\320\001\332A\006parent\202\323\344" + - "\223\002\300\001\022\033/v2/{parent=*/*}/exclusionsZ$\022\"/v2" + - "/{parent=projects/*}/exclusionsZ)\022\'/v2/{" + - "parent=organizations/*}/exclusionsZ#\022!/v" + - "2/{parent=folders/*}/exclusionsZ+\022)/v2/{" + - "parent=billingAccounts/*}/exclusions\022\250\002\n" + - "\014GetExclusion\022&.google.logging.v2.GetExc" + - "lusionRequest\032\037.google.logging.v2.LogExc" + - "lusion\"\316\001\332A\004name\202\323\344\223\002\300\001\022\033/v2/{name=*/*/e" + - "xclusions/*}Z$\022\"/v2/{name=projects/*/exc" + - "lusions/*}Z)\022\'/v2/{name=organizations/*/" + - "exclusions/*}Z#\022!/v2/{name=folders/*/exc" + - "lusions/*}Z+\022)/v2/{name=billingAccounts/" + - "*/exclusions/*}\022\361\002\n\017CreateExclusion\022).go" + - "ogle.logging.v2.CreateExclusionRequest\032\037" + - ".google.logging.v2.LogExclusion\"\221\002\332A\020par" + - "ent,exclusion\202\323\344\223\002\367\001\"\033/v2/{parent=*/*}/e" + - "xclusions:\texclusionZ/\"\"/v2/{parent=proj" + - "ects/*}/exclusions:\texclusionZ4\"\'/v2/{pa" + - "rent=organizations/*}/exclusions:\texclus" + - "ionZ.\"!/v2/{parent=folders/*}/exclusions" + - ":\texclusionZ6\")/v2/{parent=billingAccoun" + - "ts/*}/exclusions:\texclusion\022\373\002\n\017UpdateEx" + - "clusion\022).google.logging.v2.UpdateExclus" + - "ionRequest\032\037.google.logging.v2.LogExclus" + - "ion\"\233\002\332A\032name,exclusion,update_mask\202\323\344\223\002" + - "\367\0012\033/v2/{name=*/*/exclusions/*}:\texclusi" + - "onZ/2\"/v2/{name=projects/*/exclusions/*}" + - ":\texclusionZ42\'/v2/{name=organizations/*" + - "/exclusions/*}:\texclusionZ.2!/v2/{name=f" + - "olders/*/exclusions/*}:\texclusionZ62)/v2" + - "/{name=billingAccounts/*/exclusions/*}:\t" + - "exclusion\022\245\002\n\017DeleteExclusion\022).google.l" + - "ogging.v2.DeleteExclusionRequest\032\026.googl" + - "e.protobuf.Empty\"\316\001\332A\004name\202\323\344\223\002\300\001*\033/v2/{" + - "name=*/*/exclusions/*}Z$*\"/v2/{name=proj" + - "ects/*/exclusions/*}Z)*\'/v2/{name=organi" + - "zations/*/exclusions/*}Z#*!/v2/{name=fol" + - "ders/*/exclusions/*}Z+*)/v2/{name=billin" + - "gAccounts/*/exclusions/*}\022\247\002\n\017GetCmekSet" + - "tings\022).google.logging.v2.GetCmekSetting" + - "sRequest\032\037.google.logging.v2.CmekSetting" + - "s\"\307\001\202\323\344\223\002\300\001\022\033/v2/{name=*/*}/cmekSettings" + - "Z$\022\"/v2/{name=projects/*}/cmekSettingsZ)" + - "\022\'/v2/{name=organizations/*}/cmekSetting" + - "sZ#\022!/v2/{name=folders/*}/cmekSettingsZ+" + - "\022)/v2/{name=billingAccounts/*}/cmekSetti" + - "ngs\022\321\001\n\022UpdateCmekSettings\022,.google.logg" + - "ing.v2.UpdateCmekSettingsRequest\032\037.googl" + - "e.logging.v2.CmekSettings\"l\202\323\344\223\002f2\033/v2/{" + - "name=*/*}/cmekSettings:\rcmek_settingsZ82" + - "\'/v2/{name=organizations/*}/cmekSettings" + - ":\rcmek_settings\022\216\002\n\013GetSettings\022%.google" + - ".logging.v2.GetSettingsRequest\032\033.google." + - "logging.v2.Settings\"\272\001\332A\004name\202\323\344\223\002\254\001\022\027/v" + - "2/{name=*/*}/settingsZ \022\036/v2/{name=proje" + - "cts/*}/settingsZ%\022#/v2/{name=organizatio" + - "ns/*}/settingsZ\037\022\035/v2/{name=folders/*}/s" + - "ettingsZ\'\022%/v2/{name=billingAccounts/*}/" + - "settings\022\366\001\n\016UpdateSettings\022(.google.log" + - "ging.v2.UpdateSettingsRequest\032\033.google.l" + - "ogging.v2.Settings\"\234\001\332A\024settings,update_" + - "mask\202\323\344\223\002\1772\027/v2/{name=*/*}/settings:\010set" + - "tingsZ/2#/v2/{name=organizations/*}/sett" + - "ings:\010settingsZ)2\035/v2/{name=folders/*}/s" + - "ettings:\010settings\022\251\001\n\016CopyLogEntries\022(.g" + - "oogle.logging.v2.CopyLogEntriesRequest\032\035" + - ".google.longrunning.Operation\"N\312A0\n\026Copy" + - "LogEntriesResponse\022\026CopyLogEntriesMetada" + - "ta\202\323\344\223\002\025\"\020/v2/entries:copy:\001*\032\337\001\312A\026loggi" + - "ng.googleapis.com\322A\302\001https://www.googlea" + - "pis.com/auth/cloud-platform,https://www." + - "googleapis.com/auth/cloud-platform.read-" + - "only,https://www.googleapis.com/auth/log" + - "ging.admin,https://www.googleapis.com/au" + - "th/logging.readB\326\003\n\025com.google.logging.v" + - "2B\022LoggingConfigProtoP\001Z5cloud.google.co" + - "m/go/logging/apiv2/loggingpb;loggingpb\370\001" + - "\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Clo" + - "ud\\Logging\\V2\352\002\032Google::Cloud::Logging::" + - "V2\352A`\n+logging.googleapis.com/Organizati" + - "onLocation\0221organizations/{organization}" + - "/locations/{location}\352AN\n%logging.google" + - "apis.com/FolderLocation\022%folders/{folder" + - "}/locations/{location}\352Ag\n-logging.googl" + - "eapis.com/BillingAccountLocation\0226billin" + - "gAccounts/{billing_account}/locations/{l" + - "ocation}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_logging_v2_IndexConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_logging_v2_IndexConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_IndexConfig_descriptor, - new java.lang.String[] { "FieldPath", "Type", "CreateTime", }); - internal_static_google_logging_v2_LogBucket_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_logging_v2_LogBucket_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogBucket_descriptor, - new java.lang.String[] { "Name", "Description", "CreateTime", "UpdateTime", "RetentionDays", "Locked", "LifecycleState", "AnalyticsEnabled", "RestrictedFields", "IndexConfigs", "CmekSettings", }); - internal_static_google_logging_v2_LogView_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_logging_v2_LogView_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogView_descriptor, - new java.lang.String[] { "Name", "Description", "CreateTime", "UpdateTime", "Filter", }); - internal_static_google_logging_v2_LogSink_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_logging_v2_LogSink_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogSink_descriptor, - new java.lang.String[] { "Name", "Destination", "Filter", "Description", "Disabled", "Exclusions", "OutputVersionFormat", "WriterIdentity", "IncludeChildren", "BigqueryOptions", "CreateTime", "UpdateTime", "Options", }); - internal_static_google_logging_v2_BigQueryDataset_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_BigQueryDataset_descriptor, - new java.lang.String[] { "DatasetId", }); - internal_static_google_logging_v2_Link_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_logging_v2_Link_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_Link_descriptor, - new java.lang.String[] { "Name", "Description", "CreateTime", "LifecycleState", "BigqueryDataset", }); - internal_static_google_logging_v2_BigQueryOptions_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_BigQueryOptions_descriptor, - new java.lang.String[] { "UsePartitionedTables", "UsesTimestampColumnPartitioning", }); - internal_static_google_logging_v2_ListBucketsRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListBucketsRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_logging_v2_ListBucketsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListBucketsResponse_descriptor, - new java.lang.String[] { "Buckets", "NextPageToken", }); - internal_static_google_logging_v2_CreateBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CreateBucketRequest_descriptor, - new java.lang.String[] { "Parent", "BucketId", "Bucket", }); - internal_static_google_logging_v2_UpdateBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UpdateBucketRequest_descriptor, - new java.lang.String[] { "Name", "Bucket", "UpdateMask", }); - internal_static_google_logging_v2_GetBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetBucketRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_logging_v2_DeleteBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_DeleteBucketRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_logging_v2_UndeleteBucketRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UndeleteBucketRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_logging_v2_ListViewsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListViewsRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_logging_v2_ListViewsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListViewsResponse_descriptor, - new java.lang.String[] { "Views", "NextPageToken", }); - internal_static_google_logging_v2_CreateViewRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CreateViewRequest_descriptor, - new java.lang.String[] { "Parent", "ViewId", "View", }); - internal_static_google_logging_v2_UpdateViewRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UpdateViewRequest_descriptor, - new java.lang.String[] { "Name", "View", "UpdateMask", }); - internal_static_google_logging_v2_GetViewRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetViewRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_logging_v2_DeleteViewRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_DeleteViewRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_logging_v2_ListSinksRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListSinksRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_logging_v2_ListSinksResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListSinksResponse_descriptor, - new java.lang.String[] { "Sinks", "NextPageToken", }); - internal_static_google_logging_v2_GetSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetSinkRequest_descriptor, - new java.lang.String[] { "SinkName", }); - internal_static_google_logging_v2_CreateSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CreateSinkRequest_descriptor, - new java.lang.String[] { "Parent", "Sink", "UniqueWriterIdentity", }); - internal_static_google_logging_v2_UpdateSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UpdateSinkRequest_descriptor, - new java.lang.String[] { "SinkName", "Sink", "UniqueWriterIdentity", "UpdateMask", }); - internal_static_google_logging_v2_DeleteSinkRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_DeleteSinkRequest_descriptor, - new java.lang.String[] { "SinkName", }); - internal_static_google_logging_v2_CreateLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CreateLinkRequest_descriptor, - new java.lang.String[] { "Parent", "Link", "LinkId", }); - internal_static_google_logging_v2_DeleteLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_DeleteLinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_logging_v2_ListLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLinksRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_logging_v2_ListLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLinksResponse_descriptor, - new java.lang.String[] { "Links", "NextPageToken", }); - internal_static_google_logging_v2_GetLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetLinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_logging_v2_LogExclusion_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_logging_v2_LogExclusion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogExclusion_descriptor, - new java.lang.String[] { "Name", "Description", "Filter", "Disabled", "CreateTime", "UpdateTime", }); - internal_static_google_logging_v2_ListExclusionsRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListExclusionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_logging_v2_ListExclusionsResponse_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListExclusionsResponse_descriptor, - new java.lang.String[] { "Exclusions", "NextPageToken", }); - internal_static_google_logging_v2_GetExclusionRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetExclusionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_logging_v2_CreateExclusionRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CreateExclusionRequest_descriptor, - new java.lang.String[] { "Parent", "Exclusion", }); - internal_static_google_logging_v2_UpdateExclusionRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UpdateExclusionRequest_descriptor, - new java.lang.String[] { "Name", "Exclusion", "UpdateMask", }); - internal_static_google_logging_v2_DeleteExclusionRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_DeleteExclusionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor, - new java.lang.String[] { "Name", "CmekSettings", "UpdateMask", }); - internal_static_google_logging_v2_CmekSettings_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_logging_v2_CmekSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CmekSettings_descriptor, - new java.lang.String[] { "Name", "KmsKeyName", "KmsKeyVersionName", "ServiceAccountId", }); - internal_static_google_logging_v2_GetSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetSettingsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_logging_v2_UpdateSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UpdateSettingsRequest_descriptor, - new java.lang.String[] { "Name", "Settings", "UpdateMask", }); - internal_static_google_logging_v2_Settings_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_logging_v2_Settings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_Settings_descriptor, - new java.lang.String[] { "Name", "KmsKeyName", "KmsServiceAccountId", "StorageLocation", "DisableDefaultSink", }); - internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor, - new java.lang.String[] { "Name", "Filter", "Destination", }); - internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor, - new java.lang.String[] { "StartTime", "EndTime", "State", "CancellationRequested", "Request", "Progress", "WriterIdentity", }); - internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor, - new java.lang.String[] { "LogEntriesCopiedCount", }); - internal_static_google_logging_v2_BucketMetadata_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_BucketMetadata_descriptor, - new java.lang.String[] { "StartTime", "EndTime", "State", "CreateBucketRequest", "UpdateBucketRequest", "Request", }); - internal_static_google_logging_v2_LinkMetadata_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LinkMetadata_descriptor, - new java.lang.String[] { "StartTime", "EndTime", "State", "CreateLinkRequest", "DeleteLinkRequest", "Request", }); - internal_static_google_logging_v2_LocationMetadata_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LocationMetadata_descriptor, - new java.lang.String[] { "LogAnalyticsEnabled", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java deleted file mode 100644 index ae603a91c..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java +++ /dev/null @@ -1,224 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_metrics.proto - -// Protobuf Java Version: 3.25.3 -package com.google.logging.v2; - -public final class LoggingMetricsProto { - private LoggingMetricsProto() {} - 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_logging_v2_LogMetric_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogMetric_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_GetLogMetricRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'google/logging/v2/logging_metrics.prot" + - "o\022\021google.logging.v2\032\034google/api/annotat" + - "ions.proto\032\027google/api/client.proto\032\035goo" + - "gle/api/distribution.proto\032\037google/api/f" + - "ield_behavior.proto\032\027google/api/metric.p" + - "roto\032\031google/api/resource.proto\032\033google/" + - "protobuf/empty.proto\032\037google/protobuf/ti" + - "mestamp.proto\"\275\005\n\tLogMetric\022\021\n\004name\030\001 \001(" + - "\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006filt" + - "er\030\003 \001(\tB\003\340A\002\022\030\n\013bucket_name\030\r \001(\tB\003\340A\001\022" + - "\025\n\010disabled\030\014 \001(\010B\003\340A\001\022<\n\021metric_descrip" + - "tor\030\005 \001(\0132\034.google.api.MetricDescriptorB" + - "\003\340A\001\022\034\n\017value_extractor\030\006 \001(\tB\003\340A\001\022P\n\020la" + - "bel_extractors\030\007 \003(\01321.google.logging.v2" + - ".LogMetric.LabelExtractorsEntryB\003\340A\001\022C\n\016" + - "bucket_options\030\010 \001(\0132&.google.api.Distri" + - "bution.BucketOptionsB\003\340A\001\0224\n\013create_time" + - "\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + - "4\n\013update_time\030\n \001(\0132\032.google.protobuf.T" + - "imestampB\003\340A\003\022<\n\007version\030\004 \001(\0162\'.google." + - "logging.v2.LogMetric.ApiVersionB\002\030\001\0326\n\024L" + - "abelExtractorsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + - "e\030\002 \001(\t:\0028\001\"\034\n\nApiVersion\022\006\n\002V2\020\000\022\006\n\002V1\020" + - "\001:J\352AG\n logging.googleapis.com/LogMetric" + - "\022#projects/{project}/metrics/{metric}\"\215\001" + - "\n\025ListLogMetricsRequest\022C\n\006parent\030\001 \001(\tB" + - "3\340A\002\372A-\n+cloudresourcemanager.googleapis" + - ".com/Project\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n" + - "\tpage_size\030\003 \001(\005B\003\340A\001\"`\n\026ListLogMetricsR" + - "esponse\022-\n\007metrics\030\001 \003(\0132\034.google.loggin" + - "g.v2.LogMetric\022\027\n\017next_page_token\030\002 \001(\t\"" + - "T\n\023GetLogMetricRequest\022=\n\013metric_name\030\001 " + - "\001(\tB(\340A\002\372A\"\n logging.googleapis.com/LogM" + - "etric\"\205\001\n\026CreateLogMetricRequest\0228\n\006pare" + - "nt\030\001 \001(\tB(\340A\002\372A\"\022 logging.googleapis.com" + - "/LogMetric\0221\n\006metric\030\002 \001(\0132\034.google.logg" + - "ing.v2.LogMetricB\003\340A\002\"\212\001\n\026UpdateLogMetri" + - "cRequest\022=\n\013metric_name\030\001 \001(\tB(\340A\002\372A\"\n l" + - "ogging.googleapis.com/LogMetric\0221\n\006metri" + - "c\030\002 \001(\0132\034.google.logging.v2.LogMetricB\003\340" + - "A\002\"W\n\026DeleteLogMetricRequest\022=\n\013metric_n" + - "ame\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.co" + - "m/LogMetric2\256\010\n\020MetricsServiceV2\022\227\001\n\016Lis" + - "tLogMetrics\022(.google.logging.v2.ListLogM" + - "etricsRequest\032).google.logging.v2.ListLo" + - "gMetricsResponse\"0\332A\006parent\202\323\344\223\002!\022\037/v2/{" + - "parent=projects/*}/metrics\022\222\001\n\014GetLogMet" + - "ric\022&.google.logging.v2.GetLogMetricRequ" + - "est\032\034.google.logging.v2.LogMetric\"<\332A\013me" + - "tric_name\202\323\344\223\002(\022&/v2/{metric_name=projec" + - "ts/*/metrics/*}\022\233\001\n\017CreateLogMetric\022).go" + - "ogle.logging.v2.CreateLogMetricRequest\032\034" + - ".google.logging.v2.LogMetric\"?\332A\rparent," + - "metric\202\323\344\223\002)\"\037/v2/{parent=projects/*}/me" + - "trics:\006metric\022\247\001\n\017UpdateLogMetric\022).goog" + - "le.logging.v2.UpdateLogMetricRequest\032\034.g" + - "oogle.logging.v2.LogMetric\"K\332A\022metric_na" + - "me,metric\202\323\344\223\0020\032&/v2/{metric_name=projec" + - "ts/*/metrics/*}:\006metric\022\222\001\n\017DeleteLogMet" + - "ric\022).google.logging.v2.DeleteLogMetricR" + - "equest\032\026.google.protobuf.Empty\"<\332A\013metri" + - "c_name\202\323\344\223\002(*&/v2/{metric_name=projects/" + - "*/metrics/*}\032\215\002\312A\026logging.googleapis.com" + - "\322A\360\001https://www.googleapis.com/auth/clou" + - "d-platform,https://www.googleapis.com/au" + - "th/cloud-platform.read-only,https://www." + - "googleapis.com/auth/logging.admin,https:" + - "//www.googleapis.com/auth/logging.read,h" + - "ttps://www.googleapis.com/auth/logging.w" + - "riteB\271\001\n\025com.google.logging.v2B\023LoggingM" + - "etricsProtoP\001Z5cloud.google.com/go/loggi" + - "ng/apiv2/loggingpb;loggingpb\370\001\001\252\002\027Google" + - ".Cloud.Logging.V2\312\002\027Google\\Cloud\\Logging" + - "\\V2\352\002\032Google::Cloud::Logging::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.DistributionProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MetricProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_logging_v2_LogMetric_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_logging_v2_LogMetric_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogMetric_descriptor, - new java.lang.String[] { "Name", "Description", "Filter", "BucketName", "Disabled", "MetricDescriptor", "ValueExtractor", "LabelExtractors", "BucketOptions", "CreateTime", "UpdateTime", "Version", }); - internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor = - internal_static_google_logging_v2_LogMetric_descriptor.getNestedTypes().get(0); - internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_logging_v2_ListLogMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLogMetricsRequest_descriptor, - new java.lang.String[] { "Parent", "PageToken", "PageSize", }); - internal_static_google_logging_v2_ListLogMetricsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLogMetricsResponse_descriptor, - new java.lang.String[] { "Metrics", "NextPageToken", }); - internal_static_google_logging_v2_GetLogMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_GetLogMetricRequest_descriptor, - new java.lang.String[] { "MetricName", }); - internal_static_google_logging_v2_CreateLogMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_CreateLogMetricRequest_descriptor, - new java.lang.String[] { "Parent", "Metric", }); - internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor, - new java.lang.String[] { "MetricName", "Metric", }); - internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor, - new java.lang.String[] { "MetricName", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.DistributionProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MetricProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java deleted file mode 100644 index fb30894a2..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java +++ /dev/null @@ -1,333 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging.proto - -// Protobuf Java Version: 3.25.3 -package com.google.logging.v2; - -public final class LoggingProto { - private LoggingProto() {} - 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_logging_v2_DeleteLogRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLogsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_ListLogsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037google/logging/v2/logging.proto\022\021googl" + - "e.logging.v2\032\034google/api/annotations.pro" + - "to\032\027google/api/client.proto\032\037google/api/" + - "field_behavior.proto\032#google/api/monitor" + - "ed_resource.proto\032\031google/api/resource.p" + - "roto\032!google/logging/v2/log_entry.proto\032" + - "\036google/protobuf/duration.proto\032\033google/" + - "protobuf/empty.proto\032\027google/rpc/status." + - "proto\"H\n\020DeleteLogRequest\0224\n\010log_name\030\001 " + - "\001(\tB\"\340A\002\372A\034\n\032logging.googleapis.com/Log\"" + - "\346\002\n\026WriteLogEntriesRequest\0224\n\010log_name\030\001" + - " \001(\tB\"\340A\001\372A\034\n\032logging.googleapis.com/Log" + - "\0224\n\010resource\030\002 \001(\0132\035.google.api.Monitore" + - "dResourceB\003\340A\001\022J\n\006labels\030\003 \003(\01325.google." + - "logging.v2.WriteLogEntriesRequest.Labels" + - "EntryB\003\340A\001\0221\n\007entries\030\004 \003(\0132\033.google.log" + - "ging.v2.LogEntryB\003\340A\002\022\034\n\017partial_success" + - "\030\005 \001(\010B\003\340A\001\022\024\n\007dry_run\030\006 \001(\010B\003\340A\001\032-\n\013Lab" + - "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + - "\"\031\n\027WriteLogEntriesResponse\"\310\001\n\034WriteLog" + - "EntriesPartialErrors\022]\n\020log_entry_errors" + - "\030\001 \003(\0132C.google.logging.v2.WriteLogEntri" + - "esPartialErrors.LogEntryErrorsEntry\032I\n\023L" + - "ogEntryErrorsEntry\022\013\n\003key\030\001 \001(\005\022!\n\005value" + - "\030\002 \001(\0132\022.google.rpc.Status:\0028\001\"\260\001\n\025ListL" + - "ogEntriesRequest\022:\n\016resource_names\030\010 \003(\t" + - "B\"\340A\002\372A\034\022\032logging.googleapis.com/Log\022\023\n\006" + - "filter\030\002 \001(\tB\003\340A\001\022\025\n\010order_by\030\003 \001(\tB\003\340A\001" + - "\022\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005" + - " \001(\tB\003\340A\001\"_\n\026ListLogEntriesResponse\022,\n\007e" + - "ntries\030\001 \003(\0132\033.google.logging.v2.LogEntr" + - "y\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\'ListMonito" + - "redResourceDescriptorsRequest\022\026\n\tpage_si" + - "ze\030\001 \001(\005B\003\340A\001\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\"\212" + - "\001\n(ListMonitoredResourceDescriptorsRespo" + - "nse\022E\n\024resource_descriptors\030\001 \003(\0132\'.goog" + - "le.api.MonitoredResourceDescriptor\022\027\n\017ne" + - "xt_page_token\030\002 \001(\t\"\262\001\n\017ListLogsRequest\022" + - "2\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032logging.googlea" + - "pis.com/Log\022:\n\016resource_names\030\010 \003(\tB\"\340A\001" + - "\372A\034\022\032logging.googleapis.com/Log\022\026\n\tpage_" + - "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" + - "\">\n\020ListLogsResponse\022\021\n\tlog_names\030\003 \003(\t\022" + - "\027\n\017next_page_token\030\002 \001(\t\"\200\001\n\025TailLogEntr" + - "iesRequest\022\033\n\016resource_names\030\001 \003(\tB\003\340A\002\022" + - "\023\n\006filter\030\002 \001(\tB\003\340A\001\0225\n\rbuffer_window\030\003 " + - "\001(\0132\031.google.protobuf.DurationB\003\340A\001\"\337\002\n\026" + - "TailLogEntriesResponse\022,\n\007entries\030\001 \003(\0132" + - "\033.google.logging.v2.LogEntry\022S\n\020suppress" + - "ion_info\030\002 \003(\01329.google.logging.v2.TailL" + - "ogEntriesResponse.SuppressionInfo\032\301\001\n\017Su" + - "ppressionInfo\022P\n\006reason\030\001 \001(\0162@.google.l" + - "ogging.v2.TailLogEntriesResponse.Suppres" + - "sionInfo.Reason\022\030\n\020suppressed_count\030\002 \001(" + - "\005\"B\n\006Reason\022\026\n\022REASON_UNSPECIFIED\020\000\022\016\n\nR" + - "ATE_LIMIT\020\001\022\020\n\014NOT_CONSUMED\020\0022\351\r\n\020Loggin" + - "gServiceV2\022\223\002\n\tDeleteLog\022#.google.loggin" + - "g.v2.DeleteLogRequest\032\026.google.protobuf." + - "Empty\"\310\001\332A\010log_name\202\323\344\223\002\266\001* /v2/{log_nam" + - "e=projects/*/logs/*}Z\033*\031/v2/{log_name=*/" + - "*/logs/*}Z\'*%/v2/{log_name=organizations" + - "/*/logs/*}Z!*\037/v2/{log_name=folders/*/lo" + - "gs/*}Z)*\'/v2/{log_name=billingAccounts/*" + - "/logs/*}\022\251\001\n\017WriteLogEntries\022).google.lo" + - "gging.v2.WriteLogEntriesRequest\032*.google" + - ".logging.v2.WriteLogEntriesResponse\"?\332A " + - "log_name,resource,labels,entries\202\323\344\223\002\026\"\021" + - "/v2/entries:write:\001*\022\243\001\n\016ListLogEntries\022" + - "(.google.logging.v2.ListLogEntriesReques" + - "t\032).google.logging.v2.ListLogEntriesResp" + - "onse\"<\332A\036resource_names,filter,order_by\202" + - "\323\344\223\002\025\"\020/v2/entries:list:\001*\022\305\001\n ListMonit" + - "oredResourceDescriptors\022:.google.logging" + - ".v2.ListMonitoredResourceDescriptorsRequ" + - "est\032;.google.logging.v2.ListMonitoredRes" + - "ourceDescriptorsResponse\"(\202\323\344\223\002\"\022 /v2/mo" + - "nitoredResourceDescriptors\022\213\004\n\010ListLogs\022" + - "\".google.logging.v2.ListLogsRequest\032#.go" + - "ogle.logging.v2.ListLogsResponse\"\265\003\332A\006pa" + - "rent\202\323\344\223\002\245\003\022\025/v2/{parent=*/*}/logsZ\036\022\034/v" + - "2/{parent=projects/*}/logsZ#\022!/v2/{paren" + - "t=organizations/*}/logsZ\035\022\033/v2/{parent=f" + - "olders/*}/logsZ%\022#/v2/{parent=billingAcc" + - "ounts/*}/logsZ<\022:/v2/{parent=projects/*/" + - "locations/*/buckets/*/views/*}/logsZA\022?/" + - "v2/{parent=organizations/*/locations/*/b" + - "uckets/*/views/*}/logsZ;\0229/v2/{parent=fo" + - "lders/*/locations/*/buckets/*/views/*}/l" + - "ogsZC\022A/v2/{parent=billingAccounts/*/loc" + - "ations/*/buckets/*/views/*}/logs\022\206\001\n\016Tai" + - "lLogEntries\022(.google.logging.v2.TailLogE" + - "ntriesRequest\032).google.logging.v2.TailLo" + - "gEntriesResponse\"\033\202\323\344\223\002\025\"\020/v2/entries:ta" + - "il:\001*(\0010\001\032\215\002\312A\026logging.googleapis.com\322A\360" + - "\001https://www.googleapis.com/auth/cloud-p" + - "latform,https://www.googleapis.com/auth/" + - "cloud-platform.read-only,https://www.goo" + - "gleapis.com/auth/logging.admin,https://w" + - "ww.googleapis.com/auth/logging.read,http" + - "s://www.googleapis.com/auth/logging.writ" + - "eB\262\001\n\025com.google.logging.v2B\014LoggingProt" + - "oP\001Z5cloud.google.com/go/logging/apiv2/l" + - "oggingpb;loggingpb\370\001\001\252\002\027Google.Cloud.Log" + - "ging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032Goog" + - "le::Cloud::Logging::V2b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.MonitoredResourceProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.logging.v2.LogEntryProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_logging_v2_DeleteLogRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_DeleteLogRequest_descriptor, - new java.lang.String[] { "LogName", }); - internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor, - new java.lang.String[] { "LogName", "Resource", "Labels", "Entries", "PartialSuccess", "DryRun", }); - internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor = - internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor.getNestedTypes().get(0); - internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor, - new java.lang.String[] { "LogEntryErrors", }); - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor = - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor.getNestedTypes().get(0); - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_logging_v2_ListLogEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLogEntriesRequest_descriptor, - new java.lang.String[] { "ResourceNames", "Filter", "OrderBy", "PageSize", "PageToken", }); - internal_static_google_logging_v2_ListLogEntriesResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLogEntriesResponse_descriptor, - new java.lang.String[] { "Entries", "NextPageToken", }); - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor, - new java.lang.String[] { "PageSize", "PageToken", }); - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor, - new java.lang.String[] { "ResourceDescriptors", "NextPageToken", }); - internal_static_google_logging_v2_ListLogsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLogsRequest_descriptor, - new java.lang.String[] { "Parent", "ResourceNames", "PageSize", "PageToken", }); - internal_static_google_logging_v2_ListLogsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_ListLogsResponse_descriptor, - new java.lang.String[] { "LogNames", "NextPageToken", }); - internal_static_google_logging_v2_TailLogEntriesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_TailLogEntriesRequest_descriptor, - new java.lang.String[] { "ResourceNames", "Filter", "BufferWindow", }); - internal_static_google_logging_v2_TailLogEntriesResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_TailLogEntriesResponse_descriptor, - new java.lang.String[] { "Entries", "SuppressionInfo", }); - internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor = - internal_static_google_logging_v2_TailLogEntriesResponse_descriptor.getNestedTypes().get(0); - internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor, - new java.lang.String[] { "Reason", "SuppressedCount", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.MonitoredResourceProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.logging.v2.LogEntryProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java deleted file mode 100644 index 0124b9869..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging.proto - -// Protobuf Java Version: 3.25.3 -package com.google.logging.v2; - -public interface WriteLogEntriesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.logging.v2.WriteLogEntriesResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java index 1416d4887..adecb4b26 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.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/logging/v2/logging_config.proto @@ -5,49 +20,56 @@ package com.google.logging.v2; /** + * + * *
  * Describes a BigQuery dataset that was created by a link.
  * 
* * Protobuf type {@code google.logging.v2.BigQueryDataset} */ -public final class BigQueryDataset extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BigQueryDataset extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.BigQueryDataset) BigQueryDatasetOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryDataset.newBuilder() to construct. private BigQueryDataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BigQueryDataset() { datasetId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQueryDataset(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryDataset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryDataset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.BigQueryDataset.class, com.google.logging.v2.BigQueryDataset.Builder.class); + com.google.logging.v2.BigQueryDataset.class, + com.google.logging.v2.BigQueryDataset.Builder.class); } public static final int DATASET_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object datasetId_ = ""; /** + * + * *
    * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
    * will match the ID of the link, so the link must match the naming
@@ -59,6 +81,7 @@ protected java.lang.Object newInstance(
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The datasetId. */ @java.lang.Override @@ -67,14 +90,15 @@ public java.lang.String getDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; } } /** + * + * *
    * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
    * will match the ID of the link, so the link must match the naming
@@ -86,16 +110,15 @@ public java.lang.String getDatasetId() {
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetIdBytes() { + public com.google.protobuf.ByteString getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetId_ = b; return b; } else { @@ -104,6 +127,7 @@ public java.lang.String getDatasetId() { } 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(datasetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); } @@ -140,15 +163,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.BigQueryDataset)) { return super.equals(obj); } com.google.logging.v2.BigQueryDataset other = (com.google.logging.v2.BigQueryDataset) obj; - if (!getDatasetId() - .equals(other.getDatasetId())) return false; + if (!getDatasetId().equals(other.getDatasetId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -167,132 +189,135 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.BigQueryDataset parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.BigQueryDataset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.BigQueryDataset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.BigQueryDataset parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.BigQueryDataset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.BigQueryDataset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.BigQueryDataset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.BigQueryDataset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.BigQueryDataset 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.logging.v2.BigQueryDataset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.BigQueryDataset parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.BigQueryDataset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.BigQueryDataset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.BigQueryDataset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.BigQueryDataset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes a BigQuery dataset that was created by a link.
    * 
* * Protobuf type {@code google.logging.v2.BigQueryDataset} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.BigQueryDataset) com.google.logging.v2.BigQueryDatasetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryDataset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryDataset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.BigQueryDataset.class, com.google.logging.v2.BigQueryDataset.Builder.class); + com.google.logging.v2.BigQueryDataset.class, + com.google.logging.v2.BigQueryDataset.Builder.class); } // Construct using com.google.logging.v2.BigQueryDataset.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 +327,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryDataset_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryDataset_descriptor; } @java.lang.Override @@ -323,8 +348,11 @@ public com.google.logging.v2.BigQueryDataset build() { @java.lang.Override public com.google.logging.v2.BigQueryDataset buildPartial() { - com.google.logging.v2.BigQueryDataset result = new com.google.logging.v2.BigQueryDataset(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.BigQueryDataset result = + new com.google.logging.v2.BigQueryDataset(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -340,38 +368,39 @@ private void buildPartial0(com.google.logging.v2.BigQueryDataset 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.logging.v2.BigQueryDataset) { - return mergeFrom((com.google.logging.v2.BigQueryDataset)other); + return mergeFrom((com.google.logging.v2.BigQueryDataset) other); } else { super.mergeFrom(other); return this; @@ -411,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - datasetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + datasetId_ = 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 +462,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object datasetId_ = ""; /** + * + * *
      * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
      * will match the ID of the link, so the link must match the naming
@@ -446,13 +480,13 @@ public Builder mergeFrom(
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; @@ -461,6 +495,8 @@ public java.lang.String getDatasetId() { } } /** + * + * *
      * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
      * will match the ID of the link, so the link must match the naming
@@ -472,15 +508,14 @@ public java.lang.String getDatasetId() {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString - getDatasetIdBytes() { + public com.google.protobuf.ByteString getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetId_ = b; return b; } else { @@ -488,6 +523,8 @@ public java.lang.String getDatasetId() { } } /** + * + * *
      * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
      * will match the ID of the link, so the link must match the naming
@@ -499,18 +536,22 @@ public java.lang.String getDatasetId() {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatasetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } datasetId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
      * will match the ID of the link, so the link must match the naming
@@ -522,6 +563,7 @@ public Builder setDatasetId(
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDatasetId() { @@ -531,6 +573,8 @@ public Builder clearDatasetId() { return this; } /** + * + * *
      * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
      * will match the ID of the link, so the link must match the naming
@@ -542,21 +586,23 @@ public Builder clearDatasetId() {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); datasetId_ = 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 +612,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.BigQueryDataset) } // @@protoc_insertion_point(class_scope:google.logging.v2.BigQueryDataset) private static final com.google.logging.v2.BigQueryDataset DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.BigQueryDataset(); } @@ -580,27 +626,27 @@ public static com.google.logging.v2.BigQueryDataset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDataset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +661,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.BigQueryDataset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java index 257912103..98d983dd7 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface BigQueryDatasetOrBuilder extends +public interface BigQueryDatasetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.BigQueryDataset) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
    * will match the ID of the link, so the link must match the naming
@@ -20,10 +38,13 @@ public interface BigQueryDatasetOrBuilder extends
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The datasetId. */ java.lang.String getDatasetId(); /** + * + * *
    * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
    * will match the ID of the link, so the link must match the naming
@@ -35,8 +56,8 @@ public interface BigQueryDatasetOrBuilder extends
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for datasetId. */ - com.google.protobuf.ByteString - getDatasetIdBytes(); + com.google.protobuf.ByteString getDatasetIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java index da5643651..2ba3069b7 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.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/logging/v2/logging_config.proto @@ -5,47 +20,52 @@ package com.google.logging.v2; /** + * + * *
  * Options that change functionality of a sink exporting data to BigQuery.
  * 
* * Protobuf type {@code google.logging.v2.BigQueryOptions} */ -public final class BigQueryOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BigQueryOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.BigQueryOptions) BigQueryOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryOptions.newBuilder() to construct. private BigQueryOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BigQueryOptions() { - } + + private BigQueryOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQueryOptions(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.BigQueryOptions.class, com.google.logging.v2.BigQueryOptions.Builder.class); + com.google.logging.v2.BigQueryOptions.class, + com.google.logging.v2.BigQueryOptions.Builder.class); } public static final int USE_PARTITIONED_TABLES_FIELD_NUMBER = 1; private boolean usePartitionedTables_ = false; /** + * + * *
    * Optional. Whether to use [BigQuery's partition
    * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -58,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The usePartitionedTables. */ @java.lang.Override @@ -68,6 +89,8 @@ public boolean getUsePartitionedTables() { public static final int USES_TIMESTAMP_COLUMN_PARTITIONING_FIELD_NUMBER = 3; private boolean usesTimestampColumnPartitioning_ = false; /** + * + * *
    * Output only. True if new timestamp column based partitioning is in use,
    * false if legacy ingestion-time partitioning is in use.
@@ -78,7 +101,9 @@ public boolean getUsePartitionedTables() {
    * this field set to false.
    * 
* - * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The usesTimestampColumnPartitioning. */ @java.lang.Override @@ -87,6 +112,7 @@ public boolean getUsesTimestampColumnPartitioning() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +124,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 (usePartitionedTables_ != false) { output.writeBool(1, usePartitionedTables_); } @@ -116,12 +141,12 @@ public int getSerializedSize() { size = 0; if (usePartitionedTables_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, usePartitionedTables_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, usePartitionedTables_); } if (usesTimestampColumnPartitioning_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, usesTimestampColumnPartitioning_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, usesTimestampColumnPartitioning_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -131,17 +156,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.BigQueryOptions)) { return super.equals(obj); } com.google.logging.v2.BigQueryOptions other = (com.google.logging.v2.BigQueryOptions) obj; - if (getUsePartitionedTables() - != other.getUsePartitionedTables()) return false; - if (getUsesTimestampColumnPartitioning() - != other.getUsesTimestampColumnPartitioning()) return false; + if (getUsePartitionedTables() != other.getUsePartitionedTables()) return false; + if (getUsesTimestampColumnPartitioning() != other.getUsesTimestampColumnPartitioning()) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -154,142 +178,145 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + USE_PARTITIONED_TABLES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUsePartitionedTables()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsePartitionedTables()); hash = (37 * hash) + USES_TIMESTAMP_COLUMN_PARTITIONING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUsesTimestampColumnPartitioning()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getUsesTimestampColumnPartitioning()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.logging.v2.BigQueryOptions parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.BigQueryOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.BigQueryOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.BigQueryOptions parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.BigQueryOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.BigQueryOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.BigQueryOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.BigQueryOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.BigQueryOptions 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.logging.v2.BigQueryOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.BigQueryOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.BigQueryOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.BigQueryOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.BigQueryOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.BigQueryOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Options that change functionality of a sink exporting data to BigQuery.
    * 
* * Protobuf type {@code google.logging.v2.BigQueryOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.BigQueryOptions) com.google.logging.v2.BigQueryOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.BigQueryOptions.class, com.google.logging.v2.BigQueryOptions.Builder.class); + com.google.logging.v2.BigQueryOptions.class, + com.google.logging.v2.BigQueryOptions.Builder.class); } // Construct using com.google.logging.v2.BigQueryOptions.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(); @@ -300,9 +327,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BigQueryOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryOptions_descriptor; } @java.lang.Override @@ -321,8 +348,11 @@ public com.google.logging.v2.BigQueryOptions build() { @java.lang.Override public com.google.logging.v2.BigQueryOptions buildPartial() { - com.google.logging.v2.BigQueryOptions result = new com.google.logging.v2.BigQueryOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.BigQueryOptions result = + new com.google.logging.v2.BigQueryOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -341,38 +371,39 @@ private void buildPartial0(com.google.logging.v2.BigQueryOptions 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.logging.v2.BigQueryOptions) { - return mergeFrom((com.google.logging.v2.BigQueryOptions)other); + return mergeFrom((com.google.logging.v2.BigQueryOptions) other); } else { super.mergeFrom(other); return this; @@ -413,22 +444,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - usePartitionedTables_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 24: { - usesTimestampColumnPartitioning_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + usePartitionedTables_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: + { + usesTimestampColumnPartitioning_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -438,10 +472,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean usePartitionedTables_ ; + private boolean usePartitionedTables_; /** + * + * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -454,6 +491,7 @@ public Builder mergeFrom(
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The usePartitionedTables. */ @java.lang.Override @@ -461,6 +499,8 @@ public boolean getUsePartitionedTables() { return usePartitionedTables_; } /** + * + * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -473,6 +513,7 @@ public boolean getUsePartitionedTables() {
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The usePartitionedTables to set. * @return This builder for chaining. */ @@ -484,6 +525,8 @@ public Builder setUsePartitionedTables(boolean value) { return this; } /** + * + * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -496,6 +539,7 @@ public Builder setUsePartitionedTables(boolean value) {
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUsePartitionedTables() { @@ -505,8 +549,10 @@ public Builder clearUsePartitionedTables() { return this; } - private boolean usesTimestampColumnPartitioning_ ; + private boolean usesTimestampColumnPartitioning_; /** + * + * *
      * Output only. True if new timestamp column based partitioning is in use,
      * false if legacy ingestion-time partitioning is in use.
@@ -517,7 +563,10 @@ public Builder clearUsePartitionedTables() {
      * this field set to false.
      * 
* - * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The usesTimestampColumnPartitioning. */ @java.lang.Override @@ -525,6 +574,8 @@ public boolean getUsesTimestampColumnPartitioning() { return usesTimestampColumnPartitioning_; } /** + * + * *
      * Output only. True if new timestamp column based partitioning is in use,
      * false if legacy ingestion-time partitioning is in use.
@@ -535,7 +586,10 @@ public boolean getUsesTimestampColumnPartitioning() {
      * this field set to false.
      * 
* - * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The usesTimestampColumnPartitioning to set. * @return This builder for chaining. */ @@ -547,6 +601,8 @@ public Builder setUsesTimestampColumnPartitioning(boolean value) { return this; } /** + * + * *
      * Output only. True if new timestamp column based partitioning is in use,
      * false if legacy ingestion-time partitioning is in use.
@@ -557,7 +613,10 @@ public Builder setUsesTimestampColumnPartitioning(boolean value) {
      * this field set to false.
      * 
* - * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearUsesTimestampColumnPartitioning() { @@ -566,9 +625,9 @@ public Builder clearUsesTimestampColumnPartitioning() { 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); } @@ -578,12 +637,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.BigQueryOptions) } // @@protoc_insertion_point(class_scope:google.logging.v2.BigQueryOptions) private static final com.google.logging.v2.BigQueryOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.BigQueryOptions(); } @@ -592,27 +651,27 @@ public static com.google.logging.v2.BigQueryOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -627,6 +686,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.BigQueryOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java index 006843d84..702dc559b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface BigQueryOptionsOrBuilder extends +public interface BigQueryOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.BigQueryOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Whether to use [BigQuery's partition
    * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -21,11 +39,14 @@ public interface BigQueryOptionsOrBuilder extends
    * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The usePartitionedTables. */ boolean getUsePartitionedTables(); /** + * + * *
    * Output only. True if new timestamp column based partitioning is in use,
    * false if legacy ingestion-time partitioning is in use.
@@ -36,7 +57,9 @@ public interface BigQueryOptionsOrBuilder extends
    * this field set to false.
    * 
* - * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The usesTimestampColumnPartitioning. */ boolean getUsesTimestampColumnPartitioning(); diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java index 0811e91f2..7a244de69 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.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/logging/v2/logging_config.proto @@ -5,56 +20,64 @@ package com.google.logging.v2; /** + * + * *
  * Metadata for LongRunningUpdateBucket Operations.
  * 
* * Protobuf type {@code google.logging.v2.BucketMetadata} */ -public final class BucketMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BucketMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.BucketMetadata) BucketMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BucketMetadata.newBuilder() to construct. private BucketMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BucketMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BucketMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BucketMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BucketMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.BucketMetadata.class, com.google.logging.v2.BucketMetadata.Builder.class); + com.google.logging.v2.BucketMetadata.class, + com.google.logging.v2.BucketMetadata.Builder.class); } private int bitField0_; private int requestCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object request_; + public enum RequestCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CREATE_BUCKET_REQUEST(4), UPDATE_BUCKET_REQUEST(5), REQUEST_NOT_SET(0); private final int value; + private RequestCase(int value) { this.value = value; } @@ -70,31 +93,37 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 4: return CREATE_BUCKET_REQUEST; - case 5: return UPDATE_BUCKET_REQUEST; - case 0: return REQUEST_NOT_SET; - default: return null; + case 4: + return CREATE_BUCKET_REQUEST; + case 5: + return UPDATE_BUCKET_REQUEST; + case 0: + return REQUEST_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -102,11 +131,14 @@ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -114,6 +146,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The create time of an operation.
    * 
@@ -128,11 +162,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -140,11 +177,14 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -152,6 +192,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The end time of an operation.
    * 
@@ -166,36 +208,48 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 3; private int state_ = 0; /** + * + * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; + * * @return The state. */ - @java.lang.Override public com.google.logging.v2.OperationState getState() { - com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.forNumber(state_); + @java.lang.Override + public com.google.logging.v2.OperationState getState() { + com.google.logging.v2.OperationState result = + com.google.logging.v2.OperationState.forNumber(state_); return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; } public static final int CREATE_BUCKET_REQUEST_FIELD_NUMBER = 4; /** + * + * *
    * LongRunningCreateBucket RPC request.
    * 
* * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + * * @return Whether the createBucketRequest field is set. */ @java.lang.Override @@ -203,21 +257,26 @@ public boolean hasCreateBucketRequest() { return requestCase_ == 4; } /** + * + * *
    * LongRunningCreateBucket RPC request.
    * 
* * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + * * @return The createBucketRequest. */ @java.lang.Override public com.google.logging.v2.CreateBucketRequest getCreateBucketRequest() { if (requestCase_ == 4) { - return (com.google.logging.v2.CreateBucketRequest) request_; + return (com.google.logging.v2.CreateBucketRequest) request_; } return com.google.logging.v2.CreateBucketRequest.getDefaultInstance(); } /** + * + * *
    * LongRunningCreateBucket RPC request.
    * 
@@ -227,18 +286,21 @@ public com.google.logging.v2.CreateBucketRequest getCreateBucketRequest() { @java.lang.Override public com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequestOrBuilder() { if (requestCase_ == 4) { - return (com.google.logging.v2.CreateBucketRequest) request_; + return (com.google.logging.v2.CreateBucketRequest) request_; } return com.google.logging.v2.CreateBucketRequest.getDefaultInstance(); } public static final int UPDATE_BUCKET_REQUEST_FIELD_NUMBER = 5; /** + * + * *
    * LongRunningUpdateBucket RPC request.
    * 
* * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + * * @return Whether the updateBucketRequest field is set. */ @java.lang.Override @@ -246,21 +308,26 @@ public boolean hasUpdateBucketRequest() { return requestCase_ == 5; } /** + * + * *
    * LongRunningUpdateBucket RPC request.
    * 
* * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + * * @return The updateBucketRequest. */ @java.lang.Override public com.google.logging.v2.UpdateBucketRequest getUpdateBucketRequest() { if (requestCase_ == 5) { - return (com.google.logging.v2.UpdateBucketRequest) request_; + return (com.google.logging.v2.UpdateBucketRequest) request_; } return com.google.logging.v2.UpdateBucketRequest.getDefaultInstance(); } /** + * + * *
    * LongRunningUpdateBucket RPC request.
    * 
@@ -270,12 +337,13 @@ public com.google.logging.v2.UpdateBucketRequest getUpdateBucketRequest() { @java.lang.Override public com.google.logging.v2.UpdateBucketRequestOrBuilder getUpdateBucketRequestOrBuilder() { if (requestCase_ == 5) { - return (com.google.logging.v2.UpdateBucketRequest) request_; + return (com.google.logging.v2.UpdateBucketRequest) request_; } return com.google.logging.v2.UpdateBucketRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -287,8 +355,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, getStartTime()); } @@ -314,24 +381,23 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (state_ != com.google.logging.v2.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (requestCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.logging.v2.CreateBucketRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.logging.v2.CreateBucketRequest) request_); } if (requestCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.logging.v2.UpdateBucketRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.logging.v2.UpdateBucketRequest) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -341,7 +407,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.BucketMetadata)) { return super.equals(obj); @@ -350,24 +416,20 @@ public boolean equals(final java.lang.Object obj) { 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 (state_ != other.state_) return false; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 4: - if (!getCreateBucketRequest() - .equals(other.getCreateBucketRequest())) return false; + if (!getCreateBucketRequest().equals(other.getCreateBucketRequest())) return false; break; case 5: - if (!getUpdateBucketRequest() - .equals(other.getUpdateBucketRequest())) return false; + if (!getUpdateBucketRequest().equals(other.getUpdateBucketRequest())) return false; break; case 0: default: @@ -410,120 +472,126 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.BucketMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.BucketMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.BucketMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.BucketMetadata parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.BucketMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.BucketMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.BucketMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.BucketMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.BucketMetadata 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.logging.v2.BucketMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.BucketMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.BucketMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.BucketMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.BucketMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.BucketMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Metadata for LongRunningUpdateBucket Operations.
    * 
* * Protobuf type {@code google.logging.v2.BucketMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.BucketMetadata) com.google.logging.v2.BucketMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BucketMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BucketMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.BucketMetadata.class, com.google.logging.v2.BucketMetadata.Builder.class); + com.google.logging.v2.BucketMetadata.class, + com.google.logging.v2.BucketMetadata.Builder.class); } // Construct using com.google.logging.v2.BucketMetadata.newBuilder() @@ -531,18 +599,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) { getStartTimeFieldBuilder(); getEndTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +638,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_BucketMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BucketMetadata_descriptor; } @java.lang.Override @@ -592,7 +660,9 @@ public com.google.logging.v2.BucketMetadata build() { @java.lang.Override public com.google.logging.v2.BucketMetadata buildPartial() { com.google.logging.v2.BucketMetadata result = new com.google.logging.v2.BucketMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -602,15 +672,11 @@ private void buildPartial0(com.google.logging.v2.BucketMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -622,12 +688,10 @@ private void buildPartial0(com.google.logging.v2.BucketMetadata result) { private void buildPartialOneofs(com.google.logging.v2.BucketMetadata result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 4 && - createBucketRequestBuilder_ != null) { + if (requestCase_ == 4 && createBucketRequestBuilder_ != null) { result.request_ = createBucketRequestBuilder_.build(); } - if (requestCase_ == 5 && - updateBucketRequestBuilder_ != null) { + if (requestCase_ == 5 && updateBucketRequestBuilder_ != null) { result.request_ = updateBucketRequestBuilder_.build(); } } @@ -636,38 +700,39 @@ private void buildPartialOneofs(com.google.logging.v2.BucketMetadata 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.logging.v2.BucketMetadata) { - return mergeFrom((com.google.logging.v2.BucketMetadata)other); + return mergeFrom((com.google.logging.v2.BucketMetadata) other); } else { super.mergeFrom(other); return this; @@ -686,17 +751,20 @@ public Builder mergeFrom(com.google.logging.v2.BucketMetadata other) { setStateValue(other.getStateValue()); } switch (other.getRequestCase()) { - case CREATE_BUCKET_REQUEST: { - mergeCreateBucketRequest(other.getCreateBucketRequest()); - break; - } - case UPDATE_BUCKET_REQUEST: { - mergeUpdateBucketRequest(other.getUpdateBucketRequest()); - break; - } - case REQUEST_NOT_SET: { - break; - } + case CREATE_BUCKET_REQUEST: + { + mergeCreateBucketRequest(other.getCreateBucketRequest()); + break; + } + case UPDATE_BUCKET_REQUEST: + { + mergeUpdateBucketRequest(other.getUpdateBucketRequest()); + break; + } + case REQUEST_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -724,45 +792,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - state_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getCreateBucketRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getUpdateBucketRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 5; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getCreateBucketRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getUpdateBucketRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -772,12 +840,12 @@ public Builder mergeFrom( } // finally return this; } + private int requestCase_ = 0; private java.lang.Object request_; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public Builder clearRequest() { @@ -791,24 +859,33 @@ public Builder clearRequest() { 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_; /** + * + * *
      * The create time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The create time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -819,6 +896,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The create time of an operation.
      * 
@@ -839,14 +918,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The create time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -857,6 +937,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -865,9 +947,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -882,6 +964,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -899,6 +983,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -911,6 +997,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The create time of an operation.
      * 
@@ -921,11 +1009,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * The create time of an operation.
      * 
@@ -933,14 +1022,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -948,24 +1040,33 @@ 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_; /** + * + * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -976,6 +1077,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The end time of an operation.
      * 
@@ -996,14 +1099,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1014,6 +1118,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1022,9 +1128,9 @@ public Builder setEndTime( */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1039,6 +1145,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1056,6 +1164,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1068,6 +1178,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The end time of an operation.
      * 
@@ -1078,11 +1190,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * The end time of an operation.
      * 
@@ -1090,14 +1203,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1105,22 +1221,29 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1131,24 +1254,31 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @return The state. */ @java.lang.Override public com.google.logging.v2.OperationState getState() { - com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.forNumber(state_); + com.google.logging.v2.OperationState result = + com.google.logging.v2.OperationState.forNumber(state_); return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; } /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1162,11 +1292,14 @@ public Builder setState(com.google.logging.v2.OperationState value) { return this; } /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @return This builder for chaining. */ public Builder clearState() { @@ -1177,13 +1310,19 @@ public Builder clearState() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.CreateBucketRequest.Builder, com.google.logging.v2.CreateBucketRequestOrBuilder> createBucketRequestBuilder_; + com.google.logging.v2.CreateBucketRequest, + com.google.logging.v2.CreateBucketRequest.Builder, + com.google.logging.v2.CreateBucketRequestOrBuilder> + createBucketRequestBuilder_; /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
* * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + * * @return Whether the createBucketRequest field is set. */ @java.lang.Override @@ -1191,11 +1330,14 @@ public boolean hasCreateBucketRequest() { return requestCase_ == 4; } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
* * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + * * @return The createBucketRequest. */ @java.lang.Override @@ -1213,6 +1355,8 @@ public com.google.logging.v2.CreateBucketRequest getCreateBucketRequest() { } } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1233,6 +1377,8 @@ public Builder setCreateBucketRequest(com.google.logging.v2.CreateBucketRequest return this; } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1251,6 +1397,8 @@ public Builder setCreateBucketRequest( return this; } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1259,10 +1407,13 @@ public Builder setCreateBucketRequest( */ public Builder mergeCreateBucketRequest(com.google.logging.v2.CreateBucketRequest value) { if (createBucketRequestBuilder_ == null) { - if (requestCase_ == 4 && - request_ != com.google.logging.v2.CreateBucketRequest.getDefaultInstance()) { - request_ = com.google.logging.v2.CreateBucketRequest.newBuilder((com.google.logging.v2.CreateBucketRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 4 + && request_ != com.google.logging.v2.CreateBucketRequest.getDefaultInstance()) { + request_ = + com.google.logging.v2.CreateBucketRequest.newBuilder( + (com.google.logging.v2.CreateBucketRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -1278,6 +1429,8 @@ public Builder mergeCreateBucketRequest(com.google.logging.v2.CreateBucketReques return this; } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1301,6 +1454,8 @@ public Builder clearCreateBucketRequest() { return this; } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1311,6 +1466,8 @@ public com.google.logging.v2.CreateBucketRequest.Builder getCreateBucketRequestB return getCreateBucketRequestFieldBuilder().getBuilder(); } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1329,6 +1486,8 @@ public com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequest } } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1336,14 +1495,19 @@ public com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequest * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.CreateBucketRequest.Builder, com.google.logging.v2.CreateBucketRequestOrBuilder> + com.google.logging.v2.CreateBucketRequest, + com.google.logging.v2.CreateBucketRequest.Builder, + com.google.logging.v2.CreateBucketRequestOrBuilder> getCreateBucketRequestFieldBuilder() { if (createBucketRequestBuilder_ == null) { if (!(requestCase_ == 4)) { request_ = com.google.logging.v2.CreateBucketRequest.getDefaultInstance(); } - createBucketRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.CreateBucketRequest.Builder, com.google.logging.v2.CreateBucketRequestOrBuilder>( + createBucketRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CreateBucketRequest, + com.google.logging.v2.CreateBucketRequest.Builder, + com.google.logging.v2.CreateBucketRequestOrBuilder>( (com.google.logging.v2.CreateBucketRequest) request_, getParentForChildren(), isClean()); @@ -1355,13 +1519,19 @@ public com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequest } private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.UpdateBucketRequest.Builder, com.google.logging.v2.UpdateBucketRequestOrBuilder> updateBucketRequestBuilder_; + com.google.logging.v2.UpdateBucketRequest, + com.google.logging.v2.UpdateBucketRequest.Builder, + com.google.logging.v2.UpdateBucketRequestOrBuilder> + updateBucketRequestBuilder_; /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
* * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + * * @return Whether the updateBucketRequest field is set. */ @java.lang.Override @@ -1369,11 +1539,14 @@ public boolean hasUpdateBucketRequest() { return requestCase_ == 5; } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
* * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + * * @return The updateBucketRequest. */ @java.lang.Override @@ -1391,6 +1564,8 @@ public com.google.logging.v2.UpdateBucketRequest getUpdateBucketRequest() { } } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1411,6 +1586,8 @@ public Builder setUpdateBucketRequest(com.google.logging.v2.UpdateBucketRequest return this; } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1429,6 +1606,8 @@ public Builder setUpdateBucketRequest( return this; } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1437,10 +1616,13 @@ public Builder setUpdateBucketRequest( */ public Builder mergeUpdateBucketRequest(com.google.logging.v2.UpdateBucketRequest value) { if (updateBucketRequestBuilder_ == null) { - if (requestCase_ == 5 && - request_ != com.google.logging.v2.UpdateBucketRequest.getDefaultInstance()) { - request_ = com.google.logging.v2.UpdateBucketRequest.newBuilder((com.google.logging.v2.UpdateBucketRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 5 + && request_ != com.google.logging.v2.UpdateBucketRequest.getDefaultInstance()) { + request_ = + com.google.logging.v2.UpdateBucketRequest.newBuilder( + (com.google.logging.v2.UpdateBucketRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -1456,6 +1638,8 @@ public Builder mergeUpdateBucketRequest(com.google.logging.v2.UpdateBucketReques return this; } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1479,6 +1663,8 @@ public Builder clearUpdateBucketRequest() { return this; } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1489,6 +1675,8 @@ public com.google.logging.v2.UpdateBucketRequest.Builder getUpdateBucketRequestB return getUpdateBucketRequestFieldBuilder().getBuilder(); } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1507,6 +1695,8 @@ public com.google.logging.v2.UpdateBucketRequestOrBuilder getUpdateBucketRequest } } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1514,14 +1704,19 @@ public com.google.logging.v2.UpdateBucketRequestOrBuilder getUpdateBucketRequest * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.UpdateBucketRequest.Builder, com.google.logging.v2.UpdateBucketRequestOrBuilder> + com.google.logging.v2.UpdateBucketRequest, + com.google.logging.v2.UpdateBucketRequest.Builder, + com.google.logging.v2.UpdateBucketRequestOrBuilder> getUpdateBucketRequestFieldBuilder() { if (updateBucketRequestBuilder_ == null) { if (!(requestCase_ == 5)) { request_ = com.google.logging.v2.UpdateBucketRequest.getDefaultInstance(); } - updateBucketRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.UpdateBucketRequest.Builder, com.google.logging.v2.UpdateBucketRequestOrBuilder>( + updateBucketRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.UpdateBucketRequest, + com.google.logging.v2.UpdateBucketRequest.Builder, + com.google.logging.v2.UpdateBucketRequestOrBuilder>( (com.google.logging.v2.UpdateBucketRequest) request_, getParentForChildren(), isClean()); @@ -1531,9 +1726,9 @@ public com.google.logging.v2.UpdateBucketRequestOrBuilder getUpdateBucketRequest onChanged(); return updateBucketRequestBuilder_; } + @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); } @@ -1543,12 +1738,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.BucketMetadata) } // @@protoc_insertion_point(class_scope:google.logging.v2.BucketMetadata) private static final com.google.logging.v2.BucketMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.BucketMetadata(); } @@ -1557,27 +1752,27 @@ public static com.google.logging.v2.BucketMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BucketMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BucketMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1592,6 +1787,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.BucketMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java similarity index 81% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java index bef772fca..7c162aaee 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface BucketMetadataOrBuilder extends +public interface BucketMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.BucketMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * The create time of an operation.
    * 
@@ -36,24 +60,32 @@ public interface BucketMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The end time of an operation.
    * 
@@ -63,43 +95,57 @@ public interface BucketMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; + * * @return The state. */ com.google.logging.v2.OperationState getState(); /** + * + * *
    * LongRunningCreateBucket RPC request.
    * 
* * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + * * @return Whether the createBucketRequest field is set. */ boolean hasCreateBucketRequest(); /** + * + * *
    * LongRunningCreateBucket RPC request.
    * 
* * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + * * @return The createBucketRequest. */ com.google.logging.v2.CreateBucketRequest getCreateBucketRequest(); /** + * + * *
    * LongRunningCreateBucket RPC request.
    * 
@@ -109,24 +155,32 @@ public interface BucketMetadataOrBuilder extends com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequestOrBuilder(); /** + * + * *
    * LongRunningUpdateBucket RPC request.
    * 
* * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + * * @return Whether the updateBucketRequest field is set. */ boolean hasUpdateBucketRequest(); /** + * + * *
    * LongRunningUpdateBucket RPC request.
    * 
* * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + * * @return The updateBucketRequest. */ com.google.logging.v2.UpdateBucketRequest getUpdateBucketRequest(); /** + * + * *
    * LongRunningUpdateBucket RPC request.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java similarity index 80% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java index 70ac0c37f..95621d967 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.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/logging/v2/logging_config.proto @@ -5,6 +20,8 @@ package com.google.logging.v2; /** + * + * *
  * Describes the customer-managed encryption key (CMEK) settings associated with
  * a project, folder, organization, billing account, or flexible resource.
@@ -20,15 +37,16 @@
  *
  * Protobuf type {@code google.logging.v2.CmekSettings}
  */
-public final class CmekSettings extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CmekSettings extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.CmekSettings)
     CmekSettingsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CmekSettings.newBuilder() to construct.
   private CmekSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CmekSettings() {
     name_ = "";
     kmsKeyName_ = "";
@@ -38,33 +56,38 @@ private CmekSettings() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CmekSettings();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CmekSettings_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_CmekSettings_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CmekSettings_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_CmekSettings_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.CmekSettings.class, com.google.logging.v2.CmekSettings.Builder.class);
+            com.google.logging.v2.CmekSettings.class,
+            com.google.logging.v2.CmekSettings.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. The resource name of the CMEK settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -73,29 +96,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the CMEK settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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,9 +127,12 @@ public java.lang.String getName() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** + * + * *
    * The resource name for the configured Cloud KMS key.
    *
@@ -139,6 +165,7 @@ public java.lang.String getName() {
    * 
* * string kms_key_name = 2; + * * @return The kmsKeyName. */ @java.lang.Override @@ -147,14 +174,15 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** + * + * *
    * The resource name for the configured Cloud KMS key.
    *
@@ -187,16 +215,15 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_name = 2; + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -205,9 +232,12 @@ public java.lang.String getKmsKeyName() { } public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
    * The CryptoKeyVersion resource name for the configured Cloud KMS key.
    *
@@ -229,6 +259,7 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_version_name = 4; + * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -237,14 +268,15 @@ public java.lang.String getKmsKeyVersionName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyVersionName_ = s; return s; } } /** + * + * *
    * The CryptoKeyVersion resource name for the configured Cloud KMS key.
    *
@@ -266,16 +298,15 @@ public java.lang.String getKmsKeyVersionName() {
    * 
* * string kms_key_version_name = 4; + * * @return The bytes for kmsKeyVersionName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyVersionName_ = b; return b; } else { @@ -284,9 +315,12 @@ public java.lang.String getKmsKeyVersionName() { } public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object serviceAccountId_ = ""; /** + * + * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -303,6 +337,7 @@ public java.lang.String getKmsKeyVersionName() {
    * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ @java.lang.Override @@ -311,14 +346,15 @@ public java.lang.String getServiceAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; } } /** + * + * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -335,16 +371,15 @@ public java.lang.String getServiceAccountId() {
    * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountIdBytes() { + public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -353,6 +388,7 @@ public java.lang.String getServiceAccountId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -364,8 +400,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_); } @@ -407,21 +442,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.logging.v2.CmekSettings)) { return super.equals(obj); } com.google.logging.v2.CmekSettings other = (com.google.logging.v2.CmekSettings) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; - if (!getKmsKeyVersionName() - .equals(other.getKmsKeyVersionName())) return false; - if (!getServiceAccountId() - .equals(other.getServiceAccountId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false; + if (!getServiceAccountId().equals(other.getServiceAccountId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -446,99 +477,103 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CmekSettings parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.CmekSettings parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CmekSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.CmekSettings parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.CmekSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CmekSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CmekSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CmekSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CmekSettings 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.logging.v2.CmekSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.CmekSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CmekSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.CmekSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.CmekSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.CmekSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes the customer-managed encryption key (CMEK) settings associated with
    * a project, folder, organization, billing account, or flexible resource.
@@ -554,33 +589,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.CmekSettings}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.CmekSettings)
       com.google.logging.v2.CmekSettingsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CmekSettings_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_CmekSettings_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CmekSettings_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_CmekSettings_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.CmekSettings.class, com.google.logging.v2.CmekSettings.Builder.class);
+              com.google.logging.v2.CmekSettings.class,
+              com.google.logging.v2.CmekSettings.Builder.class);
     }
 
     // Construct using com.google.logging.v2.CmekSettings.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -593,9 +627,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CmekSettings_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_CmekSettings_descriptor;
     }
 
     @java.lang.Override
@@ -615,7 +649,9 @@ public com.google.logging.v2.CmekSettings build() {
     @java.lang.Override
     public com.google.logging.v2.CmekSettings buildPartial() {
       com.google.logging.v2.CmekSettings result = new com.google.logging.v2.CmekSettings(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -640,38 +676,39 @@ private void buildPartial0(com.google.logging.v2.CmekSettings 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.logging.v2.CmekSettings) {
-        return mergeFrom((com.google.logging.v2.CmekSettings)other);
+        return mergeFrom((com.google.logging.v2.CmekSettings) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -726,32 +763,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              kmsKeyName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              serviceAccountId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 26
-            case 34: {
-              kmsKeyVersionName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              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:
+              {
+                kmsKeyName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                serviceAccountId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 26
+            case 34:
+              {
+                kmsKeyVersionName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 34
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -761,22 +803,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name of the CMEK settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -785,20 +830,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the CMEK settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -806,28 +852,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the CMEK settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the CMEK settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -837,17 +890,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the CMEK settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -857,6 +914,8 @@ public Builder setNameBytes( private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -889,13 +948,13 @@ public Builder setNameBytes(
      * 
* * string kms_key_name = 2; + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -904,6 +963,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -936,15 +997,14 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 2; + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -952,6 +1012,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -984,18 +1046,22 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 2; + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -1028,6 +1094,7 @@ public Builder setKmsKeyName(
      * 
* * string kms_key_name = 2; + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -1037,6 +1104,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -1069,12 +1138,14 @@ public Builder clearKmsKeyName() {
      * 
* * string kms_key_name = 2; + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000002; @@ -1084,6 +1155,8 @@ public Builder setKmsKeyNameBytes( private java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1105,13 +1178,13 @@ public Builder setKmsKeyNameBytes(
      * 
* * string kms_key_version_name = 4; + * * @return The kmsKeyVersionName. */ public java.lang.String getKmsKeyVersionName() { java.lang.Object ref = kmsKeyVersionName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyVersionName_ = s; return s; @@ -1120,6 +1193,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1141,15 +1216,14 @@ public java.lang.String getKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 4; + * * @return The bytes for kmsKeyVersionName. */ - public com.google.protobuf.ByteString - getKmsKeyVersionNameBytes() { + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { java.lang.Object ref = kmsKeyVersionName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyVersionName_ = b; return b; } else { @@ -1157,6 +1231,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1178,18 +1254,22 @@ public java.lang.String getKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 4; + * * @param value The kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyVersionName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1211,6 +1291,7 @@ public Builder setKmsKeyVersionName(
      * 
* * string kms_key_version_name = 4; + * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -1220,6 +1301,8 @@ public Builder clearKmsKeyVersionName() { return this; } /** + * + * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1241,12 +1324,14 @@ public Builder clearKmsKeyVersionName() {
      * 
* * string kms_key_version_name = 4; + * * @param value The bytes for kmsKeyVersionName to set. * @return This builder for chaining. */ - public Builder setKmsKeyVersionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyVersionName_ = value; bitField0_ |= 0x00000004; @@ -1256,6 +1341,8 @@ public Builder setKmsKeyVersionNameBytes( private java.lang.Object serviceAccountId_ = ""; /** + * + * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1272,13 +1359,13 @@ public Builder setKmsKeyVersionNameBytes(
      * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ public java.lang.String getServiceAccountId() { java.lang.Object ref = serviceAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceAccountId_ = s; return s; @@ -1287,6 +1374,8 @@ public java.lang.String getServiceAccountId() { } } /** + * + * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1303,15 +1392,14 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ - public com.google.protobuf.ByteString - getServiceAccountIdBytes() { + public com.google.protobuf.ByteString getServiceAccountIdBytes() { java.lang.Object ref = serviceAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceAccountId_ = b; return b; } else { @@ -1319,6 +1407,8 @@ public java.lang.String getServiceAccountId() { } } /** + * + * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1335,18 +1425,22 @@ public java.lang.String getServiceAccountId() {
      * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } serviceAccountId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1363,6 +1457,7 @@ public Builder setServiceAccountId(
      * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearServiceAccountId() { @@ -1372,6 +1467,8 @@ public Builder clearServiceAccountId() { return this; } /** + * + * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1388,21 +1485,23 @@ public Builder clearServiceAccountId() {
      * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for serviceAccountId to set. * @return This builder for chaining. */ - public Builder setServiceAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); serviceAccountId_ = 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); } @@ -1412,12 +1511,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.CmekSettings) } // @@protoc_insertion_point(class_scope:google.logging.v2.CmekSettings) private static final com.google.logging.v2.CmekSettings DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.CmekSettings(); } @@ -1426,27 +1525,27 @@ public static com.google.logging.v2.CmekSettings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CmekSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CmekSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1461,6 +1560,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CmekSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java index 469594853..2624dd329 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java @@ -62,7 +62,7 @@ private CmekSettingsName(Builder builder) { pathTemplate = PROJECT; } - private CmekSettingsName(OrganizationBuilder builder) { + private CmekSettingsName(OrganizationCmekSettingsBuilder builder) { organization = Preconditions.checkNotNull(builder.getOrganization()); project = null; folder = null; @@ -70,7 +70,7 @@ private CmekSettingsName(OrganizationBuilder builder) { pathTemplate = ORGANIZATION; } - private CmekSettingsName(FolderBuilder builder) { + private CmekSettingsName(FolderCmekSettingsBuilder builder) { folder = Preconditions.checkNotNull(builder.getFolder()); project = null; organization = null; @@ -78,7 +78,7 @@ private CmekSettingsName(FolderBuilder builder) { pathTemplate = FOLDER; } - private CmekSettingsName(BillingAccountBuilder builder) { + private CmekSettingsName(BillingAccountCmekSettingsBuilder builder) { billingAccount = Preconditions.checkNotNull(builder.getBillingAccount()); project = null; organization = null; @@ -110,16 +110,22 @@ public static Builder newProjectBuilder() { return new Builder(); } - public static OrganizationBuilder newOrganizationBuilder() { - return new OrganizationBuilder(); + /** @deprecated Please use {@link #newProjectBuilder()} instead */ + @Deprecated + public static Builder newProjectCmekSettingsBuilder() { + return new Builder(); + } + + public static OrganizationCmekSettingsBuilder newOrganizationCmekSettingsBuilder() { + return new OrganizationCmekSettingsBuilder(); } - public static FolderBuilder newFolderBuilder() { - return new FolderBuilder(); + public static FolderCmekSettingsBuilder newFolderCmekSettingsBuilder() { + return new FolderCmekSettingsBuilder(); } - public static BillingAccountBuilder newBillingAccountBuilder() { - return new BillingAccountBuilder(); + public static BillingAccountCmekSettingsBuilder newBillingAccountCmekSettingsBuilder() { + return new BillingAccountCmekSettingsBuilder(); } public Builder toBuilder() { @@ -134,16 +140,40 @@ public static CmekSettingsName ofProjectName(String project) { return newBuilder().setProject(project).build(); } + /** @deprecated Please use {@link #ofProjectName(String)} instead */ + @Deprecated + public static CmekSettingsName ofProjectCmekSettingsName(String project) { + return newBuilder().setProject(project).build(); + } + public static CmekSettingsName ofOrganizationName(String organization) { - return newOrganizationBuilder().setOrganization(organization).build(); + return newOrganizationCmekSettingsBuilder().setOrganization(organization).build(); + } + + /** @deprecated Please use {@link #ofOrganizationName(String)} instead */ + @Deprecated + public static CmekSettingsName ofOrganizationCmekSettingsName(String organization) { + return newOrganizationCmekSettingsBuilder().setOrganization(organization).build(); } public static CmekSettingsName ofFolderName(String folder) { - return newFolderBuilder().setFolder(folder).build(); + return newFolderCmekSettingsBuilder().setFolder(folder).build(); + } + + /** @deprecated Please use {@link #ofFolderName(String)} instead */ + @Deprecated + public static CmekSettingsName ofFolderCmekSettingsName(String folder) { + return newFolderCmekSettingsBuilder().setFolder(folder).build(); } public static CmekSettingsName ofBillingAccountName(String billingAccount) { - return newBillingAccountBuilder().setBillingAccount(billingAccount).build(); + return newBillingAccountCmekSettingsBuilder().setBillingAccount(billingAccount).build(); + } + + /** @deprecated Please use {@link #ofBillingAccountName(String)} instead */ + @Deprecated + public static CmekSettingsName ofBillingAccountCmekSettingsName(String billingAccount) { + return newBillingAccountCmekSettingsBuilder().setBillingAccount(billingAccount).build(); } public static String format(String project) { @@ -154,16 +184,46 @@ public static String formatProjectName(String project) { return newBuilder().setProject(project).build().toString(); } + /** @deprecated Please use {@link #formatProjectName(String)} instead */ + @Deprecated + public static String formatProjectCmekSettingsName(String project) { + return newBuilder().setProject(project).build().toString(); + } + public static String formatOrganizationName(String organization) { - return newOrganizationBuilder().setOrganization(organization).build().toString(); + return newOrganizationCmekSettingsBuilder().setOrganization(organization).build().toString(); + } + + /** @deprecated Please use {@link #formatOrganizationName(String)} instead */ + @Deprecated + public static String formatOrganizationCmekSettingsName(String organization) { + return newOrganizationCmekSettingsBuilder().setOrganization(organization).build().toString(); } public static String formatFolderName(String folder) { - return newFolderBuilder().setFolder(folder).build().toString(); + return newFolderCmekSettingsBuilder().setFolder(folder).build().toString(); + } + + /** @deprecated Please use {@link #formatFolderName(String)} instead */ + @Deprecated + public static String formatFolderCmekSettingsName(String folder) { + return newFolderCmekSettingsBuilder().setFolder(folder).build().toString(); } public static String formatBillingAccountName(String billingAccount) { - return newBillingAccountBuilder().setBillingAccount(billingAccount).build().toString(); + return newBillingAccountCmekSettingsBuilder() + .setBillingAccount(billingAccount) + .build() + .toString(); + } + + /** @deprecated Please use {@link #formatBillingAccountName(String)} instead */ + @Deprecated + public static String formatBillingAccountCmekSettingsName(String billingAccount) { + return newBillingAccountCmekSettingsBuilder() + .setBillingAccount(billingAccount) + .build() + .toString(); } public static CmekSettingsName parse(String formattedString) { @@ -172,16 +232,16 @@ public static CmekSettingsName parse(String formattedString) { } if (PROJECT.matches(formattedString)) { Map matchMap = PROJECT.match(formattedString); - return ofProjectName(matchMap.get("project")); + return ofProjectCmekSettingsName(matchMap.get("project")); } else if (ORGANIZATION.matches(formattedString)) { Map matchMap = ORGANIZATION.match(formattedString); - return ofOrganizationName(matchMap.get("organization")); + return ofOrganizationCmekSettingsName(matchMap.get("organization")); } else if (FOLDER.matches(formattedString)) { Map matchMap = FOLDER.match(formattedString); - return ofFolderName(matchMap.get("folder")); + return ofFolderCmekSettingsName(matchMap.get("folder")); } else if (BILLING_ACCOUNT.matches(formattedString)) { Map matchMap = BILLING_ACCOUNT.match(formattedString); - return ofBillingAccountName(matchMap.get("billing_account")); + return ofBillingAccountCmekSettingsName(matchMap.get("billing_account")); } throw new ValidationException("CmekSettingsName.parse: formattedString not in valid format"); } @@ -306,16 +366,16 @@ public CmekSettingsName build() { } /** Builder for organizations/{organization}/cmekSettings. */ - public static class OrganizationBuilder { + public static class OrganizationCmekSettingsBuilder { private String organization; - protected OrganizationBuilder() {} + protected OrganizationCmekSettingsBuilder() {} public String getOrganization() { return organization; } - public OrganizationBuilder setOrganization(String organization) { + public OrganizationCmekSettingsBuilder setOrganization(String organization) { this.organization = organization; return this; } @@ -326,16 +386,16 @@ public CmekSettingsName build() { } /** Builder for folders/{folder}/cmekSettings. */ - public static class FolderBuilder { + public static class FolderCmekSettingsBuilder { private String folder; - protected FolderBuilder() {} + protected FolderCmekSettingsBuilder() {} public String getFolder() { return folder; } - public FolderBuilder setFolder(String folder) { + public FolderCmekSettingsBuilder setFolder(String folder) { this.folder = folder; return this; } @@ -346,16 +406,16 @@ public CmekSettingsName build() { } /** Builder for billingAccounts/{billing_account}/cmekSettings. */ - public static class BillingAccountBuilder { + public static class BillingAccountCmekSettingsBuilder { private String billingAccount; - protected BillingAccountBuilder() {} + protected BillingAccountCmekSettingsBuilder() {} public String getBillingAccount() { return billingAccount; } - public BillingAccountBuilder setBillingAccount(String billingAccount) { + public BillingAccountCmekSettingsBuilder setBillingAccount(String billingAccount) { this.billingAccount = billingAccount; return this; } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java similarity index 87% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java index 37b54f72f..b93dd5ed4 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java @@ -1,34 +1,57 @@ +/* + * 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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CmekSettingsOrBuilder extends +public interface CmekSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CmekSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the CMEK settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the CMEK settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The resource name for the configured Cloud KMS key.
    *
@@ -61,10 +84,13 @@ public interface CmekSettingsOrBuilder extends
    * 
* * string kms_key_name = 2; + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * The resource name for the configured Cloud KMS key.
    *
@@ -97,12 +123,14 @@ public interface CmekSettingsOrBuilder extends
    * 
* * string kms_key_name = 2; + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * The CryptoKeyVersion resource name for the configured Cloud KMS key.
    *
@@ -124,10 +152,13 @@ public interface CmekSettingsOrBuilder extends
    * 
* * string kms_key_version_name = 4; + * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** + * + * *
    * The CryptoKeyVersion resource name for the configured Cloud KMS key.
    *
@@ -149,12 +180,14 @@ public interface CmekSettingsOrBuilder extends
    * 
* * string kms_key_version_name = 4; + * * @return The bytes for kmsKeyVersionName. */ - com.google.protobuf.ByteString - getKmsKeyVersionNameBytes(); + com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); /** + * + * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -171,10 +204,13 @@ public interface CmekSettingsOrBuilder extends
    * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ java.lang.String getServiceAccountId(); /** + * + * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -191,8 +227,8 @@ public interface CmekSettingsOrBuilder extends
    * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ - com.google.protobuf.ByteString - getServiceAccountIdBytes(); + com.google.protobuf.ByteString getServiceAccountIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java index 3320ecb4b..7ca0d7937 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * Metadata for CopyLogEntries long running operations.
  * 
* * Protobuf type {@code google.logging.v2.CopyLogEntriesMetadata} */ -public final class CopyLogEntriesMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CopyLogEntriesMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.CopyLogEntriesMetadata) CopyLogEntriesMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CopyLogEntriesMetadata.newBuilder() to construct. private CopyLogEntriesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CopyLogEntriesMetadata() { state_ = 0; writerIdentity_ = ""; @@ -27,33 +45,37 @@ private CopyLogEntriesMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CopyLogEntriesMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CopyLogEntriesMetadata.class, com.google.logging.v2.CopyLogEntriesMetadata.Builder.class); + com.google.logging.v2.CopyLogEntriesMetadata.class, + com.google.logging.v2.CopyLogEntriesMetadata.Builder.class); } private int bitField0_; public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -61,11 +83,14 @@ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -73,6 +98,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The create time of an operation.
    * 
@@ -87,11 +114,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -99,11 +129,14 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -111,6 +144,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The end time of an operation.
    * 
@@ -125,37 +160,49 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 3; private int state_ = 0; /** + * + * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; + * * @return The state. */ - @java.lang.Override public com.google.logging.v2.OperationState getState() { - com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.forNumber(state_); + @java.lang.Override + public com.google.logging.v2.OperationState getState() { + com.google.logging.v2.OperationState result = + com.google.logging.v2.OperationState.forNumber(state_); return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; } public static final int CANCELLATION_REQUESTED_FIELD_NUMBER = 4; private boolean cancellationRequested_ = false; /** + * + * *
    * Identifies whether the user has requested cancellation of the operation.
    * 
* * bool cancellation_requested = 4; + * * @return The cancellationRequested. */ @java.lang.Override @@ -166,11 +213,14 @@ public boolean getCancellationRequested() { public static final int REQUEST_FIELD_NUMBER = 5; private com.google.logging.v2.CopyLogEntriesRequest request_; /** + * + * *
    * CopyLogEntries RPC request.
    * 
* * .google.logging.v2.CopyLogEntriesRequest request = 5; + * * @return Whether the request field is set. */ @java.lang.Override @@ -178,18 +228,25 @@ public boolean hasRequest() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * CopyLogEntries RPC request.
    * 
* * .google.logging.v2.CopyLogEntriesRequest request = 5; + * * @return The request. */ @java.lang.Override public com.google.logging.v2.CopyLogEntriesRequest getRequest() { - return request_ == null ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() : request_; + return request_ == null + ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() + : request_; } /** + * + * *
    * CopyLogEntries RPC request.
    * 
@@ -198,17 +255,22 @@ public com.google.logging.v2.CopyLogEntriesRequest getRequest() { */ @java.lang.Override public com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder() { - return request_ == null ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() : request_; + return request_ == null + ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() + : request_; } public static final int PROGRESS_FIELD_NUMBER = 6; private int progress_ = 0; /** + * + * *
    * Estimated progress of the operation (0 - 100%).
    * 
* * int32 progress = 6; + * * @return The progress. */ @java.lang.Override @@ -217,9 +279,12 @@ public int getProgress() { } public static final int WRITER_IDENTITY_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object writerIdentity_ = ""; /** + * + * *
    * The IAM identity of a service account that must be granted access to the
    * destination.
@@ -231,6 +296,7 @@ public int getProgress() {
    * 
* * string writer_identity = 7; + * * @return The writerIdentity. */ @java.lang.Override @@ -239,14 +305,15 @@ public java.lang.String getWriterIdentity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writerIdentity_ = s; return s; } } /** + * + * *
    * The IAM identity of a service account that must be granted access to the
    * destination.
@@ -258,16 +325,15 @@ public java.lang.String getWriterIdentity() {
    * 
* * string writer_identity = 7; + * * @return The bytes for writerIdentity. */ @java.lang.Override - public com.google.protobuf.ByteString - getWriterIdentityBytes() { + public com.google.protobuf.ByteString getWriterIdentityBytes() { java.lang.Object ref = writerIdentity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writerIdentity_ = b; return b; } else { @@ -276,6 +342,7 @@ public java.lang.String getWriterIdentity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -287,8 +354,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, getStartTime()); } @@ -320,28 +386,22 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (state_ != com.google.logging.v2.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (cancellationRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, cancellationRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, cancellationRequested_); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getRequest()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRequest()); } if (progress_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, progress_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, progress_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writerIdentity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, writerIdentity_); @@ -354,35 +414,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.CopyLogEntriesMetadata)) { return super.equals(obj); } - com.google.logging.v2.CopyLogEntriesMetadata other = (com.google.logging.v2.CopyLogEntriesMetadata) obj; + com.google.logging.v2.CopyLogEntriesMetadata other = + (com.google.logging.v2.CopyLogEntriesMetadata) obj; 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 (state_ != other.state_) return false; - if (getCancellationRequested() - != other.getCancellationRequested()) return false; + if (getCancellationRequested() != other.getCancellationRequested()) return false; if (hasRequest() != other.hasRequest()) return false; if (hasRequest()) { - if (!getRequest() - .equals(other.getRequest())) return false; + if (!getRequest().equals(other.getRequest())) return false; } - if (getProgress() - != other.getProgress()) return false; - if (!getWriterIdentity() - .equals(other.getWriterIdentity())) return false; + if (getProgress() != other.getProgress()) return false; + if (!getWriterIdentity().equals(other.getWriterIdentity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -405,8 +460,7 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + CANCELLATION_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancellationRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancellationRequested()); if (hasRequest()) { hash = (37 * hash) + REQUEST_FIELD_NUMBER; hash = (53 * hash) + getRequest().hashCode(); @@ -420,120 +474,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesMetadata 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.logging.v2.CopyLogEntriesMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.CopyLogEntriesMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CopyLogEntriesMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.CopyLogEntriesMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Metadata for CopyLogEntries long running operations.
    * 
* * Protobuf type {@code google.logging.v2.CopyLogEntriesMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CopyLogEntriesMetadata) com.google.logging.v2.CopyLogEntriesMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CopyLogEntriesMetadata.class, com.google.logging.v2.CopyLogEntriesMetadata.Builder.class); + com.google.logging.v2.CopyLogEntriesMetadata.class, + com.google.logging.v2.CopyLogEntriesMetadata.Builder.class); } // Construct using com.google.logging.v2.CopyLogEntriesMetadata.newBuilder() @@ -541,19 +602,19 @@ 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) { getStartTimeFieldBuilder(); getEndTimeFieldBuilder(); getRequestFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -581,9 +642,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; } @java.lang.Override @@ -602,8 +663,11 @@ public com.google.logging.v2.CopyLogEntriesMetadata build() { @java.lang.Override public com.google.logging.v2.CopyLogEntriesMetadata buildPartial() { - com.google.logging.v2.CopyLogEntriesMetadata result = new com.google.logging.v2.CopyLogEntriesMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.CopyLogEntriesMetadata result = + new com.google.logging.v2.CopyLogEntriesMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -612,15 +676,11 @@ private void buildPartial0(com.google.logging.v2.CopyLogEntriesMetadata result) int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -630,9 +690,7 @@ private void buildPartial0(com.google.logging.v2.CopyLogEntriesMetadata result) result.cancellationRequested_ = cancellationRequested_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.request_ = requestBuilder_ == null - ? request_ - : requestBuilder_.build(); + result.request_ = requestBuilder_ == null ? request_ : requestBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { @@ -648,38 +706,39 @@ private void buildPartial0(com.google.logging.v2.CopyLogEntriesMetadata 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.logging.v2.CopyLogEntriesMetadata) { - return mergeFrom((com.google.logging.v2.CopyLogEntriesMetadata)other); + return mergeFrom((com.google.logging.v2.CopyLogEntriesMetadata) other); } else { super.mergeFrom(other); return this; @@ -737,53 +796,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - state_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - cancellationRequested_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getRequestFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - progress_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - writerIdentity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + cancellationRequested_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getRequestFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + progress_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + writerIdentity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -793,28 +854,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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_; /** + * + * *
      * The create time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The create time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -825,6 +896,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The create time of an operation.
      * 
@@ -845,14 +918,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The create time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -863,6 +937,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -871,9 +947,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -888,6 +964,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -905,6 +983,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -917,6 +997,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The create time of an operation.
      * 
@@ -927,11 +1009,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * The create time of an operation.
      * 
@@ -939,14 +1022,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -954,24 +1040,33 @@ 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_; /** + * + * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -982,6 +1077,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The end time of an operation.
      * 
@@ -1002,14 +1099,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1020,6 +1118,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1028,9 +1128,9 @@ public Builder setEndTime( */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1045,6 +1145,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1062,6 +1164,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1074,6 +1178,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The end time of an operation.
      * 
@@ -1084,11 +1190,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * The end time of an operation.
      * 
@@ -1096,14 +1203,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1111,22 +1221,29 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1137,24 +1254,31 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @return The state. */ @java.lang.Override public com.google.logging.v2.OperationState getState() { - com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.forNumber(state_); + com.google.logging.v2.OperationState result = + com.google.logging.v2.OperationState.forNumber(state_); return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; } /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1168,11 +1292,14 @@ public Builder setState(com.google.logging.v2.OperationState value) { return this; } /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @return This builder for chaining. */ public Builder clearState() { @@ -1182,13 +1309,16 @@ public Builder clearState() { return this; } - private boolean cancellationRequested_ ; + private boolean cancellationRequested_; /** + * + * *
      * Identifies whether the user has requested cancellation of the operation.
      * 
* * bool cancellation_requested = 4; + * * @return The cancellationRequested. */ @java.lang.Override @@ -1196,11 +1326,14 @@ public boolean getCancellationRequested() { return cancellationRequested_; } /** + * + * *
      * Identifies whether the user has requested cancellation of the operation.
      * 
* * bool cancellation_requested = 4; + * * @param value The cancellationRequested to set. * @return This builder for chaining. */ @@ -1212,11 +1345,14 @@ public Builder setCancellationRequested(boolean value) { return this; } /** + * + * *
      * Identifies whether the user has requested cancellation of the operation.
      * 
* * bool cancellation_requested = 4; + * * @return This builder for chaining. */ public Builder clearCancellationRequested() { @@ -1228,34 +1364,47 @@ public Builder clearCancellationRequested() { private com.google.logging.v2.CopyLogEntriesRequest request_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CopyLogEntriesRequest, com.google.logging.v2.CopyLogEntriesRequest.Builder, com.google.logging.v2.CopyLogEntriesRequestOrBuilder> requestBuilder_; + com.google.logging.v2.CopyLogEntriesRequest, + com.google.logging.v2.CopyLogEntriesRequest.Builder, + com.google.logging.v2.CopyLogEntriesRequestOrBuilder> + requestBuilder_; /** + * + * *
      * CopyLogEntries RPC request.
      * 
* * .google.logging.v2.CopyLogEntriesRequest request = 5; + * * @return Whether the request field is set. */ public boolean hasRequest() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * CopyLogEntries RPC request.
      * 
* * .google.logging.v2.CopyLogEntriesRequest request = 5; + * * @return The request. */ public com.google.logging.v2.CopyLogEntriesRequest getRequest() { if (requestBuilder_ == null) { - return request_ == null ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() : request_; + return request_ == null + ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() + : request_; } else { return requestBuilder_.getMessage(); } } /** + * + * *
      * CopyLogEntries RPC request.
      * 
@@ -1276,14 +1425,15 @@ public Builder setRequest(com.google.logging.v2.CopyLogEntriesRequest value) { return this; } /** + * + * *
      * CopyLogEntries RPC request.
      * 
* * .google.logging.v2.CopyLogEntriesRequest request = 5; */ - public Builder setRequest( - com.google.logging.v2.CopyLogEntriesRequest.Builder builderForValue) { + public Builder setRequest(com.google.logging.v2.CopyLogEntriesRequest.Builder builderForValue) { if (requestBuilder_ == null) { request_ = builderForValue.build(); } else { @@ -1294,6 +1444,8 @@ public Builder setRequest( return this; } /** + * + * *
      * CopyLogEntries RPC request.
      * 
@@ -1302,9 +1454,9 @@ public Builder setRequest( */ public Builder mergeRequest(com.google.logging.v2.CopyLogEntriesRequest value) { if (requestBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - request_ != null && - request_ != com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && request_ != null + && request_ != com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance()) { getRequestBuilder().mergeFrom(value); } else { request_ = value; @@ -1319,6 +1471,8 @@ public Builder mergeRequest(com.google.logging.v2.CopyLogEntriesRequest value) { return this; } /** + * + * *
      * CopyLogEntries RPC request.
      * 
@@ -1336,6 +1490,8 @@ public Builder clearRequest() { return this; } /** + * + * *
      * CopyLogEntries RPC request.
      * 
@@ -1348,6 +1504,8 @@ public com.google.logging.v2.CopyLogEntriesRequest.Builder getRequestBuilder() { return getRequestFieldBuilder().getBuilder(); } /** + * + * *
      * CopyLogEntries RPC request.
      * 
@@ -1358,11 +1516,14 @@ public com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder( if (requestBuilder_ != null) { return requestBuilder_.getMessageOrBuilder(); } else { - return request_ == null ? - com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() : request_; + return request_ == null + ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() + : request_; } } /** + * + * *
      * CopyLogEntries RPC request.
      * 
@@ -1370,26 +1531,32 @@ public com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder( * .google.logging.v2.CopyLogEntriesRequest request = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CopyLogEntriesRequest, com.google.logging.v2.CopyLogEntriesRequest.Builder, com.google.logging.v2.CopyLogEntriesRequestOrBuilder> + com.google.logging.v2.CopyLogEntriesRequest, + com.google.logging.v2.CopyLogEntriesRequest.Builder, + com.google.logging.v2.CopyLogEntriesRequestOrBuilder> getRequestFieldBuilder() { if (requestBuilder_ == null) { - requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CopyLogEntriesRequest, com.google.logging.v2.CopyLogEntriesRequest.Builder, com.google.logging.v2.CopyLogEntriesRequestOrBuilder>( - getRequest(), - getParentForChildren(), - isClean()); + requestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CopyLogEntriesRequest, + com.google.logging.v2.CopyLogEntriesRequest.Builder, + com.google.logging.v2.CopyLogEntriesRequestOrBuilder>( + getRequest(), getParentForChildren(), isClean()); request_ = null; } return requestBuilder_; } - private int progress_ ; + private int progress_; /** + * + * *
      * Estimated progress of the operation (0 - 100%).
      * 
* * int32 progress = 6; + * * @return The progress. */ @java.lang.Override @@ -1397,11 +1564,14 @@ public int getProgress() { return progress_; } /** + * + * *
      * Estimated progress of the operation (0 - 100%).
      * 
* * int32 progress = 6; + * * @param value The progress to set. * @return This builder for chaining. */ @@ -1413,11 +1583,14 @@ public Builder setProgress(int value) { return this; } /** + * + * *
      * Estimated progress of the operation (0 - 100%).
      * 
* * int32 progress = 6; + * * @return This builder for chaining. */ public Builder clearProgress() { @@ -1429,6 +1602,8 @@ public Builder clearProgress() { private java.lang.Object writerIdentity_ = ""; /** + * + * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1440,13 +1615,13 @@ public Builder clearProgress() {
      * 
* * string writer_identity = 7; + * * @return The writerIdentity. */ public java.lang.String getWriterIdentity() { java.lang.Object ref = writerIdentity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writerIdentity_ = s; return s; @@ -1455,6 +1630,8 @@ public java.lang.String getWriterIdentity() { } } /** + * + * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1466,15 +1643,14 @@ public java.lang.String getWriterIdentity() {
      * 
* * string writer_identity = 7; + * * @return The bytes for writerIdentity. */ - public com.google.protobuf.ByteString - getWriterIdentityBytes() { + public com.google.protobuf.ByteString getWriterIdentityBytes() { java.lang.Object ref = writerIdentity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writerIdentity_ = b; return b; } else { @@ -1482,6 +1658,8 @@ public java.lang.String getWriterIdentity() { } } /** + * + * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1493,18 +1671,22 @@ public java.lang.String getWriterIdentity() {
      * 
* * string writer_identity = 7; + * * @param value The writerIdentity to set. * @return This builder for chaining. */ - public Builder setWriterIdentity( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriterIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } writerIdentity_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1516,6 +1698,7 @@ public Builder setWriterIdentity(
      * 
* * string writer_identity = 7; + * * @return This builder for chaining. */ public Builder clearWriterIdentity() { @@ -1525,6 +1708,8 @@ public Builder clearWriterIdentity() { return this; } /** + * + * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1536,21 +1721,23 @@ public Builder clearWriterIdentity() {
      * 
* * string writer_identity = 7; + * * @param value The bytes for writerIdentity to set. * @return This builder for chaining. */ - public Builder setWriterIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriterIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); writerIdentity_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1560,12 +1747,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.CopyLogEntriesMetadata) } // @@protoc_insertion_point(class_scope:google.logging.v2.CopyLogEntriesMetadata) private static final com.google.logging.v2.CopyLogEntriesMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.CopyLogEntriesMetadata(); } @@ -1574,27 +1761,27 @@ public static com.google.logging.v2.CopyLogEntriesMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CopyLogEntriesMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CopyLogEntriesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1609,6 +1796,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CopyLogEntriesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java similarity index 80% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java index 841942a29..f47ce082e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CopyLogEntriesMetadataOrBuilder extends +public interface CopyLogEntriesMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CopyLogEntriesMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * The create time of an operation.
    * 
@@ -36,24 +60,32 @@ public interface CopyLogEntriesMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The end time of an operation.
    * 
@@ -63,53 +95,70 @@ public interface CopyLogEntriesMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; + * * @return The state. */ com.google.logging.v2.OperationState getState(); /** + * + * *
    * Identifies whether the user has requested cancellation of the operation.
    * 
* * bool cancellation_requested = 4; + * * @return The cancellationRequested. */ boolean getCancellationRequested(); /** + * + * *
    * CopyLogEntries RPC request.
    * 
* * .google.logging.v2.CopyLogEntriesRequest request = 5; + * * @return Whether the request field is set. */ boolean hasRequest(); /** + * + * *
    * CopyLogEntries RPC request.
    * 
* * .google.logging.v2.CopyLogEntriesRequest request = 5; + * * @return The request. */ com.google.logging.v2.CopyLogEntriesRequest getRequest(); /** + * + * *
    * CopyLogEntries RPC request.
    * 
@@ -119,16 +168,21 @@ public interface CopyLogEntriesMetadataOrBuilder extends com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder(); /** + * + * *
    * Estimated progress of the operation (0 - 100%).
    * 
* * int32 progress = 6; + * * @return The progress. */ int getProgress(); /** + * + * *
    * The IAM identity of a service account that must be granted access to the
    * destination.
@@ -140,10 +194,13 @@ public interface CopyLogEntriesMetadataOrBuilder extends
    * 
* * string writer_identity = 7; + * * @return The writerIdentity. */ java.lang.String getWriterIdentity(); /** + * + * *
    * The IAM identity of a service account that must be granted access to the
    * destination.
@@ -155,8 +212,8 @@ public interface CopyLogEntriesMetadataOrBuilder extends
    * 
* * string writer_identity = 7; + * * @return The bytes for writerIdentity. */ - com.google.protobuf.ByteString - getWriterIdentityBytes(); + com.google.protobuf.ByteString getWriterIdentityBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java index 43c844765..933c614f0 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to CopyLogEntries.
  * 
* * Protobuf type {@code google.logging.v2.CopyLogEntriesRequest} */ -public final class CopyLogEntriesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CopyLogEntriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.CopyLogEntriesRequest) CopyLogEntriesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CopyLogEntriesRequest.newBuilder() to construct. private CopyLogEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CopyLogEntriesRequest() { name_ = ""; filter_ = ""; @@ -28,28 +46,32 @@ private CopyLogEntriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CopyLogEntriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CopyLogEntriesRequest.class, com.google.logging.v2.CopyLogEntriesRequest.Builder.class); + com.google.logging.v2.CopyLogEntriesRequest.class, + com.google.logging.v2.CopyLogEntriesRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Log bucket from which to copy log entries.
    *
@@ -59,6 +81,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -67,14 +90,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Log bucket from which to copy log entries.
    *
@@ -84,16 +108,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -102,15 +125,19 @@ public java.lang.String getName() { } public static final int FILTER_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. A filter specifying which log entries to copy. The filter must be
    * no more than 20k characters. An empty filter matches all log entries.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -119,30 +146,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. A filter specifying which log entries to copy. The filter must be
    * no more than 20k characters. An empty filter matches all log entries.
    * 
* * string filter = 3 [(.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 { @@ -151,14 +178,18 @@ public java.lang.String getFilter() { } public static final int DESTINATION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object destination_ = ""; /** + * + * *
    * Required. Destination to which to copy log entries.
    * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destination. */ @java.lang.Override @@ -167,29 +198,29 @@ public java.lang.String getDestination() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destination_ = s; return s; } } /** + * + * *
    * Required. Destination to which to copy log entries.
    * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destination. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationBytes() { + public com.google.protobuf.ByteString getDestinationBytes() { java.lang.Object ref = destination_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destination_ = b; return b; } else { @@ -198,6 +229,7 @@ public java.lang.String getDestination() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +241,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_); } @@ -246,19 +277,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.logging.v2.CopyLogEntriesRequest)) { return super.equals(obj); } - com.google.logging.v2.CopyLogEntriesRequest other = (com.google.logging.v2.CopyLogEntriesRequest) obj; + com.google.logging.v2.CopyLogEntriesRequest other = + (com.google.logging.v2.CopyLogEntriesRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getDestination() - .equals(other.getDestination())) return false; + if (!getName().equals(other.getName())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getDestination().equals(other.getDestination())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -281,132 +310,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesRequest 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.logging.v2.CopyLogEntriesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.CopyLogEntriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CopyLogEntriesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.CopyLogEntriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to CopyLogEntries.
    * 
* * Protobuf type {@code google.logging.v2.CopyLogEntriesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CopyLogEntriesRequest) com.google.logging.v2.CopyLogEntriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CopyLogEntriesRequest.class, com.google.logging.v2.CopyLogEntriesRequest.Builder.class); + com.google.logging.v2.CopyLogEntriesRequest.class, + com.google.logging.v2.CopyLogEntriesRequest.Builder.class); } // Construct using com.google.logging.v2.CopyLogEntriesRequest.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(); @@ -418,9 +451,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; } @java.lang.Override @@ -439,8 +472,11 @@ public com.google.logging.v2.CopyLogEntriesRequest build() { @java.lang.Override public com.google.logging.v2.CopyLogEntriesRequest buildPartial() { - com.google.logging.v2.CopyLogEntriesRequest result = new com.google.logging.v2.CopyLogEntriesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.CopyLogEntriesRequest result = + new com.google.logging.v2.CopyLogEntriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -462,38 +498,39 @@ private void buildPartial0(com.google.logging.v2.CopyLogEntriesRequest 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.logging.v2.CopyLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.CopyLogEntriesRequest)other); + return mergeFrom((com.google.logging.v2.CopyLogEntriesRequest) other); } else { super.mergeFrom(other); return this; @@ -543,27 +580,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: { - destination_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - 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 26: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + destination_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -573,10 +614,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -586,13 +630,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -601,6 +645,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -610,15 +656,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -626,6 +671,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -635,18 +682,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -656,6 +707,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -665,6 +717,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -674,12 +728,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -689,19 +745,21 @@ public Builder setNameBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. A filter specifying which log entries to copy. The filter must be
      * no more than 20k characters. An empty filter matches all log entries.
      * 
* * string filter = 3 [(.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; @@ -710,21 +768,22 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter specifying which log entries to copy. The filter must be
      * no more than 20k characters. An empty filter matches all log entries.
      * 
* * string filter = 3 [(.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 { @@ -732,30 +791,37 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter specifying which log entries to copy. The filter must be
      * no more than 20k characters. An empty filter matches all log entries.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A filter specifying which log entries to copy. The filter must be
      * no more than 20k characters. An empty filter matches all log entries.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -765,18 +831,22 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. A filter specifying which log entries to copy. The filter must be
      * no more than 20k characters. An empty filter matches all log entries.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -786,18 +856,20 @@ public Builder setFilterBytes( private java.lang.Object destination_ = ""; /** + * + * *
      * Required. Destination to which to copy log entries.
      * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destination. */ public java.lang.String getDestination() { java.lang.Object ref = destination_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destination_ = s; return s; @@ -806,20 +878,21 @@ public java.lang.String getDestination() { } } /** + * + * *
      * Required. Destination to which to copy log entries.
      * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destination. */ - public com.google.protobuf.ByteString - getDestinationBytes() { + public com.google.protobuf.ByteString getDestinationBytes() { java.lang.Object ref = destination_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destination_ = b; return b; } else { @@ -827,28 +900,35 @@ public java.lang.String getDestination() { } } /** + * + * *
      * Required. Destination to which to copy log entries.
      * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The destination to set. * @return This builder for chaining. */ - public Builder setDestination( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestination(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } destination_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Destination to which to copy log entries.
      * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDestination() { @@ -858,26 +938,30 @@ public Builder clearDestination() { return this; } /** + * + * *
      * Required. Destination to which to copy log entries.
      * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for destination to set. * @return This builder for chaining. */ - public Builder setDestinationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); destination_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,12 +971,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.CopyLogEntriesRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CopyLogEntriesRequest) private static final com.google.logging.v2.CopyLogEntriesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.CopyLogEntriesRequest(); } @@ -901,27 +985,27 @@ public static com.google.logging.v2.CopyLogEntriesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CopyLogEntriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CopyLogEntriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,6 +1020,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CopyLogEntriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java index bd255965e..5fe41d962 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CopyLogEntriesRequestOrBuilder extends +public interface CopyLogEntriesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CopyLogEntriesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Log bucket from which to copy log entries.
    *
@@ -18,10 +36,13 @@ public interface CopyLogEntriesRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Log bucket from which to copy log entries.
    *
@@ -31,50 +52,60 @@ public interface CopyLogEntriesRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A filter specifying which log entries to copy. The filter must be
    * no more than 20k characters. An empty filter matches all log entries.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. A filter specifying which log entries to copy. The filter must be
    * no more than 20k characters. An empty filter matches all log entries.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Required. Destination to which to copy log entries.
    * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destination. */ java.lang.String getDestination(); /** + * + * *
    * Required. Destination to which to copy log entries.
    * 
* * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destination. */ - com.google.protobuf.ByteString - getDestinationBytes(); + com.google.protobuf.ByteString getDestinationBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java index 453deff7f..29dfeb94f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.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/logging/v2/logging_config.proto @@ -5,52 +20,58 @@ package com.google.logging.v2; /** + * + * *
  * Response type for CopyLogEntries long running operations.
  * 
* * Protobuf type {@code google.logging.v2.CopyLogEntriesResponse} */ -public final class CopyLogEntriesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CopyLogEntriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.CopyLogEntriesResponse) CopyLogEntriesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CopyLogEntriesResponse.newBuilder() to construct. private CopyLogEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CopyLogEntriesResponse() { - } + + private CopyLogEntriesResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CopyLogEntriesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CopyLogEntriesResponse.class, com.google.logging.v2.CopyLogEntriesResponse.Builder.class); + com.google.logging.v2.CopyLogEntriesResponse.class, + com.google.logging.v2.CopyLogEntriesResponse.Builder.class); } public static final int LOG_ENTRIES_COPIED_COUNT_FIELD_NUMBER = 1; private long logEntriesCopiedCount_ = 0L; /** + * + * *
    * Number of log entries copied.
    * 
* * int64 log_entries_copied_count = 1; + * * @return The logEntriesCopiedCount. */ @java.lang.Override @@ -59,6 +80,7 @@ public long getLogEntriesCopiedCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -70,8 +92,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 (logEntriesCopiedCount_ != 0L) { output.writeInt64(1, logEntriesCopiedCount_); } @@ -85,8 +106,7 @@ public int getSerializedSize() { size = 0; if (logEntriesCopiedCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, logEntriesCopiedCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, logEntriesCopiedCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -96,15 +116,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.logging.v2.CopyLogEntriesResponse)) { return super.equals(obj); } - com.google.logging.v2.CopyLogEntriesResponse other = (com.google.logging.v2.CopyLogEntriesResponse) obj; + com.google.logging.v2.CopyLogEntriesResponse other = + (com.google.logging.v2.CopyLogEntriesResponse) obj; - if (getLogEntriesCopiedCount() - != other.getLogEntriesCopiedCount()) return false; + if (getLogEntriesCopiedCount() != other.getLogEntriesCopiedCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -117,139 +137,142 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOG_ENTRIES_COPIED_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLogEntriesCopiedCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLogEntriesCopiedCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesResponse 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.logging.v2.CopyLogEntriesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.CopyLogEntriesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CopyLogEntriesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.CopyLogEntriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Response type for CopyLogEntries long running operations.
    * 
* * Protobuf type {@code google.logging.v2.CopyLogEntriesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CopyLogEntriesResponse) com.google.logging.v2.CopyLogEntriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CopyLogEntriesResponse.class, com.google.logging.v2.CopyLogEntriesResponse.Builder.class); + com.google.logging.v2.CopyLogEntriesResponse.class, + com.google.logging.v2.CopyLogEntriesResponse.Builder.class); } // Construct using com.google.logging.v2.CopyLogEntriesResponse.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(); @@ -259,9 +282,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; } @java.lang.Override @@ -280,8 +303,11 @@ public com.google.logging.v2.CopyLogEntriesResponse build() { @java.lang.Override public com.google.logging.v2.CopyLogEntriesResponse buildPartial() { - com.google.logging.v2.CopyLogEntriesResponse result = new com.google.logging.v2.CopyLogEntriesResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.CopyLogEntriesResponse result = + new com.google.logging.v2.CopyLogEntriesResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -297,38 +323,39 @@ private void buildPartial0(com.google.logging.v2.CopyLogEntriesResponse 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.logging.v2.CopyLogEntriesResponse) { - return mergeFrom((com.google.logging.v2.CopyLogEntriesResponse)other); + return mergeFrom((com.google.logging.v2.CopyLogEntriesResponse) other); } else { super.mergeFrom(other); return this; @@ -366,17 +393,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - logEntriesCopiedCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + logEntriesCopiedCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -386,15 +415,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long logEntriesCopiedCount_ ; + private long logEntriesCopiedCount_; /** + * + * *
      * Number of log entries copied.
      * 
* * int64 log_entries_copied_count = 1; + * * @return The logEntriesCopiedCount. */ @java.lang.Override @@ -402,11 +435,14 @@ public long getLogEntriesCopiedCount() { return logEntriesCopiedCount_; } /** + * + * *
      * Number of log entries copied.
      * 
* * int64 log_entries_copied_count = 1; + * * @param value The logEntriesCopiedCount to set. * @return This builder for chaining. */ @@ -418,11 +454,14 @@ public Builder setLogEntriesCopiedCount(long value) { return this; } /** + * + * *
      * Number of log entries copied.
      * 
* * int64 log_entries_copied_count = 1; + * * @return This builder for chaining. */ public Builder clearLogEntriesCopiedCount() { @@ -431,9 +470,9 @@ public Builder clearLogEntriesCopiedCount() { 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); } @@ -443,12 +482,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.CopyLogEntriesResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.CopyLogEntriesResponse) private static final com.google.logging.v2.CopyLogEntriesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.CopyLogEntriesResponse(); } @@ -457,27 +496,27 @@ public static com.google.logging.v2.CopyLogEntriesResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CopyLogEntriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CopyLogEntriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -492,6 +531,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CopyLogEntriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java new file mode 100644 index 000000000..0add6d854 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java @@ -0,0 +1,39 @@ +/* + * 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/logging/v2/logging_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public interface CopyLogEntriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.CopyLogEntriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Number of log entries copied.
+   * 
+ * + * int64 log_entries_copied_count = 1; + * + * @return The logEntriesCopiedCount. + */ + long getLogEntriesCopiedCount(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java index 811bf9907..830ea71b5 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `CreateBucket`.
  * 
* * Protobuf type {@code google.logging.v2.CreateBucketRequest} */ -public final class CreateBucketRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateBucketRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.CreateBucketRequest) CreateBucketRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateBucketRequest.newBuilder() to construct. private CreateBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateBucketRequest() { parent_ = ""; bucketId_ = ""; @@ -27,29 +45,33 @@ private CreateBucketRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateBucketRequest.class, com.google.logging.v2.CreateBucketRequest.Builder.class); + com.google.logging.v2.CreateBucketRequest.class, + com.google.logging.v2.CreateBucketRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The resource in which to create the log bucket:
    *
@@ -60,7 +82,10 @@ protected java.lang.Object newInstance(
    *   `"projects/my-project/locations/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 +94,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource in which to create the log bucket:
    *
@@ -87,17 +113,18 @@ public java.lang.String getParent() {
    *   `"projects/my-project/locations/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 { @@ -106,9 +133,12 @@ public java.lang.String getParent() { } public static final int BUCKET_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object bucketId_ = ""; /** + * + * *
    * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
    * are limited to 100 characters and can include only letters, digits,
@@ -116,6 +146,7 @@ public java.lang.String getParent() {
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucketId. */ @java.lang.Override @@ -124,14 +155,15 @@ public java.lang.String getBucketId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketId_ = s; return s; } } /** + * + * *
    * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
    * are limited to 100 characters and can include only letters, digits,
@@ -139,16 +171,15 @@ public java.lang.String getBucketId() {
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bucketId. */ @java.lang.Override - public com.google.protobuf.ByteString - getBucketIdBytes() { + public com.google.protobuf.ByteString getBucketIdBytes() { java.lang.Object ref = bucketId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucketId_ = b; return b; } else { @@ -159,6 +190,8 @@ public java.lang.String getBucketId() { public static final int BUCKET_FIELD_NUMBER = 3; private com.google.logging.v2.LogBucket bucket_; /** + * + * *
    * Required. The new bucket. The region specified in the new bucket must be
    * compliant with any Location Restriction Org Policy. The name field in the
@@ -166,6 +199,7 @@ public java.lang.String getBucketId() {
    * 
* * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the bucket field is set. */ @java.lang.Override @@ -173,6 +207,8 @@ public boolean hasBucket() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The new bucket. The region specified in the new bucket must be
    * compliant with any Location Restriction Org Policy. The name field in the
@@ -180,6 +216,7 @@ public boolean hasBucket() {
    * 
* * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucket. */ @java.lang.Override @@ -187,6 +224,8 @@ public com.google.logging.v2.LogBucket getBucket() { return bucket_ == null ? com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; } /** + * + * *
    * Required. The new bucket. The region specified in the new bucket must be
    * compliant with any Location Restriction Org Policy. The name field in the
@@ -201,6 +240,7 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -212,8 +252,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_);
     }
@@ -239,8 +278,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bucketId_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getBucket());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBucket());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -250,21 +288,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.logging.v2.CreateBucketRequest)) {
       return super.equals(obj);
     }
-    com.google.logging.v2.CreateBucketRequest other = (com.google.logging.v2.CreateBucketRequest) obj;
+    com.google.logging.v2.CreateBucketRequest other =
+        (com.google.logging.v2.CreateBucketRequest) obj;
 
-    if (!getParent()
-        .equals(other.getParent())) return false;
-    if (!getBucketId()
-        .equals(other.getBucketId())) return false;
+    if (!getParent().equals(other.getParent())) return false;
+    if (!getBucketId().equals(other.getBucketId())) return false;
     if (hasBucket() != other.hasBucket()) return false;
     if (hasBucket()) {
-      if (!getBucket()
-          .equals(other.getBucket())) return false;
+      if (!getBucket().equals(other.getBucket())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -290,120 +326,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.logging.v2.CreateBucketRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.logging.v2.CreateBucketRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateBucketRequest 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.logging.v2.CreateBucketRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.logging.v2.CreateBucketRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.logging.v2.CreateBucketRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.logging.v2.CreateBucketRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.logging.v2.CreateBucketRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The parameters to `CreateBucket`.
    * 
* * Protobuf type {@code google.logging.v2.CreateBucketRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateBucketRequest) com.google.logging.v2.CreateBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateBucketRequest.class, com.google.logging.v2.CreateBucketRequest.Builder.class); + com.google.logging.v2.CreateBucketRequest.class, + com.google.logging.v2.CreateBucketRequest.Builder.class); } // Construct using com.google.logging.v2.CreateBucketRequest.newBuilder() @@ -411,17 +454,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) { getBucketFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateBucketRequest_descriptor; } @java.lang.Override @@ -458,8 +501,11 @@ public com.google.logging.v2.CreateBucketRequest build() { @java.lang.Override public com.google.logging.v2.CreateBucketRequest buildPartial() { - com.google.logging.v2.CreateBucketRequest result = new com.google.logging.v2.CreateBucketRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.CreateBucketRequest result = + new com.google.logging.v2.CreateBucketRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -474,9 +520,7 @@ private void buildPartial0(com.google.logging.v2.CreateBucketRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.bucket_ = bucketBuilder_ == null - ? bucket_ - : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -486,38 +530,39 @@ private void buildPartial0(com.google.logging.v2.CreateBucketRequest 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.logging.v2.CreateBucketRequest) { - return mergeFrom((com.google.logging.v2.CreateBucketRequest)other); + return mergeFrom((com.google.logging.v2.CreateBucketRequest) other); } else { super.mergeFrom(other); return this; @@ -565,29 +610,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - bucketId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getBucketFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + bucketId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getBucketFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -597,10 +644,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource in which to create the log bucket:
      *
@@ -611,14 +661,16 @@ public Builder mergeFrom(
      *   `"projects/my-project/locations/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; @@ -627,6 +679,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource in which to create the log bucket:
      *
@@ -637,16 +691,17 @@ public java.lang.String getParent() {
      *   `"projects/my-project/locations/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 { @@ -654,6 +709,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource in which to create the log bucket:
      *
@@ -664,19 +721,25 @@ public java.lang.String getParent() {
      *   `"projects/my-project/locations/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. The resource in which to create the log bucket:
      *
@@ -687,7 +750,10 @@ public Builder setParent(
      *   `"projects/my-project/locations/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() { @@ -697,6 +763,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource in which to create the log bucket:
      *
@@ -707,13 +775,17 @@ public Builder clearParent() {
      *   `"projects/my-project/locations/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; @@ -723,6 +795,8 @@ public Builder setParentBytes( private java.lang.Object bucketId_ = ""; /** + * + * *
      * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
      * are limited to 100 characters and can include only letters, digits,
@@ -730,13 +804,13 @@ public Builder setParentBytes(
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucketId. */ public java.lang.String getBucketId() { java.lang.Object ref = bucketId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketId_ = s; return s; @@ -745,6 +819,8 @@ public java.lang.String getBucketId() { } } /** + * + * *
      * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
      * are limited to 100 characters and can include only letters, digits,
@@ -752,15 +828,14 @@ public java.lang.String getBucketId() {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bucketId. */ - public com.google.protobuf.ByteString - getBucketIdBytes() { + public com.google.protobuf.ByteString getBucketIdBytes() { java.lang.Object ref = bucketId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucketId_ = b; return b; } else { @@ -768,6 +843,8 @@ public java.lang.String getBucketId() { } } /** + * + * *
      * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
      * are limited to 100 characters and can include only letters, digits,
@@ -775,18 +852,22 @@ public java.lang.String getBucketId() {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bucketId to set. * @return This builder for chaining. */ - public Builder setBucketId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBucketId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } bucketId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
      * are limited to 100 characters and can include only letters, digits,
@@ -794,6 +875,7 @@ public Builder setBucketId(
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearBucketId() { @@ -803,6 +885,8 @@ public Builder clearBucketId() { return this; } /** + * + * *
      * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
      * are limited to 100 characters and can include only letters, digits,
@@ -810,12 +894,14 @@ public Builder clearBucketId() {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for bucketId to set. * @return This builder for chaining. */ - public Builder setBucketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBucketIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); bucketId_ = value; bitField0_ |= 0x00000002; @@ -825,28 +911,39 @@ public Builder setBucketIdBytes( private com.google.logging.v2.LogBucket bucket_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder> bucketBuilder_; + com.google.logging.v2.LogBucket, + com.google.logging.v2.LogBucket.Builder, + com.google.logging.v2.LogBucketOrBuilder> + bucketBuilder_; /** + * + * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the bucket field is set. */ public boolean hasBucket() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bucket. */ public com.google.logging.v2.LogBucket getBucket() { @@ -857,13 +954,16 @@ public com.google.logging.v2.LogBucket getBucket() { } } /** + * + * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBucket(com.google.logging.v2.LogBucket value) { if (bucketBuilder_ == null) { @@ -879,16 +979,18 @@ public Builder setBucket(com.google.logging.v2.LogBucket value) { return this; } /** + * + * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBucket( - com.google.logging.v2.LogBucket.Builder builderForValue) { + public Builder setBucket(com.google.logging.v2.LogBucket.Builder builderForValue) { if (bucketBuilder_ == null) { bucket_ = builderForValue.build(); } else { @@ -899,19 +1001,22 @@ public Builder setBucket( return this; } /** + * + * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBucket(com.google.logging.v2.LogBucket value) { if (bucketBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - bucket_ != null && - bucket_ != com.google.logging.v2.LogBucket.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && bucket_ != null + && bucket_ != com.google.logging.v2.LogBucket.getDefaultInstance()) { getBucketBuilder().mergeFrom(value); } else { bucket_ = value; @@ -926,13 +1031,16 @@ public Builder mergeBucket(com.google.logging.v2.LogBucket value) { return this; } /** + * + * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000004); @@ -945,13 +1053,16 @@ public Builder clearBucket() { return this; } /** + * + * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogBucket.Builder getBucketBuilder() { bitField0_ |= 0x00000004; @@ -959,47 +1070,55 @@ public com.google.logging.v2.LogBucket.Builder getBucketBuilder() { return getBucketFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() { if (bucketBuilder_ != null) { return bucketBuilder_.getMessageOrBuilder(); } else { - return bucket_ == null ? - com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; + return bucket_ == null ? com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; } } /** + * + * *
      * Required. The new bucket. The region specified in the new bucket must be
      * compliant with any Location Restriction Org Policy. The name field in the
      * bucket is ignored.
      * 
* - * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder> + com.google.logging.v2.LogBucket, + com.google.logging.v2.LogBucket.Builder, + com.google.logging.v2.LogBucketOrBuilder> getBucketFieldBuilder() { if (bucketBuilder_ == null) { - bucketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder>( - getBucket(), - getParentForChildren(), - isClean()); + bucketBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogBucket, + com.google.logging.v2.LogBucket.Builder, + com.google.logging.v2.LogBucketOrBuilder>( + getBucket(), getParentForChildren(), isClean()); bucket_ = null; } return bucketBuilder_; } + @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); } @@ -1009,12 +1128,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.CreateBucketRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CreateBucketRequest) private static final com.google.logging.v2.CreateBucketRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.CreateBucketRequest(); } @@ -1023,27 +1142,27 @@ public static com.google.logging.v2.CreateBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1058,6 +1177,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java index 014f9cf07..8e09834b6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CreateBucketRequestOrBuilder extends +public interface CreateBucketRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CreateBucketRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource in which to create the log bucket:
    *
@@ -19,11 +37,16 @@ public interface CreateBucketRequestOrBuilder extends
    *   `"projects/my-project/locations/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. The resource in which to create the log bucket:
    *
@@ -34,13 +57,17 @@ public interface CreateBucketRequestOrBuilder extends
    *   `"projects/my-project/locations/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(); /** + * + * *
    * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
    * are limited to 100 characters and can include only letters, digits,
@@ -48,10 +75,13 @@ public interface CreateBucketRequestOrBuilder extends
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucketId. */ java.lang.String getBucketId(); /** + * + * *
    * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
    * are limited to 100 characters and can include only letters, digits,
@@ -59,12 +89,14 @@ public interface CreateBucketRequestOrBuilder extends
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bucketId. */ - com.google.protobuf.ByteString - getBucketIdBytes(); + com.google.protobuf.ByteString getBucketIdBytes(); /** + * + * *
    * Required. The new bucket. The region specified in the new bucket must be
    * compliant with any Location Restriction Org Policy. The name field in the
@@ -72,10 +104,13 @@ public interface CreateBucketRequestOrBuilder extends
    * 
* * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the bucket field is set. */ boolean hasBucket(); /** + * + * *
    * Required. The new bucket. The region specified in the new bucket must be
    * compliant with any Location Restriction Org Policy. The name field in the
@@ -83,10 +118,13 @@ public interface CreateBucketRequestOrBuilder extends
    * 
* * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucket. */ com.google.logging.v2.LogBucket getBucket(); /** + * + * *
    * Required. The new bucket. The region specified in the new bucket must be
    * compliant with any Location Restriction Org Policy. The name field in the
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
similarity index 65%
rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
index 173f943ff..efd196ab9 100644
--- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.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/logging/v2/logging_config.proto
 
@@ -5,50 +20,57 @@
 package com.google.logging.v2;
 
 /**
+ *
+ *
  * 
  * The parameters to `CreateExclusion`.
  * 
* * Protobuf type {@code google.logging.v2.CreateExclusionRequest} */ -public final class CreateExclusionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateExclusionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.CreateExclusionRequest) CreateExclusionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateExclusionRequest.newBuilder() to construct. private CreateExclusionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateExclusionRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateExclusionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateExclusionRequest.class, com.google.logging.v2.CreateExclusionRequest.Builder.class); + com.google.logging.v2.CreateExclusionRequest.class, + com.google.logging.v2.CreateExclusionRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource in which to create the exclusion:
    *
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    *   `"organizations/123456789"`
    * 
* - * 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 @@ -72,14 +97,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource in which to create the exclusion:
    *
@@ -94,17 +120,18 @@ public java.lang.String getParent() {
    *   `"organizations/123456789"`
    * 
* - * 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 { @@ -115,12 +142,16 @@ public java.lang.String getParent() { public static final int EXCLUSION_FIELD_NUMBER = 2; private com.google.logging.v2.LogExclusion exclusion_; /** + * + * *
    * Required. The new exclusion, whose `name` parameter is an exclusion name
    * that is not already used in the parent resource.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the exclusion field is set. */ @java.lang.Override @@ -128,32 +159,44 @@ public boolean hasExclusion() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The new exclusion, whose `name` parameter is an exclusion name
    * that is not already used in the parent resource.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The exclusion. */ @java.lang.Override public com.google.logging.v2.LogExclusion getExclusion() { - return exclusion_ == null ? com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; + return exclusion_ == null + ? com.google.logging.v2.LogExclusion.getDefaultInstance() + : exclusion_; } /** + * + * *
    * Required. The new exclusion, whose `name` parameter is an exclusion name
    * that is not already used in the parent resource.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { - return exclusion_ == null ? com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; + return exclusion_ == null + ? com.google.logging.v2.LogExclusion.getDefaultInstance() + : exclusion_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -165,8 +208,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_); } @@ -186,8 +228,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExclusion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -197,19 +238,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.logging.v2.CreateExclusionRequest)) { return super.equals(obj); } - com.google.logging.v2.CreateExclusionRequest other = (com.google.logging.v2.CreateExclusionRequest) obj; + com.google.logging.v2.CreateExclusionRequest other = + (com.google.logging.v2.CreateExclusionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasExclusion() != other.hasExclusion()) return false; if (hasExclusion()) { - if (!getExclusion() - .equals(other.getExclusion())) return false; + if (!getExclusion().equals(other.getExclusion())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -233,120 +273,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CreateExclusionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.CreateExclusionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateExclusionRequest 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.logging.v2.CreateExclusionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CreateExclusionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.CreateExclusionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CreateExclusionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.CreateExclusionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `CreateExclusion`.
    * 
* * Protobuf type {@code google.logging.v2.CreateExclusionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateExclusionRequest) com.google.logging.v2.CreateExclusionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateExclusionRequest.class, com.google.logging.v2.CreateExclusionRequest.Builder.class); + com.google.logging.v2.CreateExclusionRequest.class, + com.google.logging.v2.CreateExclusionRequest.Builder.class); } // Construct using com.google.logging.v2.CreateExclusionRequest.newBuilder() @@ -354,17 +401,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) { getExclusionFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +426,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateExclusionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateExclusionRequest_descriptor; } @java.lang.Override @@ -400,8 +447,11 @@ public com.google.logging.v2.CreateExclusionRequest build() { @java.lang.Override public com.google.logging.v2.CreateExclusionRequest buildPartial() { - com.google.logging.v2.CreateExclusionRequest result = new com.google.logging.v2.CreateExclusionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.CreateExclusionRequest result = + new com.google.logging.v2.CreateExclusionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -413,9 +463,7 @@ private void buildPartial0(com.google.logging.v2.CreateExclusionRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.exclusion_ = exclusionBuilder_ == null - ? exclusion_ - : exclusionBuilder_.build(); + result.exclusion_ = exclusionBuilder_ == null ? exclusion_ : exclusionBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -425,38 +473,39 @@ private void buildPartial0(com.google.logging.v2.CreateExclusionRequest 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.logging.v2.CreateExclusionRequest) { - return mergeFrom((com.google.logging.v2.CreateExclusionRequest)other); + return mergeFrom((com.google.logging.v2.CreateExclusionRequest) other); } else { super.mergeFrom(other); return this; @@ -499,24 +548,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExclusionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExclusionFieldBuilder().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) { @@ -526,10 +576,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -544,14 +597,16 @@ public Builder mergeFrom(
      *   `"organizations/123456789"`
      * 
* - * 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; @@ -560,6 +615,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -574,16 +631,17 @@ public java.lang.String getParent() {
      *   `"organizations/123456789"`
      * 
* - * 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 { @@ -591,6 +649,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -605,19 +665,25 @@ public java.lang.String getParent() {
      *   `"organizations/123456789"`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -632,7 +698,10 @@ public Builder setParent(
      *   `"organizations/123456789"`
      * 
* - * 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() { @@ -642,6 +711,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -656,13 +727,17 @@ public Builder clearParent() {
      *   `"organizations/123456789"`
      * 
* - * 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; @@ -672,42 +747,61 @@ public Builder setParentBytes( private com.google.logging.v2.LogExclusion exclusion_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> exclusionBuilder_; + com.google.logging.v2.LogExclusion, + com.google.logging.v2.LogExclusion.Builder, + com.google.logging.v2.LogExclusionOrBuilder> + exclusionBuilder_; /** + * + * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the exclusion field is set. */ public boolean hasExclusion() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The exclusion. */ public com.google.logging.v2.LogExclusion getExclusion() { if (exclusionBuilder_ == null) { - return exclusion_ == null ? com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; + return exclusion_ == null + ? com.google.logging.v2.LogExclusion.getDefaultInstance() + : exclusion_; } else { return exclusionBuilder_.getMessage(); } } /** + * + * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setExclusion(com.google.logging.v2.LogExclusion value) { if (exclusionBuilder_ == null) { @@ -723,15 +817,18 @@ public Builder setExclusion(com.google.logging.v2.LogExclusion value) { return this; } /** + * + * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setExclusion( - com.google.logging.v2.LogExclusion.Builder builderForValue) { + public Builder setExclusion(com.google.logging.v2.LogExclusion.Builder builderForValue) { if (exclusionBuilder_ == null) { exclusion_ = builderForValue.build(); } else { @@ -742,18 +839,22 @@ public Builder setExclusion( return this; } /** + * + * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeExclusion(com.google.logging.v2.LogExclusion value) { if (exclusionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - exclusion_ != null && - exclusion_ != com.google.logging.v2.LogExclusion.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && exclusion_ != null + && exclusion_ != com.google.logging.v2.LogExclusion.getDefaultInstance()) { getExclusionBuilder().mergeFrom(value); } else { exclusion_ = value; @@ -768,12 +869,16 @@ public Builder mergeExclusion(com.google.logging.v2.LogExclusion value) { return this; } /** + * + * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearExclusion() { bitField0_ = (bitField0_ & ~0x00000002); @@ -786,12 +891,16 @@ public Builder clearExclusion() { return this; } /** + * + * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogExclusion.Builder getExclusionBuilder() { bitField0_ |= 0x00000002; @@ -799,45 +908,57 @@ public com.google.logging.v2.LogExclusion.Builder getExclusionBuilder() { return getExclusionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { if (exclusionBuilder_ != null) { return exclusionBuilder_.getMessageOrBuilder(); } else { - return exclusion_ == null ? - com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; + return exclusion_ == null + ? com.google.logging.v2.LogExclusion.getDefaultInstance() + : exclusion_; } } /** + * + * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> + com.google.logging.v2.LogExclusion, + com.google.logging.v2.LogExclusion.Builder, + com.google.logging.v2.LogExclusionOrBuilder> getExclusionFieldBuilder() { if (exclusionBuilder_ == null) { - exclusionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder>( - getExclusion(), - getParentForChildren(), - isClean()); + exclusionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogExclusion, + com.google.logging.v2.LogExclusion.Builder, + com.google.logging.v2.LogExclusionOrBuilder>( + getExclusion(), getParentForChildren(), isClean()); exclusion_ = null; } return exclusionBuilder_; } + @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); } @@ -847,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.CreateExclusionRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CreateExclusionRequest) private static final com.google.logging.v2.CreateExclusionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.CreateExclusionRequest(); } @@ -861,27 +982,27 @@ public static com.google.logging.v2.CreateExclusionRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateExclusionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExclusionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +1017,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateExclusionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java index 7f0e9801a..c3d61578c 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CreateExclusionRequestOrBuilder extends +public interface CreateExclusionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CreateExclusionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource in which to create the exclusion:
    *
@@ -23,11 +41,16 @@ public interface CreateExclusionRequestOrBuilder extends
    *   `"organizations/123456789"`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource in which to create the exclusion:
    *
@@ -42,39 +65,52 @@ public interface CreateExclusionRequestOrBuilder extends
    *   `"organizations/123456789"`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The new exclusion, whose `name` parameter is an exclusion name
    * that is not already used in the parent resource.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the exclusion field is set. */ boolean hasExclusion(); /** + * + * *
    * Required. The new exclusion, whose `name` parameter is an exclusion name
    * that is not already used in the parent resource.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The exclusion. */ com.google.logging.v2.LogExclusion getExclusion(); /** + * + * *
    * Required. The new exclusion, whose `name` parameter is an exclusion name
    * that is not already used in the parent resource.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java index 555d01b07..6fde5c491 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to CreateLink.
  * 
* * Protobuf type {@code google.logging.v2.CreateLinkRequest} */ -public final class CreateLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.CreateLinkRequest) CreateLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateLinkRequest.newBuilder() to construct. private CreateLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateLinkRequest() { parent_ = ""; linkId_ = ""; @@ -27,29 +45,33 @@ private CreateLinkRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateLinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateLinkRequest.class, com.google.logging.v2.CreateLinkRequest.Builder.class); + com.google.logging.v2.CreateLinkRequest.class, + com.google.logging.v2.CreateLinkRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The full resource name of the bucket to create a link for.
    *
@@ -59,7 +81,10 @@ protected java.lang.Object newInstance(
    *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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 @@ -68,14 +93,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The full resource name of the bucket to create a link for.
    *
@@ -85,17 +111,18 @@ public java.lang.String getParent() {
    *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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 { @@ -106,11 +133,14 @@ public java.lang.String getParent() { public static final int LINK_FIELD_NUMBER = 2; private com.google.logging.v2.Link link_; /** + * + * *
    * Required. The new link.
    * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the link field is set. */ @java.lang.Override @@ -118,11 +148,14 @@ public boolean hasLink() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The new link.
    * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The link. */ @java.lang.Override @@ -130,6 +163,8 @@ public com.google.logging.v2.Link getLink() { return link_ == null ? com.google.logging.v2.Link.getDefaultInstance() : link_; } /** + * + * *
    * Required. The new link.
    * 
@@ -142,9 +177,12 @@ public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() { } public static final int LINK_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object linkId_ = ""; /** + * + * *
    * Required. The ID to use for the link. The link_id can have up to 100
    * characters. A valid link_id must only have alphanumeric characters and
@@ -152,6 +190,7 @@ public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() {
    * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The linkId. */ @java.lang.Override @@ -160,14 +199,15 @@ public java.lang.String getLinkId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); linkId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for the link. The link_id can have up to 100
    * characters. A valid link_id must only have alphanumeric characters and
@@ -175,16 +215,15 @@ public java.lang.String getLinkId() {
    * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for linkId. */ @java.lang.Override - public com.google.protobuf.ByteString - getLinkIdBytes() { + public com.google.protobuf.ByteString getLinkIdBytes() { java.lang.Object ref = linkId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); linkId_ = b; return b; } else { @@ -193,6 +232,7 @@ public java.lang.String getLinkId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +244,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -228,8 +267,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLink()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLink()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, linkId_); @@ -242,22 +280,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.logging.v2.CreateLinkRequest)) { return super.equals(obj); } com.google.logging.v2.CreateLinkRequest other = (com.google.logging.v2.CreateLinkRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasLink() != other.hasLink()) return false; if (hasLink()) { - if (!getLink() - .equals(other.getLink())) return false; + if (!getLink().equals(other.getLink())) return false; } - if (!getLinkId() - .equals(other.getLinkId())) return false; + if (!getLinkId().equals(other.getLinkId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,120 +317,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CreateLinkRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.CreateLinkRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateLinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateLinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateLinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateLinkRequest 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.logging.v2.CreateLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CreateLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.CreateLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CreateLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.CreateLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.CreateLinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.CreateLinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to CreateLink.
    * 
* * Protobuf type {@code google.logging.v2.CreateLinkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateLinkRequest) com.google.logging.v2.CreateLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateLinkRequest.class, com.google.logging.v2.CreateLinkRequest.Builder.class); + com.google.logging.v2.CreateLinkRequest.class, + com.google.logging.v2.CreateLinkRequest.Builder.class); } // Construct using com.google.logging.v2.CreateLinkRequest.newBuilder() @@ -403,17 +445,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) { getLinkFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +471,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateLinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateLinkRequest_descriptor; } @java.lang.Override @@ -450,8 +492,11 @@ public com.google.logging.v2.CreateLinkRequest build() { @java.lang.Override public com.google.logging.v2.CreateLinkRequest buildPartial() { - com.google.logging.v2.CreateLinkRequest result = new com.google.logging.v2.CreateLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.CreateLinkRequest result = + new com.google.logging.v2.CreateLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -463,9 +508,7 @@ private void buildPartial0(com.google.logging.v2.CreateLinkRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.link_ = linkBuilder_ == null - ? link_ - : linkBuilder_.build(); + result.link_ = linkBuilder_ == null ? link_ : linkBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -478,38 +521,39 @@ private void buildPartial0(com.google.logging.v2.CreateLinkRequest 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.logging.v2.CreateLinkRequest) { - return mergeFrom((com.google.logging.v2.CreateLinkRequest)other); + return mergeFrom((com.google.logging.v2.CreateLinkRequest) other); } else { super.mergeFrom(other); return this; @@ -557,29 +601,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getLinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - linkId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + linkId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -589,10 +635,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -602,14 +651,16 @@ public Builder mergeFrom(
      *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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; @@ -618,6 +669,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -627,16 +680,17 @@ public java.lang.String getParent() {
      *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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 { @@ -644,6 +698,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -653,19 +709,25 @@ public java.lang.String getParent() {
      *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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. The full resource name of the bucket to create a link for.
      *
@@ -675,7 +737,10 @@ public Builder setParent(
      *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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() { @@ -685,6 +750,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -694,13 +761,17 @@ public Builder clearParent() {
      *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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; @@ -710,24 +781,33 @@ public Builder setParentBytes( private com.google.logging.v2.Link link_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.Link, com.google.logging.v2.Link.Builder, com.google.logging.v2.LinkOrBuilder> linkBuilder_; + com.google.logging.v2.Link, + com.google.logging.v2.Link.Builder, + com.google.logging.v2.LinkOrBuilder> + linkBuilder_; /** + * + * *
      * Required. The new link.
      * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the link field is set. */ public boolean hasLink() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The new link.
      * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The link. */ public com.google.logging.v2.Link getLink() { @@ -738,6 +818,8 @@ public com.google.logging.v2.Link getLink() { } } /** + * + * *
      * Required. The new link.
      * 
@@ -758,14 +840,15 @@ public Builder setLink(com.google.logging.v2.Link value) { return this; } /** + * + * *
      * Required. The new link.
      * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setLink( - com.google.logging.v2.Link.Builder builderForValue) { + public Builder setLink(com.google.logging.v2.Link.Builder builderForValue) { if (linkBuilder_ == null) { link_ = builderForValue.build(); } else { @@ -776,6 +859,8 @@ public Builder setLink( return this; } /** + * + * *
      * Required. The new link.
      * 
@@ -784,9 +869,9 @@ public Builder setLink( */ public Builder mergeLink(com.google.logging.v2.Link value) { if (linkBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - link_ != null && - link_ != com.google.logging.v2.Link.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && link_ != null + && link_ != com.google.logging.v2.Link.getDefaultInstance()) { getLinkBuilder().mergeFrom(value); } else { link_ = value; @@ -801,6 +886,8 @@ public Builder mergeLink(com.google.logging.v2.Link value) { return this; } /** + * + * *
      * Required. The new link.
      * 
@@ -818,6 +905,8 @@ public Builder clearLink() { return this; } /** + * + * *
      * Required. The new link.
      * 
@@ -830,6 +919,8 @@ public com.google.logging.v2.Link.Builder getLinkBuilder() { return getLinkFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The new link.
      * 
@@ -840,11 +931,12 @@ public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() { if (linkBuilder_ != null) { return linkBuilder_.getMessageOrBuilder(); } else { - return link_ == null ? - com.google.logging.v2.Link.getDefaultInstance() : link_; + return link_ == null ? com.google.logging.v2.Link.getDefaultInstance() : link_; } } /** + * + * *
      * Required. The new link.
      * 
@@ -852,14 +944,16 @@ public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() { * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.Link, com.google.logging.v2.Link.Builder, com.google.logging.v2.LinkOrBuilder> + com.google.logging.v2.Link, + com.google.logging.v2.Link.Builder, + com.google.logging.v2.LinkOrBuilder> getLinkFieldBuilder() { if (linkBuilder_ == null) { - linkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.Link, com.google.logging.v2.Link.Builder, com.google.logging.v2.LinkOrBuilder>( - getLink(), - getParentForChildren(), - isClean()); + linkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.Link, + com.google.logging.v2.Link.Builder, + com.google.logging.v2.LinkOrBuilder>(getLink(), getParentForChildren(), isClean()); link_ = null; } return linkBuilder_; @@ -867,6 +961,8 @@ public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() { private java.lang.Object linkId_ = ""; /** + * + * *
      * Required. The ID to use for the link. The link_id can have up to 100
      * characters. A valid link_id must only have alphanumeric characters and
@@ -874,13 +970,13 @@ public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() {
      * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The linkId. */ public java.lang.String getLinkId() { java.lang.Object ref = linkId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); linkId_ = s; return s; @@ -889,6 +985,8 @@ public java.lang.String getLinkId() { } } /** + * + * *
      * Required. The ID to use for the link. The link_id can have up to 100
      * characters. A valid link_id must only have alphanumeric characters and
@@ -896,15 +994,14 @@ public java.lang.String getLinkId() {
      * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for linkId. */ - public com.google.protobuf.ByteString - getLinkIdBytes() { + public com.google.protobuf.ByteString getLinkIdBytes() { java.lang.Object ref = linkId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); linkId_ = b; return b; } else { @@ -912,6 +1009,8 @@ public java.lang.String getLinkId() { } } /** + * + * *
      * Required. The ID to use for the link. The link_id can have up to 100
      * characters. A valid link_id must only have alphanumeric characters and
@@ -919,18 +1018,22 @@ public java.lang.String getLinkId() {
      * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The linkId to set. * @return This builder for chaining. */ - public Builder setLinkId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLinkId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } linkId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the link. The link_id can have up to 100
      * characters. A valid link_id must only have alphanumeric characters and
@@ -938,6 +1041,7 @@ public Builder setLinkId(
      * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLinkId() { @@ -947,6 +1051,8 @@ public Builder clearLinkId() { return this; } /** + * + * *
      * Required. The ID to use for the link. The link_id can have up to 100
      * characters. A valid link_id must only have alphanumeric characters and
@@ -954,21 +1060,23 @@ public Builder clearLinkId() {
      * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for linkId to set. * @return This builder for chaining. */ - public Builder setLinkIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLinkIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); linkId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -978,12 +1086,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.CreateLinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CreateLinkRequest) private static final com.google.logging.v2.CreateLinkRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.CreateLinkRequest(); } @@ -992,27 +1100,27 @@ public static com.google.logging.v2.CreateLinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1027,6 +1135,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateLinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java index cad2497a8..9140e9f60 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CreateLinkRequestOrBuilder extends +public interface CreateLinkRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CreateLinkRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The full resource name of the bucket to create a link for.
    *
@@ -18,11 +36,16 @@ public interface CreateLinkRequestOrBuilder extends
    *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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. The full resource name of the bucket to create a link for.
    *
@@ -32,31 +55,41 @@ public interface CreateLinkRequestOrBuilder extends
    *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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(); /** + * + * *
    * Required. The new link.
    * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the link field is set. */ boolean hasLink(); /** + * + * *
    * Required. The new link.
    * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The link. */ com.google.logging.v2.Link getLink(); /** + * + * *
    * Required. The new link.
    * 
@@ -66,6 +99,8 @@ public interface CreateLinkRequestOrBuilder extends com.google.logging.v2.LinkOrBuilder getLinkOrBuilder(); /** + * + * *
    * Required. The ID to use for the link. The link_id can have up to 100
    * characters. A valid link_id must only have alphanumeric characters and
@@ -73,10 +108,13 @@ public interface CreateLinkRequestOrBuilder extends
    * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The linkId. */ java.lang.String getLinkId(); /** + * + * *
    * Required. The ID to use for the link. The link_id can have up to 100
    * characters. A valid link_id must only have alphanumeric characters and
@@ -84,8 +122,8 @@ public interface CreateLinkRequestOrBuilder extends
    * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for linkId. */ - com.google.protobuf.ByteString - getLinkIdBytes(); + com.google.protobuf.ByteString getLinkIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java index f79bfbc0b..62639a02f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.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/logging/v2/logging_metrics.proto @@ -5,50 +20,57 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to CreateLogMetric.
  * 
* * Protobuf type {@code google.logging.v2.CreateLogMetricRequest} */ -public final class CreateLogMetricRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateLogMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.CreateLogMetricRequest) CreateLogMetricRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateLogMetricRequest.newBuilder() to construct. private CreateLogMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateLogMetricRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateLogMetricRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateLogMetricRequest.class, com.google.logging.v2.CreateLogMetricRequest.Builder.class); + com.google.logging.v2.CreateLogMetricRequest.class, + com.google.logging.v2.CreateLogMetricRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The resource name of the project in which to create the metric:
    *
@@ -57,7 +79,10 @@ protected java.lang.Object newInstance(
    * The new metric must be provided in the request.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,14 +91,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the project in which to create the metric:
    *
@@ -82,17 +108,18 @@ public java.lang.String getParent() {
    * The new metric must be provided in the request.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -103,12 +130,15 @@ public java.lang.String getParent() { public static final int METRIC_FIELD_NUMBER = 2; private com.google.logging.v2.LogMetric metric_; /** + * + * *
    * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the metric field is set. */ @java.lang.Override @@ -116,12 +146,15 @@ public boolean hasMetric() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The metric. */ @java.lang.Override @@ -129,6 +162,8 @@ public com.google.logging.v2.LogMetric getMetric() { return metric_ == null ? com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; } /** + * + * *
    * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
@@ -142,6 +177,7 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -153,8 +189,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_);
     }
@@ -174,8 +209,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getMetric());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetric());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -185,19 +219,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.logging.v2.CreateLogMetricRequest)) {
       return super.equals(obj);
     }
-    com.google.logging.v2.CreateLogMetricRequest other = (com.google.logging.v2.CreateLogMetricRequest) obj;
+    com.google.logging.v2.CreateLogMetricRequest other =
+        (com.google.logging.v2.CreateLogMetricRequest) obj;
 
-    if (!getParent()
-        .equals(other.getParent())) return false;
+    if (!getParent().equals(other.getParent())) return false;
     if (hasMetric() != other.hasMetric()) return false;
     if (hasMetric()) {
-      if (!getMetric()
-          .equals(other.getMetric())) return false;
+      if (!getMetric().equals(other.getMetric())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -221,120 +254,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.logging.v2.CreateLogMetricRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest 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.logging.v2.CreateLogMetricRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.logging.v2.CreateLogMetricRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.logging.v2.CreateLogMetricRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.logging.v2.CreateLogMetricRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.logging.v2.CreateLogMetricRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The parameters to CreateLogMetric.
    * 
* * Protobuf type {@code google.logging.v2.CreateLogMetricRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateLogMetricRequest) com.google.logging.v2.CreateLogMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateLogMetricRequest.class, com.google.logging.v2.CreateLogMetricRequest.Builder.class); + com.google.logging.v2.CreateLogMetricRequest.class, + com.google.logging.v2.CreateLogMetricRequest.Builder.class); } // Construct using com.google.logging.v2.CreateLogMetricRequest.newBuilder() @@ -342,17 +382,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) { getMetricFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -367,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; } @java.lang.Override @@ -388,8 +428,11 @@ public com.google.logging.v2.CreateLogMetricRequest build() { @java.lang.Override public com.google.logging.v2.CreateLogMetricRequest buildPartial() { - com.google.logging.v2.CreateLogMetricRequest result = new com.google.logging.v2.CreateLogMetricRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.CreateLogMetricRequest result = + new com.google.logging.v2.CreateLogMetricRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -401,9 +444,7 @@ private void buildPartial0(com.google.logging.v2.CreateLogMetricRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.metric_ = metricBuilder_ == null - ? metric_ - : metricBuilder_.build(); + result.metric_ = metricBuilder_ == null ? metric_ : metricBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -413,38 +454,39 @@ private void buildPartial0(com.google.logging.v2.CreateLogMetricRequest 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.logging.v2.CreateLogMetricRequest) { - return mergeFrom((com.google.logging.v2.CreateLogMetricRequest)other); + return mergeFrom((com.google.logging.v2.CreateLogMetricRequest) other); } else { super.mergeFrom(other); return this; @@ -487,24 +529,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getMetricFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getMetricFieldBuilder().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) { @@ -514,10 +557,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -526,14 +572,16 @@ public Builder mergeFrom(
      * The new metric must be provided in the request.
      * 
* - * 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; @@ -542,6 +590,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -550,16 +600,17 @@ public java.lang.String getParent() {
      * The new metric must be provided in the request.
      * 
* - * 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 { @@ -567,6 +618,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -575,19 +628,25 @@ public java.lang.String getParent() {
      * The new metric must be provided in the request.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -596,7 +655,10 @@ public Builder setParent(
      * The new metric must be provided in the request.
      * 
* - * 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() { @@ -606,6 +668,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -614,13 +678,17 @@ public Builder clearParent() {
      * The new metric must be provided in the request.
      * 
* - * 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; @@ -630,26 +698,37 @@ public Builder setParentBytes( private com.google.logging.v2.LogMetric metric_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder> metricBuilder_; + com.google.logging.v2.LogMetric, + com.google.logging.v2.LogMetric.Builder, + com.google.logging.v2.LogMetricOrBuilder> + metricBuilder_; /** + * + * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the metric field is set. */ public boolean hasMetric() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The metric. */ public com.google.logging.v2.LogMetric getMetric() { @@ -660,12 +739,15 @@ public com.google.logging.v2.LogMetric getMetric() { } } /** + * + * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMetric(com.google.logging.v2.LogMetric value) { if (metricBuilder_ == null) { @@ -681,15 +763,17 @@ public Builder setMetric(com.google.logging.v2.LogMetric value) { return this; } /** + * + * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setMetric( - com.google.logging.v2.LogMetric.Builder builderForValue) { + public Builder setMetric(com.google.logging.v2.LogMetric.Builder builderForValue) { if (metricBuilder_ == null) { metric_ = builderForValue.build(); } else { @@ -700,18 +784,21 @@ public Builder setMetric( return this; } /** + * + * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMetric(com.google.logging.v2.LogMetric value) { if (metricBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - metric_ != null && - metric_ != com.google.logging.v2.LogMetric.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && metric_ != null + && metric_ != com.google.logging.v2.LogMetric.getDefaultInstance()) { getMetricBuilder().mergeFrom(value); } else { metric_ = value; @@ -726,12 +813,15 @@ public Builder mergeMetric(com.google.logging.v2.LogMetric value) { return this; } /** + * + * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMetric() { bitField0_ = (bitField0_ & ~0x00000002); @@ -744,12 +834,15 @@ public Builder clearMetric() { return this; } /** + * + * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogMetric.Builder getMetricBuilder() { bitField0_ |= 0x00000002; @@ -757,45 +850,53 @@ public com.google.logging.v2.LogMetric.Builder getMetricBuilder() { return getMetricFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { if (metricBuilder_ != null) { return metricBuilder_.getMessageOrBuilder(); } else { - return metric_ == null ? - com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; + return metric_ == null ? com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; } } /** + * + * *
      * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder> + com.google.logging.v2.LogMetric, + com.google.logging.v2.LogMetric.Builder, + com.google.logging.v2.LogMetricOrBuilder> getMetricFieldBuilder() { if (metricBuilder_ == null) { - metricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder>( - getMetric(), - getParentForChildren(), - isClean()); + metricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogMetric, + com.google.logging.v2.LogMetric.Builder, + com.google.logging.v2.LogMetricOrBuilder>( + getMetric(), getParentForChildren(), isClean()); metric_ = null; } return metricBuilder_; } + @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); } @@ -805,12 +906,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.CreateLogMetricRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CreateLogMetricRequest) private static final com.google.logging.v2.CreateLogMetricRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.CreateLogMetricRequest(); } @@ -819,27 +920,27 @@ public static com.google.logging.v2.CreateLogMetricRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateLogMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateLogMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -854,6 +955,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateLogMetricRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java index 9bf0e0a9d..913df612d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.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/logging/v2/logging_metrics.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CreateLogMetricRequestOrBuilder extends +public interface CreateLogMetricRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CreateLogMetricRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the project in which to create the metric:
    *
@@ -17,11 +35,16 @@ public interface CreateLogMetricRequestOrBuilder extends
    * The new metric must be provided in the request.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource name of the project in which to create the metric:
    *
@@ -30,33 +53,43 @@ public interface CreateLogMetricRequestOrBuilder extends
    * The new metric must be provided in the request.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the metric field is set. */ boolean hasMetric(); /** + * + * *
    * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The metric. */ com.google.logging.v2.LogMetric getMetric(); /** + * + * *
    * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java
similarity index 72%
rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java
rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java
index 2756d36e5..e6c996b23 100644
--- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.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/logging/v2/logging_config.proto
 
@@ -5,50 +20,57 @@
 package com.google.logging.v2;
 
 /**
+ *
+ *
  * 
  * The parameters to `CreateSink`.
  * 
* * Protobuf type {@code google.logging.v2.CreateSinkRequest} */ -public final class CreateSinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateSinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.CreateSinkRequest) CreateSinkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateSinkRequest.newBuilder() to construct. private CreateSinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateSinkRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateSinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateSinkRequest.class, com.google.logging.v2.CreateSinkRequest.Builder.class); + com.google.logging.v2.CreateSinkRequest.class, + com.google.logging.v2.CreateSinkRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The resource in which to create the sink:
    *
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    *   `"organizations/123456789"`
    * 
* - * 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 @@ -72,14 +97,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource in which to create the sink:
    *
@@ -94,17 +120,18 @@ public java.lang.String getParent() {
    *   `"organizations/123456789"`
    * 
* - * 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 { @@ -115,12 +142,15 @@ public java.lang.String getParent() { public static final int SINK_FIELD_NUMBER = 2; private com.google.logging.v2.LogSink sink_; /** + * + * *
    * Required. The new sink, whose `name` parameter is a sink identifier that
    * is not already in use.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the sink field is set. */ @java.lang.Override @@ -128,12 +158,15 @@ public boolean hasSink() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The new sink, whose `name` parameter is a sink identifier that
    * is not already in use.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sink. */ @java.lang.Override @@ -141,6 +174,8 @@ public com.google.logging.v2.LogSink getSink() { return sink_ == null ? com.google.logging.v2.LogSink.getDefaultInstance() : sink_; } /** + * + * *
    * Required. The new sink, whose `name` parameter is a sink identifier that
    * is not already in use.
@@ -156,6 +191,8 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
   public static final int UNIQUE_WRITER_IDENTITY_FIELD_NUMBER = 3;
   private boolean uniqueWriterIdentity_ = false;
   /**
+   *
+   *
    * 
    * Optional. Determines the kind of IAM identity returned as `writer_identity`
    * in the new sink. If this value is omitted or set to false, and if the
@@ -172,6 +209,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -180,6 +218,7 @@ public boolean getUniqueWriterIdentity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +230,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_); } @@ -215,12 +253,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSink()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSink()); } if (uniqueWriterIdentity_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, uniqueWriterIdentity_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, uniqueWriterIdentity_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,22 +266,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.logging.v2.CreateSinkRequest)) { return super.equals(obj); } com.google.logging.v2.CreateSinkRequest other = (com.google.logging.v2.CreateSinkRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasSink() != other.hasSink()) return false; if (hasSink()) { - if (!getSink() - .equals(other.getSink())) return false; + if (!getSink().equals(other.getSink())) return false; } - if (getUniqueWriterIdentity() - != other.getUniqueWriterIdentity()) return false; + if (getUniqueWriterIdentity() != other.getUniqueWriterIdentity()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,127 +297,133 @@ public int hashCode() { hash = (53 * hash) + getSink().hashCode(); } hash = (37 * hash) + UNIQUE_WRITER_IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUniqueWriterIdentity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUniqueWriterIdentity()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.logging.v2.CreateSinkRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.CreateSinkRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateSinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateSinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateSinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateSinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateSinkRequest 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.logging.v2.CreateSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CreateSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.CreateSinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CreateSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.CreateSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.CreateSinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.CreateSinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `CreateSink`.
    * 
* * Protobuf type {@code google.logging.v2.CreateSinkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateSinkRequest) com.google.logging.v2.CreateSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateSinkRequest.class, com.google.logging.v2.CreateSinkRequest.Builder.class); + com.google.logging.v2.CreateSinkRequest.class, + com.google.logging.v2.CreateSinkRequest.Builder.class); } // Construct using com.google.logging.v2.CreateSinkRequest.newBuilder() @@ -392,17 +431,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) { getSinkFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +457,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateSinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateSinkRequest_descriptor; } @java.lang.Override @@ -439,8 +478,11 @@ public com.google.logging.v2.CreateSinkRequest build() { @java.lang.Override public com.google.logging.v2.CreateSinkRequest buildPartial() { - com.google.logging.v2.CreateSinkRequest result = new com.google.logging.v2.CreateSinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.CreateSinkRequest result = + new com.google.logging.v2.CreateSinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -452,9 +494,7 @@ private void buildPartial0(com.google.logging.v2.CreateSinkRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.sink_ = sinkBuilder_ == null - ? sink_ - : sinkBuilder_.build(); + result.sink_ = sinkBuilder_ == null ? sink_ : sinkBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -467,38 +507,39 @@ private void buildPartial0(com.google.logging.v2.CreateSinkRequest 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.logging.v2.CreateSinkRequest) { - return mergeFrom((com.google.logging.v2.CreateSinkRequest)other); + return mergeFrom((com.google.logging.v2.CreateSinkRequest) other); } else { super.mergeFrom(other); return this; @@ -544,29 +585,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - uniqueWriterIdentity_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + uniqueWriterIdentity_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -576,10 +619,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource in which to create the sink:
      *
@@ -594,14 +640,16 @@ public Builder mergeFrom(
      *   `"organizations/123456789"`
      * 
* - * 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; @@ -610,6 +658,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource in which to create the sink:
      *
@@ -624,16 +674,17 @@ public java.lang.String getParent() {
      *   `"organizations/123456789"`
      * 
* - * 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 { @@ -641,6 +692,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource in which to create the sink:
      *
@@ -655,19 +708,25 @@ public java.lang.String getParent() {
      *   `"organizations/123456789"`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource in which to create the sink:
      *
@@ -682,7 +741,10 @@ public Builder setParent(
      *   `"organizations/123456789"`
      * 
* - * 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() { @@ -692,6 +754,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource in which to create the sink:
      *
@@ -706,13 +770,17 @@ public Builder clearParent() {
      *   `"organizations/123456789"`
      * 
* - * 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; @@ -722,26 +790,35 @@ public Builder setParentBytes( private com.google.logging.v2.LogSink sink_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder> sinkBuilder_; + com.google.logging.v2.LogSink, + com.google.logging.v2.LogSink.Builder, + com.google.logging.v2.LogSinkOrBuilder> + sinkBuilder_; /** + * + * *
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
      * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the sink field is set. */ public boolean hasSink() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
      * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sink. */ public com.google.logging.v2.LogSink getSink() { @@ -752,6 +829,8 @@ public com.google.logging.v2.LogSink getSink() { } } /** + * + * *
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -773,6 +852,8 @@ public Builder setSink(com.google.logging.v2.LogSink value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -780,8 +861,7 @@ public Builder setSink(com.google.logging.v2.LogSink value) {
      *
      * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setSink(
-        com.google.logging.v2.LogSink.Builder builderForValue) {
+    public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) {
       if (sinkBuilder_ == null) {
         sink_ = builderForValue.build();
       } else {
@@ -792,6 +872,8 @@ public Builder setSink(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -801,9 +883,9 @@ public Builder setSink(
      */
     public Builder mergeSink(com.google.logging.v2.LogSink value) {
       if (sinkBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          sink_ != null &&
-          sink_ != com.google.logging.v2.LogSink.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && sink_ != null
+            && sink_ != com.google.logging.v2.LogSink.getDefaultInstance()) {
           getSinkBuilder().mergeFrom(value);
         } else {
           sink_ = value;
@@ -818,6 +900,8 @@ public Builder mergeSink(com.google.logging.v2.LogSink value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -836,6 +920,8 @@ public Builder clearSink() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -849,6 +935,8 @@ public com.google.logging.v2.LogSink.Builder getSinkBuilder() {
       return getSinkFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -860,11 +948,12 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
       if (sinkBuilder_ != null) {
         return sinkBuilder_.getMessageOrBuilder();
       } else {
-        return sink_ == null ?
-            com.google.logging.v2.LogSink.getDefaultInstance() : sink_;
+        return sink_ == null ? com.google.logging.v2.LogSink.getDefaultInstance() : sink_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -873,21 +962,26 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder> 
+            com.google.logging.v2.LogSink,
+            com.google.logging.v2.LogSink.Builder,
+            com.google.logging.v2.LogSinkOrBuilder>
         getSinkFieldBuilder() {
       if (sinkBuilder_ == null) {
-        sinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder>(
-                getSink(),
-                getParentForChildren(),
-                isClean());
+        sinkBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.logging.v2.LogSink,
+                com.google.logging.v2.LogSink.Builder,
+                com.google.logging.v2.LogSinkOrBuilder>(
+                getSink(), getParentForChildren(), isClean());
         sink_ = null;
       }
       return sinkBuilder_;
     }
 
-    private boolean uniqueWriterIdentity_ ;
+    private boolean uniqueWriterIdentity_;
     /**
+     *
+     *
      * 
      * Optional. Determines the kind of IAM identity returned as `writer_identity`
      * in the new sink. If this value is omitted or set to false, and if the
@@ -904,6 +998,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -911,6 +1006,8 @@ public boolean getUniqueWriterIdentity() { return uniqueWriterIdentity_; } /** + * + * *
      * Optional. Determines the kind of IAM identity returned as `writer_identity`
      * in the new sink. If this value is omitted or set to false, and if the
@@ -927,6 +1024,7 @@ public boolean getUniqueWriterIdentity() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The uniqueWriterIdentity to set. * @return This builder for chaining. */ @@ -938,6 +1036,8 @@ public Builder setUniqueWriterIdentity(boolean value) { return this; } /** + * + * *
      * Optional. Determines the kind of IAM identity returned as `writer_identity`
      * in the new sink. If this value is omitted or set to false, and if the
@@ -954,6 +1054,7 @@ public Builder setUniqueWriterIdentity(boolean value) {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUniqueWriterIdentity() { @@ -962,9 +1063,9 @@ public Builder clearUniqueWriterIdentity() { 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); } @@ -974,12 +1075,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.CreateSinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CreateSinkRequest) private static final com.google.logging.v2.CreateSinkRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.CreateSinkRequest(); } @@ -988,27 +1089,27 @@ public static com.google.logging.v2.CreateSinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1023,6 +1124,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateSinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java index 33648fcff..0acc64e94 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CreateSinkRequestOrBuilder extends +public interface CreateSinkRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CreateSinkRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource in which to create the sink:
    *
@@ -23,11 +41,16 @@ public interface CreateSinkRequestOrBuilder extends
    *   `"organizations/123456789"`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource in which to create the sink:
    *
@@ -42,33 +65,43 @@ public interface CreateSinkRequestOrBuilder extends
    *   `"organizations/123456789"`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The new sink, whose `name` parameter is a sink identifier that
    * is not already in use.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the sink field is set. */ boolean hasSink(); /** + * + * *
    * Required. The new sink, whose `name` parameter is a sink identifier that
    * is not already in use.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sink. */ com.google.logging.v2.LogSink getSink(); /** + * + * *
    * Required. The new sink, whose `name` parameter is a sink identifier that
    * is not already in use.
@@ -79,6 +112,8 @@ public interface CreateSinkRequestOrBuilder extends
   com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder();
 
   /**
+   *
+   *
    * 
    * Optional. Determines the kind of IAM identity returned as `writer_identity`
    * in the new sink. If this value is omitted or set to false, and if the
@@ -95,6 +130,7 @@ public interface CreateSinkRequestOrBuilder extends
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uniqueWriterIdentity. */ boolean getUniqueWriterIdentity(); diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java index 1bf7e7281..4d8e31862 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `CreateView`.
  * 
* * Protobuf type {@code google.logging.v2.CreateViewRequest} */ -public final class CreateViewRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateViewRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.CreateViewRequest) CreateViewRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateViewRequest.newBuilder() to construct. private CreateViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateViewRequest() { parent_ = ""; viewId_ = ""; @@ -27,29 +45,33 @@ private CreateViewRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateViewRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateViewRequest.class, com.google.logging.v2.CreateViewRequest.Builder.class); + com.google.logging.v2.CreateViewRequest.class, + com.google.logging.v2.CreateViewRequest.Builder.class); } private int bitField0_; public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The bucket in which to create the view
    *
@@ -61,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -69,14 +92,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The bucket in which to create the view
    *
@@ -88,16 +112,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -106,9 +129,12 @@ public java.lang.String getParent() { } public static final int VIEW_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object viewId_ = ""; /** + * + * *
    * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
    * limited to 100 characters and can include only letters, digits,
@@ -116,6 +142,7 @@ public java.lang.String getParent() {
    * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The viewId. */ @java.lang.Override @@ -124,14 +151,15 @@ public java.lang.String getViewId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); viewId_ = s; return s; } } /** + * + * *
    * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
    * limited to 100 characters and can include only letters, digits,
@@ -139,16 +167,15 @@ public java.lang.String getViewId() {
    * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for viewId. */ @java.lang.Override - public com.google.protobuf.ByteString - getViewIdBytes() { + public com.google.protobuf.ByteString getViewIdBytes() { java.lang.Object ref = viewId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); viewId_ = b; return b; } else { @@ -159,11 +186,14 @@ public java.lang.String getViewId() { public static final int VIEW_FIELD_NUMBER = 3; private com.google.logging.v2.LogView view_; /** + * + * *
    * Required. The new view.
    * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the view field is set. */ @java.lang.Override @@ -171,11 +201,14 @@ public boolean hasView() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The new view.
    * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The view. */ @java.lang.Override @@ -183,6 +216,8 @@ public com.google.logging.v2.LogView getView() { return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; } /** + * + * *
    * Required. The new view.
    * 
@@ -195,6 +230,7 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +242,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_); } @@ -233,8 +268,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, viewId_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getView()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getView()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -244,21 +278,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.logging.v2.CreateViewRequest)) { return super.equals(obj); } com.google.logging.v2.CreateViewRequest other = (com.google.logging.v2.CreateViewRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getViewId() - .equals(other.getViewId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getViewId().equals(other.getViewId())) return false; if (hasView() != other.hasView()) return false; if (hasView()) { - if (!getView() - .equals(other.getView())) return false; + if (!getView().equals(other.getView())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -284,120 +315,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CreateViewRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.CreateViewRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateViewRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateViewRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateViewRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateViewRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateViewRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateViewRequest 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.logging.v2.CreateViewRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CreateViewRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.CreateViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.CreateViewRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.CreateViewRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.CreateViewRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.CreateViewRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `CreateView`.
    * 
* * Protobuf type {@code google.logging.v2.CreateViewRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateViewRequest) com.google.logging.v2.CreateViewRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateViewRequest.class, com.google.logging.v2.CreateViewRequest.Builder.class); + com.google.logging.v2.CreateViewRequest.class, + com.google.logging.v2.CreateViewRequest.Builder.class); } // Construct using com.google.logging.v2.CreateViewRequest.newBuilder() @@ -405,17 +443,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) { getViewFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -431,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateViewRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateViewRequest_descriptor; } @java.lang.Override @@ -452,8 +490,11 @@ public com.google.logging.v2.CreateViewRequest build() { @java.lang.Override public com.google.logging.v2.CreateViewRequest buildPartial() { - com.google.logging.v2.CreateViewRequest result = new com.google.logging.v2.CreateViewRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.CreateViewRequest result = + new com.google.logging.v2.CreateViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -468,9 +509,7 @@ private void buildPartial0(com.google.logging.v2.CreateViewRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.view_ = viewBuilder_ == null - ? view_ - : viewBuilder_.build(); + result.view_ = viewBuilder_ == null ? view_ : viewBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -480,38 +519,39 @@ private void buildPartial0(com.google.logging.v2.CreateViewRequest 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.logging.v2.CreateViewRequest) { - return mergeFrom((com.google.logging.v2.CreateViewRequest)other); + return mergeFrom((com.google.logging.v2.CreateViewRequest) other); } else { super.mergeFrom(other); return this; @@ -559,29 +599,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - viewId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getViewFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + viewId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -591,10 +633,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The bucket in which to create the view
      *
@@ -606,13 +651,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -621,6 +666,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The bucket in which to create the view
      *
@@ -632,15 +679,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -648,6 +694,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The bucket in which to create the view
      *
@@ -659,18 +707,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The bucket in which to create the view
      *
@@ -682,6 +734,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -691,6 +744,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The bucket in which to create the view
      *
@@ -702,12 +757,14 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -717,6 +774,8 @@ public Builder setParentBytes( private java.lang.Object viewId_ = ""; /** + * + * *
      * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
      * limited to 100 characters and can include only letters, digits,
@@ -724,13 +783,13 @@ public Builder setParentBytes(
      * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The viewId. */ public java.lang.String getViewId() { java.lang.Object ref = viewId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); viewId_ = s; return s; @@ -739,6 +798,8 @@ public java.lang.String getViewId() { } } /** + * + * *
      * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
      * limited to 100 characters and can include only letters, digits,
@@ -746,15 +807,14 @@ public java.lang.String getViewId() {
      * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for viewId. */ - public com.google.protobuf.ByteString - getViewIdBytes() { + public com.google.protobuf.ByteString getViewIdBytes() { java.lang.Object ref = viewId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); viewId_ = b; return b; } else { @@ -762,6 +822,8 @@ public java.lang.String getViewId() { } } /** + * + * *
      * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
      * limited to 100 characters and can include only letters, digits,
@@ -769,18 +831,22 @@ public java.lang.String getViewId() {
      * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The viewId to set. * @return This builder for chaining. */ - public Builder setViewId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setViewId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } viewId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
      * limited to 100 characters and can include only letters, digits,
@@ -788,6 +854,7 @@ public Builder setViewId(
      * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearViewId() { @@ -797,6 +864,8 @@ public Builder clearViewId() { return this; } /** + * + * *
      * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
      * limited to 100 characters and can include only letters, digits,
@@ -804,12 +873,14 @@ public Builder clearViewId() {
      * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for viewId to set. * @return This builder for chaining. */ - public Builder setViewIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setViewIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); viewId_ = value; bitField0_ |= 0x00000002; @@ -819,24 +890,33 @@ public Builder setViewIdBytes( private com.google.logging.v2.LogView view_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder> viewBuilder_; + com.google.logging.v2.LogView, + com.google.logging.v2.LogView.Builder, + com.google.logging.v2.LogViewOrBuilder> + viewBuilder_; /** + * + * *
      * Required. The new view.
      * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the view field is set. */ public boolean hasView() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The new view.
      * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The view. */ public com.google.logging.v2.LogView getView() { @@ -847,6 +927,8 @@ public com.google.logging.v2.LogView getView() { } } /** + * + * *
      * Required. The new view.
      * 
@@ -867,14 +949,15 @@ public Builder setView(com.google.logging.v2.LogView value) { return this; } /** + * + * *
      * Required. The new view.
      * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setView( - com.google.logging.v2.LogView.Builder builderForValue) { + public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { if (viewBuilder_ == null) { view_ = builderForValue.build(); } else { @@ -885,6 +968,8 @@ public Builder setView( return this; } /** + * + * *
      * Required. The new view.
      * 
@@ -893,9 +978,9 @@ public Builder setView( */ public Builder mergeView(com.google.logging.v2.LogView value) { if (viewBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - view_ != null && - view_ != com.google.logging.v2.LogView.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && view_ != null + && view_ != com.google.logging.v2.LogView.getDefaultInstance()) { getViewBuilder().mergeFrom(value); } else { view_ = value; @@ -910,6 +995,8 @@ public Builder mergeView(com.google.logging.v2.LogView value) { return this; } /** + * + * *
      * Required. The new view.
      * 
@@ -927,6 +1014,8 @@ public Builder clearView() { return this; } /** + * + * *
      * Required. The new view.
      * 
@@ -939,6 +1028,8 @@ public com.google.logging.v2.LogView.Builder getViewBuilder() { return getViewFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The new view.
      * 
@@ -949,11 +1040,12 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { if (viewBuilder_ != null) { return viewBuilder_.getMessageOrBuilder(); } else { - return view_ == null ? - com.google.logging.v2.LogView.getDefaultInstance() : view_; + return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; } } /** + * + * *
      * Required. The new view.
      * 
@@ -961,21 +1053,24 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder> + com.google.logging.v2.LogView, + com.google.logging.v2.LogView.Builder, + com.google.logging.v2.LogViewOrBuilder> getViewFieldBuilder() { if (viewBuilder_ == null) { - viewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder>( - getView(), - getParentForChildren(), - isClean()); + viewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogView, + com.google.logging.v2.LogView.Builder, + com.google.logging.v2.LogViewOrBuilder>( + getView(), getParentForChildren(), isClean()); view_ = null; } return viewBuilder_; } + @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); } @@ -985,12 +1080,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.CreateViewRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CreateViewRequest) private static final com.google.logging.v2.CreateViewRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.CreateViewRequest(); } @@ -999,27 +1094,27 @@ public static com.google.logging.v2.CreateViewRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateViewRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateViewRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1034,6 +1129,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateViewRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java index 5e6f08697..1ab792ad2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface CreateViewRequestOrBuilder extends +public interface CreateViewRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.CreateViewRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The bucket in which to create the view
    *
@@ -20,10 +38,13 @@ public interface CreateViewRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The bucket in which to create the view
    *
@@ -35,12 +56,14 @@ public interface CreateViewRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
    * limited to 100 characters and can include only letters, digits,
@@ -48,10 +71,13 @@ public interface CreateViewRequestOrBuilder extends
    * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The viewId. */ java.lang.String getViewId(); /** + * + * *
    * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
    * limited to 100 characters and can include only letters, digits,
@@ -59,30 +85,38 @@ public interface CreateViewRequestOrBuilder extends
    * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for viewId. */ - com.google.protobuf.ByteString - getViewIdBytes(); + com.google.protobuf.ByteString getViewIdBytes(); /** + * + * *
    * Required. The new view.
    * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the view field is set. */ boolean hasView(); /** + * + * *
    * Required. The new view.
    * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The view. */ com.google.logging.v2.LogView getView(); /** + * + * *
    * Required. The new view.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java index 419dea058..2b528594d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.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/logging/v2/logging_config.proto @@ -5,49 +20,56 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `DeleteBucket`.
  * 
* * Protobuf type {@code google.logging.v2.DeleteBucketRequest} */ -public final class DeleteBucketRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteBucketRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteBucketRequest) DeleteBucketRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteBucketRequest.newBuilder() to construct. private DeleteBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteBucketRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteBucketRequest.class, com.google.logging.v2.DeleteBucketRequest.Builder.class); + com.google.logging.v2.DeleteBucketRequest.class, + com.google.logging.v2.DeleteBucketRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The full resource name of the bucket to delete.
    *
@@ -61,7 +83,10 @@ protected java.lang.Object newInstance(
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * 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 @@ -70,14 +95,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The full resource name of the bucket to delete.
    *
@@ -91,17 +117,18 @@ public java.lang.String getName() {
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * 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 { @@ -110,6 +137,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +149,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_); } @@ -146,15 +173,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.logging.v2.DeleteBucketRequest)) { return super.equals(obj); } - com.google.logging.v2.DeleteBucketRequest other = (com.google.logging.v2.DeleteBucketRequest) obj; + com.google.logging.v2.DeleteBucketRequest other = + (com.google.logging.v2.DeleteBucketRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -173,132 +200,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.DeleteBucketRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.DeleteBucketRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteBucketRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteBucketRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteBucketRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteBucketRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteBucketRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteBucketRequest 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.logging.v2.DeleteBucketRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteBucketRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.DeleteBucketRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.DeleteBucketRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.DeleteBucketRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.DeleteBucketRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.DeleteBucketRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `DeleteBucket`.
    * 
* * Protobuf type {@code google.logging.v2.DeleteBucketRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteBucketRequest) com.google.logging.v2.DeleteBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteBucketRequest.class, com.google.logging.v2.DeleteBucketRequest.Builder.class); + com.google.logging.v2.DeleteBucketRequest.class, + com.google.logging.v2.DeleteBucketRequest.Builder.class); } // Construct using com.google.logging.v2.DeleteBucketRequest.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(); @@ -308,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteBucketRequest_descriptor; } @java.lang.Override @@ -329,8 +360,11 @@ public com.google.logging.v2.DeleteBucketRequest build() { @java.lang.Override public com.google.logging.v2.DeleteBucketRequest buildPartial() { - com.google.logging.v2.DeleteBucketRequest result = new com.google.logging.v2.DeleteBucketRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.DeleteBucketRequest result = + new com.google.logging.v2.DeleteBucketRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -346,38 +380,39 @@ private void buildPartial0(com.google.logging.v2.DeleteBucketRequest 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.logging.v2.DeleteBucketRequest) { - return mergeFrom((com.google.logging.v2.DeleteBucketRequest)other); + return mergeFrom((com.google.logging.v2.DeleteBucketRequest) other); } else { super.mergeFrom(other); return this; @@ -417,17 +452,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) { @@ -437,10 +474,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -454,14 +494,16 @@ public Builder mergeFrom(
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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; @@ -470,6 +512,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -483,16 +527,17 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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 { @@ -500,6 +545,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -513,19 +560,25 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -539,7 +592,10 @@ public Builder setName(
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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() { @@ -549,6 +605,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -562,22 +620,26 @@ public Builder clearName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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); } @@ -587,12 +649,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteBucketRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteBucketRequest) private static final com.google.logging.v2.DeleteBucketRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteBucketRequest(); } @@ -601,27 +663,27 @@ public static com.google.logging.v2.DeleteBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,6 +698,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java index 70752d216..531c907c6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface DeleteBucketRequestOrBuilder extends +public interface DeleteBucketRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteBucketRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The full resource name of the bucket to delete.
    *
@@ -22,11 +40,16 @@ public interface DeleteBucketRequestOrBuilder extends
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The full resource name of the bucket to delete.
    *
@@ -40,9 +63,11 @@ public interface DeleteBucketRequestOrBuilder extends
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * 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/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java index fa213711c..e66250102 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.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/logging/v2/logging_config.proto @@ -5,49 +20,56 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `DeleteExclusion`.
  * 
* * Protobuf type {@code google.logging.v2.DeleteExclusionRequest} */ -public final class DeleteExclusionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteExclusionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteExclusionRequest) DeleteExclusionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteExclusionRequest.newBuilder() to construct. private DeleteExclusionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteExclusionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteExclusionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteExclusionRequest.class, com.google.logging.v2.DeleteExclusionRequest.Builder.class); + com.google.logging.v2.DeleteExclusionRequest.class, + com.google.logging.v2.DeleteExclusionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of an existing exclusion to delete:
    *
@@ -61,7 +83,10 @@ protected java.lang.Object newInstance(
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * 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 @@ -70,14 +95,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of an existing exclusion to delete:
    *
@@ -91,17 +117,18 @@ public java.lang.String getName() {
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * 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 { @@ -110,6 +137,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +149,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_); } @@ -146,15 +173,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.logging.v2.DeleteExclusionRequest)) { return super.equals(obj); } - com.google.logging.v2.DeleteExclusionRequest other = (com.google.logging.v2.DeleteExclusionRequest) obj; + com.google.logging.v2.DeleteExclusionRequest other = + (com.google.logging.v2.DeleteExclusionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -173,132 +200,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.DeleteExclusionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.DeleteExclusionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteExclusionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteExclusionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteExclusionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteExclusionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteExclusionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteExclusionRequest 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.logging.v2.DeleteExclusionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteExclusionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.DeleteExclusionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.DeleteExclusionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.DeleteExclusionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.DeleteExclusionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.DeleteExclusionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `DeleteExclusion`.
    * 
* * Protobuf type {@code google.logging.v2.DeleteExclusionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteExclusionRequest) com.google.logging.v2.DeleteExclusionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteExclusionRequest.class, com.google.logging.v2.DeleteExclusionRequest.Builder.class); + com.google.logging.v2.DeleteExclusionRequest.class, + com.google.logging.v2.DeleteExclusionRequest.Builder.class); } // Construct using com.google.logging.v2.DeleteExclusionRequest.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(); @@ -308,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; } @java.lang.Override @@ -329,8 +360,11 @@ public com.google.logging.v2.DeleteExclusionRequest build() { @java.lang.Override public com.google.logging.v2.DeleteExclusionRequest buildPartial() { - com.google.logging.v2.DeleteExclusionRequest result = new com.google.logging.v2.DeleteExclusionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.DeleteExclusionRequest result = + new com.google.logging.v2.DeleteExclusionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -346,38 +380,39 @@ private void buildPartial0(com.google.logging.v2.DeleteExclusionRequest 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.logging.v2.DeleteExclusionRequest) { - return mergeFrom((com.google.logging.v2.DeleteExclusionRequest)other); + return mergeFrom((com.google.logging.v2.DeleteExclusionRequest) other); } else { super.mergeFrom(other); return this; @@ -417,17 +452,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) { @@ -437,10 +474,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -454,14 +494,16 @@ public Builder mergeFrom(
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * 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; @@ -470,6 +512,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -483,16 +527,17 @@ public java.lang.String getName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * 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 { @@ -500,6 +545,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -513,19 +560,25 @@ public java.lang.String getName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -539,7 +592,10 @@ public Builder setName(
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * 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() { @@ -549,6 +605,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -562,22 +620,26 @@ public Builder clearName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * 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); } @@ -587,12 +649,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteExclusionRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteExclusionRequest) private static final com.google.logging.v2.DeleteExclusionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteExclusionRequest(); } @@ -601,27 +663,27 @@ public static com.google.logging.v2.DeleteExclusionRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteExclusionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteExclusionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,6 +698,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteExclusionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java index cb1866913..2db01823f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface DeleteExclusionRequestOrBuilder extends +public interface DeleteExclusionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteExclusionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of an existing exclusion to delete:
    *
@@ -22,11 +40,16 @@ public interface DeleteExclusionRequestOrBuilder extends
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of an existing exclusion to delete:
    *
@@ -40,9 +63,11 @@ public interface DeleteExclusionRequestOrBuilder extends
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * 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/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java index 2f127b22b..c4477e0f3 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.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/logging/v2/logging_config.proto @@ -5,49 +20,56 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to DeleteLink.
  * 
* * Protobuf type {@code google.logging.v2.DeleteLinkRequest} */ -public final class DeleteLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteLinkRequest) DeleteLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteLinkRequest.newBuilder() to construct. private DeleteLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteLinkRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteLinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteLinkRequest.class, com.google.logging.v2.DeleteLinkRequest.Builder.class); + com.google.logging.v2.DeleteLinkRequest.class, + com.google.logging.v2.DeleteLinkRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The full resource name of the link to delete.
    *
@@ -57,7 +79,10 @@ protected java.lang.Object newInstance(
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,14 +91,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The full resource name of the link to delete.
    *
@@ -83,17 +109,18 @@ public java.lang.String getName() {
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -102,6 +129,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -113,8 +141,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_); } @@ -138,15 +165,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.DeleteLinkRequest)) { return super.equals(obj); } com.google.logging.v2.DeleteLinkRequest other = (com.google.logging.v2.DeleteLinkRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -165,132 +191,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.DeleteLinkRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.DeleteLinkRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteLinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteLinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteLinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteLinkRequest 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.logging.v2.DeleteLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.DeleteLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.DeleteLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.DeleteLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.DeleteLinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.DeleteLinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to DeleteLink.
    * 
* * Protobuf type {@code google.logging.v2.DeleteLinkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteLinkRequest) com.google.logging.v2.DeleteLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteLinkRequest.class, com.google.logging.v2.DeleteLinkRequest.Builder.class); + com.google.logging.v2.DeleteLinkRequest.class, + com.google.logging.v2.DeleteLinkRequest.Builder.class); } // Construct using com.google.logging.v2.DeleteLinkRequest.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(); @@ -300,9 +330,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteLinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteLinkRequest_descriptor; } @java.lang.Override @@ -321,8 +351,11 @@ public com.google.logging.v2.DeleteLinkRequest build() { @java.lang.Override public com.google.logging.v2.DeleteLinkRequest buildPartial() { - com.google.logging.v2.DeleteLinkRequest result = new com.google.logging.v2.DeleteLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.DeleteLinkRequest result = + new com.google.logging.v2.DeleteLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -338,38 +371,39 @@ private void buildPartial0(com.google.logging.v2.DeleteLinkRequest 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.logging.v2.DeleteLinkRequest) { - return mergeFrom((com.google.logging.v2.DeleteLinkRequest)other); + return mergeFrom((com.google.logging.v2.DeleteLinkRequest) other); } else { super.mergeFrom(other); return this; @@ -409,17 +443,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) { @@ -429,10 +465,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full resource name of the link to delete.
      *
@@ -442,14 +481,16 @@ public Builder mergeFrom(
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -458,6 +499,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the link to delete.
      *
@@ -467,16 +510,17 @@ public java.lang.String getName() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -484,6 +528,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the link to delete.
      *
@@ -493,19 +539,25 @@ public java.lang.String getName() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the link to delete.
      *
@@ -515,7 +567,10 @@ public Builder setName(
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -525,6 +580,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The full resource name of the link to delete.
      *
@@ -534,22 +591,26 @@ public Builder clearName() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +620,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteLinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteLinkRequest) private static final com.google.logging.v2.DeleteLinkRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteLinkRequest(); } @@ -573,27 +634,27 @@ public static com.google.logging.v2.DeleteLinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -608,6 +669,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteLinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java index 5fb45ef77..2bb87d5a5 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface DeleteLinkRequestOrBuilder extends +public interface DeleteLinkRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteLinkRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The full resource name of the link to delete.
    *
@@ -18,11 +36,16 @@ public interface DeleteLinkRequestOrBuilder extends
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The full resource name of the link to delete.
    *
@@ -32,9 +55,11 @@ public interface DeleteLinkRequestOrBuilder extends
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java similarity index 62% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java index ed1624228..cdd71cc9e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.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/logging/v2/logging_metrics.proto @@ -5,56 +20,66 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to DeleteLogMetric.
  * 
* * Protobuf type {@code google.logging.v2.DeleteLogMetricRequest} */ -public final class DeleteLogMetricRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteLogMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteLogMetricRequest) DeleteLogMetricRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteLogMetricRequest.newBuilder() to construct. private DeleteLogMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteLogMetricRequest() { metricName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteLogMetricRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteLogMetricRequest.class, com.google.logging.v2.DeleteLogMetricRequest.Builder.class); + com.google.logging.v2.DeleteLogMetricRequest.class, + com.google.logging.v2.DeleteLogMetricRequest.Builder.class); } public static final int METRIC_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object metricName_ = ""; /** + * + * *
    * Required. The resource name of the metric to delete:
    *
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The metricName. */ @java.lang.Override @@ -63,31 +88,33 @@ public java.lang.String getMetricName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; } } /** + * + * *
    * Required. The resource name of the metric to delete:
    *
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for metricName. */ @java.lang.Override - public com.google.protobuf.ByteString - getMetricNameBytes() { + public com.google.protobuf.ByteString getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metricName_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getMetricName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -132,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.DeleteLogMetricRequest)) { return super.equals(obj); } - com.google.logging.v2.DeleteLogMetricRequest other = (com.google.logging.v2.DeleteLogMetricRequest) obj; + com.google.logging.v2.DeleteLogMetricRequest other = + (com.google.logging.v2.DeleteLogMetricRequest) obj; - if (!getMetricName() - .equals(other.getMetricName())) return false; + if (!getMetricName().equals(other.getMetricName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,132 +186,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.DeleteLogMetricRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteLogMetricRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteLogMetricRequest 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.logging.v2.DeleteLogMetricRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteLogMetricRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.DeleteLogMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.DeleteLogMetricRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.DeleteLogMetricRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.DeleteLogMetricRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to DeleteLogMetric.
    * 
* * Protobuf type {@code google.logging.v2.DeleteLogMetricRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteLogMetricRequest) com.google.logging.v2.DeleteLogMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteLogMetricRequest.class, com.google.logging.v2.DeleteLogMetricRequest.Builder.class); + com.google.logging.v2.DeleteLogMetricRequest.class, + com.google.logging.v2.DeleteLogMetricRequest.Builder.class); } // Construct using com.google.logging.v2.DeleteLogMetricRequest.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(); @@ -294,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; } @java.lang.Override @@ -315,8 +346,11 @@ public com.google.logging.v2.DeleteLogMetricRequest build() { @java.lang.Override public com.google.logging.v2.DeleteLogMetricRequest buildPartial() { - com.google.logging.v2.DeleteLogMetricRequest result = new com.google.logging.v2.DeleteLogMetricRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.DeleteLogMetricRequest result = + new com.google.logging.v2.DeleteLogMetricRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +366,39 @@ private void buildPartial0(com.google.logging.v2.DeleteLogMetricRequest 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.logging.v2.DeleteLogMetricRequest) { - return mergeFrom((com.google.logging.v2.DeleteLogMetricRequest)other); + return mergeFrom((com.google.logging.v2.DeleteLogMetricRequest) other); } else { super.mergeFrom(other); return this; @@ -403,17 +438,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - metricName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + metricName_ = 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) { @@ -423,24 +460,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object metricName_ = ""; /** + * + * *
      * Required. The resource name of the metric to delete:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The metricName. */ public java.lang.String getMetricName() { java.lang.Object ref = metricName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; @@ -449,22 +491,25 @@ public java.lang.String getMetricName() { } } /** + * + * *
      * Required. The resource name of the metric to delete:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for metricName. */ - public com.google.protobuf.ByteString - getMetricNameBytes() { + public com.google.protobuf.ByteString getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metricName_ = b; return b; } else { @@ -472,32 +517,43 @@ public java.lang.String getMetricName() { } } /** + * + * *
      * Required. The resource name of the metric to delete:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The metricName to set. * @return This builder for chaining. */ - public Builder setMetricName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMetricName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } metricName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the metric to delete:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearMetricName() { @@ -507,28 +563,34 @@ public Builder clearMetricName() { return this; } /** + * + * *
      * Required. The resource name of the metric to delete:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for metricName to set. * @return This builder for chaining. */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); metricName_ = 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); } @@ -538,12 +600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteLogMetricRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteLogMetricRequest) private static final com.google.logging.v2.DeleteLogMetricRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteLogMetricRequest(); } @@ -552,27 +614,27 @@ public static com.google.logging.v2.DeleteLogMetricRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteLogMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteLogMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -587,6 +649,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteLogMetricRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java new file mode 100644 index 000000000..ca3201e00 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * 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/logging/v2/logging_metrics.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public interface DeleteLogMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteLogMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the metric to delete:
+   *
+   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
+   * 
+ * + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The metricName. + */ + java.lang.String getMetricName(); + /** + * + * + *
+   * Required. The resource name of the metric to delete:
+   *
+   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
+   * 
+ * + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for metricName. + */ + com.google.protobuf.ByteString getMetricNameBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java index acef9f563..160ee931d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.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/logging/v2/logging.proto @@ -5,49 +20,56 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to DeleteLog.
  * 
* * Protobuf type {@code google.logging.v2.DeleteLogRequest} */ -public final class DeleteLogRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteLogRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteLogRequest) DeleteLogRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteLogRequest.newBuilder() to construct. private DeleteLogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteLogRequest() { logName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteLogRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_DeleteLogRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_DeleteLogRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteLogRequest.class, com.google.logging.v2.DeleteLogRequest.Builder.class); + com.google.logging.v2.DeleteLogRequest.class, + com.google.logging.v2.DeleteLogRequest.Builder.class); } public static final int LOG_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object logName_ = ""; /** + * + * *
    * Required. The resource name of the log to delete:
    *
@@ -64,7 +86,10 @@ protected java.lang.Object newInstance(
    * [LogEntry][google.logging.v2.LogEntry].
    * 
* - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The logName. */ @java.lang.Override @@ -73,14 +98,15 @@ public java.lang.String getLogName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logName_ = s; return s; } } /** + * + * *
    * Required. The resource name of the log to delete:
    *
@@ -97,17 +123,18 @@ public java.lang.String getLogName() {
    * [LogEntry][google.logging.v2.LogEntry].
    * 
* - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for logName. */ @java.lang.Override - public com.google.protobuf.ByteString - getLogNameBytes() { + public com.google.protobuf.ByteString getLogNameBytes() { java.lang.Object ref = logName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); logName_ = b; return b; } else { @@ -116,6 +143,7 @@ public java.lang.String getLogName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,8 +155,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logName_); } @@ -152,15 +179,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.DeleteLogRequest)) { return super.equals(obj); } com.google.logging.v2.DeleteLogRequest other = (com.google.logging.v2.DeleteLogRequest) obj; - if (!getLogName() - .equals(other.getLogName())) return false; + if (!getLogName().equals(other.getLogName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -179,132 +205,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.DeleteLogRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.DeleteLogRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteLogRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteLogRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteLogRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteLogRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteLogRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteLogRequest 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.logging.v2.DeleteLogRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.DeleteLogRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.DeleteLogRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.DeleteLogRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.DeleteLogRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.DeleteLogRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to DeleteLog.
    * 
* * Protobuf type {@code google.logging.v2.DeleteLogRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteLogRequest) com.google.logging.v2.DeleteLogRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_DeleteLogRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_DeleteLogRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteLogRequest.class, com.google.logging.v2.DeleteLogRequest.Builder.class); + com.google.logging.v2.DeleteLogRequest.class, + com.google.logging.v2.DeleteLogRequest.Builder.class); } // Construct using com.google.logging.v2.DeleteLogRequest.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(); @@ -314,9 +344,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_DeleteLogRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_DeleteLogRequest_descriptor; } @java.lang.Override @@ -335,8 +365,11 @@ public com.google.logging.v2.DeleteLogRequest build() { @java.lang.Override public com.google.logging.v2.DeleteLogRequest buildPartial() { - com.google.logging.v2.DeleteLogRequest result = new com.google.logging.v2.DeleteLogRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.DeleteLogRequest result = + new com.google.logging.v2.DeleteLogRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -352,38 +385,39 @@ private void buildPartial0(com.google.logging.v2.DeleteLogRequest 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.logging.v2.DeleteLogRequest) { - return mergeFrom((com.google.logging.v2.DeleteLogRequest)other); + return mergeFrom((com.google.logging.v2.DeleteLogRequest) other); } else { super.mergeFrom(other); return this; @@ -423,17 +457,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - logName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + logName_ = 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) { @@ -443,10 +479,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object logName_ = ""; /** + * + * *
      * Required. The resource name of the log to delete:
      *
@@ -463,14 +502,16 @@ public Builder mergeFrom(
      * [LogEntry][google.logging.v2.LogEntry].
      * 
* - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The logName. */ public java.lang.String getLogName() { java.lang.Object ref = logName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logName_ = s; return s; @@ -479,6 +520,8 @@ public java.lang.String getLogName() { } } /** + * + * *
      * Required. The resource name of the log to delete:
      *
@@ -495,16 +538,17 @@ public java.lang.String getLogName() {
      * [LogEntry][google.logging.v2.LogEntry].
      * 
* - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for logName. */ - public com.google.protobuf.ByteString - getLogNameBytes() { + public com.google.protobuf.ByteString getLogNameBytes() { java.lang.Object ref = logName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); logName_ = b; return b; } else { @@ -512,6 +556,8 @@ public java.lang.String getLogName() { } } /** + * + * *
      * Required. The resource name of the log to delete:
      *
@@ -528,19 +574,25 @@ public java.lang.String getLogName() {
      * [LogEntry][google.logging.v2.LogEntry].
      * 
* - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The logName to set. * @return This builder for chaining. */ - public Builder setLogName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLogName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } logName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the log to delete:
      *
@@ -557,7 +609,10 @@ public Builder setLogName(
      * [LogEntry][google.logging.v2.LogEntry].
      * 
* - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLogName() { @@ -567,6 +622,8 @@ public Builder clearLogName() { return this; } /** + * + * *
      * Required. The resource name of the log to delete:
      *
@@ -583,22 +640,26 @@ public Builder clearLogName() {
      * [LogEntry][google.logging.v2.LogEntry].
      * 
* - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for logName to set. * @return This builder for chaining. */ - public Builder setLogNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLogNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); logName_ = 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); } @@ -608,12 +669,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteLogRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteLogRequest) private static final com.google.logging.v2.DeleteLogRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteLogRequest(); } @@ -622,27 +683,27 @@ public static com.google.logging.v2.DeleteLogRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteLogRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteLogRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,6 +718,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteLogRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java index 83a5c43a0..f6ccff880 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.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/logging/v2/logging.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface DeleteLogRequestOrBuilder extends +public interface DeleteLogRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteLogRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the log to delete:
    *
@@ -25,11 +43,16 @@ public interface DeleteLogRequestOrBuilder extends
    * [LogEntry][google.logging.v2.LogEntry].
    * 
* - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The logName. */ java.lang.String getLogName(); /** + * + * *
    * Required. The resource name of the log to delete:
    *
@@ -46,9 +69,11 @@ public interface DeleteLogRequestOrBuilder extends
    * [LogEntry][google.logging.v2.LogEntry].
    * 
* - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for logName. */ - com.google.protobuf.ByteString - getLogNameBytes(); + com.google.protobuf.ByteString getLogNameBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java index e32723fff..7634d8519 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.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/logging/v2/logging_config.proto @@ -5,49 +20,56 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `DeleteSink`.
  * 
* * Protobuf type {@code google.logging.v2.DeleteSinkRequest} */ -public final class DeleteSinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteSinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteSinkRequest) DeleteSinkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteSinkRequest.newBuilder() to construct. private DeleteSinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteSinkRequest() { sinkName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteSinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteSinkRequest.class, com.google.logging.v2.DeleteSinkRequest.Builder.class); + com.google.logging.v2.DeleteSinkRequest.class, + com.google.logging.v2.DeleteSinkRequest.Builder.class); } public static final int SINK_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object sinkName_ = ""; /** + * + * *
    * Required. The full resource name of the sink to delete, including the
    * parent resource and the sink identifier:
@@ -62,7 +84,10 @@ protected java.lang.Object newInstance(
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The sinkName. */ @java.lang.Override @@ -71,14 +96,15 @@ public java.lang.String getSinkName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sinkName_ = s; return s; } } /** + * + * *
    * Required. The full resource name of the sink to delete, including the
    * parent resource and the sink identifier:
@@ -93,17 +119,18 @@ public java.lang.String getSinkName() {
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for sinkName. */ @java.lang.Override - public com.google.protobuf.ByteString - getSinkNameBytes() { + public com.google.protobuf.ByteString getSinkNameBytes() { java.lang.Object ref = sinkName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sinkName_ = b; return b; } else { @@ -112,6 +139,7 @@ public java.lang.String getSinkName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -123,8 +151,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(sinkName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sinkName_); } @@ -148,15 +175,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.DeleteSinkRequest)) { return super.equals(obj); } com.google.logging.v2.DeleteSinkRequest other = (com.google.logging.v2.DeleteSinkRequest) obj; - if (!getSinkName() - .equals(other.getSinkName())) return false; + if (!getSinkName().equals(other.getSinkName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -175,132 +201,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.DeleteSinkRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.DeleteSinkRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteSinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteSinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteSinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteSinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteSinkRequest 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.logging.v2.DeleteSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.DeleteSinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.DeleteSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.DeleteSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.DeleteSinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.DeleteSinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `DeleteSink`.
    * 
* * Protobuf type {@code google.logging.v2.DeleteSinkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteSinkRequest) com.google.logging.v2.DeleteSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteSinkRequest.class, com.google.logging.v2.DeleteSinkRequest.Builder.class); + com.google.logging.v2.DeleteSinkRequest.class, + com.google.logging.v2.DeleteSinkRequest.Builder.class); } // Construct using com.google.logging.v2.DeleteSinkRequest.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(); @@ -310,9 +340,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteSinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteSinkRequest_descriptor; } @java.lang.Override @@ -331,8 +361,11 @@ public com.google.logging.v2.DeleteSinkRequest build() { @java.lang.Override public com.google.logging.v2.DeleteSinkRequest buildPartial() { - com.google.logging.v2.DeleteSinkRequest result = new com.google.logging.v2.DeleteSinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.DeleteSinkRequest result = + new com.google.logging.v2.DeleteSinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -348,38 +381,39 @@ private void buildPartial0(com.google.logging.v2.DeleteSinkRequest 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.logging.v2.DeleteSinkRequest) { - return mergeFrom((com.google.logging.v2.DeleteSinkRequest)other); + return mergeFrom((com.google.logging.v2.DeleteSinkRequest) other); } else { super.mergeFrom(other); return this; @@ -419,17 +453,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - sinkName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + sinkName_ = 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) { @@ -439,10 +475,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object sinkName_ = ""; /** + * + * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -457,14 +496,16 @@ public Builder mergeFrom(
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The sinkName. */ public java.lang.String getSinkName() { java.lang.Object ref = sinkName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sinkName_ = s; return s; @@ -473,6 +514,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -487,16 +530,17 @@ public java.lang.String getSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for sinkName. */ - public com.google.protobuf.ByteString - getSinkNameBytes() { + public com.google.protobuf.ByteString getSinkNameBytes() { java.lang.Object ref = sinkName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sinkName_ = b; return b; } else { @@ -504,6 +548,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -518,19 +564,25 @@ public java.lang.String getSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The sinkName to set. * @return This builder for chaining. */ - public Builder setSinkName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSinkName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sinkName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -545,7 +597,10 @@ public Builder setSinkName(
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSinkName() { @@ -555,6 +610,8 @@ public Builder clearSinkName() { return this; } /** + * + * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -569,22 +626,26 @@ public Builder clearSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for sinkName to set. * @return This builder for chaining. */ - public Builder setSinkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSinkNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sinkName_ = 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); } @@ -594,12 +655,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteSinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteSinkRequest) private static final com.google.logging.v2.DeleteSinkRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteSinkRequest(); } @@ -608,27 +669,27 @@ public static com.google.logging.v2.DeleteSinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,6 +704,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteSinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java index 81f4405a2..ede3b7290 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface DeleteSinkRequestOrBuilder extends +public interface DeleteSinkRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteSinkRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The full resource name of the sink to delete, including the
    * parent resource and the sink identifier:
@@ -23,11 +41,16 @@ public interface DeleteSinkRequestOrBuilder extends
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The sinkName. */ java.lang.String getSinkName(); /** + * + * *
    * Required. The full resource name of the sink to delete, including the
    * parent resource and the sink identifier:
@@ -42,9 +65,11 @@ public interface DeleteSinkRequestOrBuilder extends
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for sinkName. */ - com.google.protobuf.ByteString - getSinkNameBytes(); + com.google.protobuf.ByteString getSinkNameBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java index 5d7030d36..77b3bdd40 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.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/logging/v2/logging_config.proto @@ -5,49 +20,56 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `DeleteView`.
  * 
* * Protobuf type {@code google.logging.v2.DeleteViewRequest} */ -public final class DeleteViewRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteViewRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteViewRequest) DeleteViewRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteViewRequest.newBuilder() to construct. private DeleteViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteViewRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteViewRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteViewRequest.class, com.google.logging.v2.DeleteViewRequest.Builder.class); + com.google.logging.v2.DeleteViewRequest.class, + com.google.logging.v2.DeleteViewRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The full resource name of the view to delete:
    *
@@ -58,7 +80,10 @@ protected java.lang.Object newInstance(
    *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* - * 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. The full resource name of the view to delete:
    *
@@ -85,17 +111,18 @@ public java.lang.String getName() {
    *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* - * 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,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.DeleteViewRequest)) { return super.equals(obj); } com.google.logging.v2.DeleteViewRequest other = (com.google.logging.v2.DeleteViewRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -167,132 +193,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.DeleteViewRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.DeleteViewRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteViewRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteViewRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteViewRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteViewRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.DeleteViewRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.DeleteViewRequest 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.logging.v2.DeleteViewRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.DeleteViewRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.DeleteViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.DeleteViewRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.DeleteViewRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.DeleteViewRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.DeleteViewRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `DeleteView`.
    * 
* * Protobuf type {@code google.logging.v2.DeleteViewRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteViewRequest) com.google.logging.v2.DeleteViewRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.DeleteViewRequest.class, com.google.logging.v2.DeleteViewRequest.Builder.class); + com.google.logging.v2.DeleteViewRequest.class, + com.google.logging.v2.DeleteViewRequest.Builder.class); } // Construct using com.google.logging.v2.DeleteViewRequest.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 +332,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_DeleteViewRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteViewRequest_descriptor; } @java.lang.Override @@ -323,8 +353,11 @@ public com.google.logging.v2.DeleteViewRequest build() { @java.lang.Override public com.google.logging.v2.DeleteViewRequest buildPartial() { - com.google.logging.v2.DeleteViewRequest result = new com.google.logging.v2.DeleteViewRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.DeleteViewRequest result = + new com.google.logging.v2.DeleteViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -340,38 +373,39 @@ private void buildPartial0(com.google.logging.v2.DeleteViewRequest 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.logging.v2.DeleteViewRequest) { - return mergeFrom((com.google.logging.v2.DeleteViewRequest)other); + return mergeFrom((com.google.logging.v2.DeleteViewRequest) other); } else { super.mergeFrom(other); return this; @@ -411,17 +445,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 +467,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full resource name of the view to delete:
      *
@@ -445,14 +484,16 @@ public Builder mergeFrom(
      *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * 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 +502,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the view to delete:
      *
@@ -471,16 +514,17 @@ public java.lang.String getName() {
      *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * 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 +532,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the view to delete:
      *
@@ -498,19 +544,25 @@ public java.lang.String getName() {
      *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the view to delete:
      *
@@ -521,7 +573,10 @@ public Builder setName(
      *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * 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 +586,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The full resource name of the view to delete:
      *
@@ -541,22 +598,26 @@ public Builder clearName() {
      *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * 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 +627,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteViewRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteViewRequest) private static final com.google.logging.v2.DeleteViewRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteViewRequest(); } @@ -580,27 +641,27 @@ public static com.google.logging.v2.DeleteViewRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteViewRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteViewRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +676,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteViewRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java index 0956732de..2e4c27736 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface DeleteViewRequestOrBuilder extends +public interface DeleteViewRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteViewRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The full resource name of the view to delete:
    *
@@ -19,11 +37,16 @@ public interface DeleteViewRequestOrBuilder extends
    *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The full resource name of the view to delete:
    *
@@ -34,9 +57,11 @@ public interface DeleteViewRequestOrBuilder extends
    *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* - * 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/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java index d43c489ed..79824511f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.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/logging/v2/logging_config.proto @@ -5,49 +20,56 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `GetBucket`.
  * 
* * Protobuf type {@code google.logging.v2.GetBucketRequest} */ -public final class GetBucketRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetBucketRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.GetBucketRequest) GetBucketRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetBucketRequest.newBuilder() to construct. private GetBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetBucketRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetBucketRequest.class, com.google.logging.v2.GetBucketRequest.Builder.class); + com.google.logging.v2.GetBucketRequest.class, + com.google.logging.v2.GetBucketRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the bucket:
    *
@@ -61,7 +83,10 @@ protected java.lang.Object newInstance(
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * 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 @@ -70,14 +95,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the bucket:
    *
@@ -91,17 +117,18 @@ public java.lang.String getName() {
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * 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 { @@ -110,6 +137,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +149,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_); } @@ -146,15 +173,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.GetBucketRequest)) { return super.equals(obj); } com.google.logging.v2.GetBucketRequest other = (com.google.logging.v2.GetBucketRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -173,132 +199,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetBucketRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.GetBucketRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetBucketRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetBucketRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetBucketRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetBucketRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetBucketRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetBucketRequest 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.logging.v2.GetBucketRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.GetBucketRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetBucketRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.GetBucketRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.GetBucketRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.GetBucketRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `GetBucket`.
    * 
* * Protobuf type {@code google.logging.v2.GetBucketRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.GetBucketRequest) com.google.logging.v2.GetBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetBucketRequest.class, com.google.logging.v2.GetBucketRequest.Builder.class); + com.google.logging.v2.GetBucketRequest.class, + com.google.logging.v2.GetBucketRequest.Builder.class); } // Construct using com.google.logging.v2.GetBucketRequest.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(); @@ -308,9 +338,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetBucketRequest_descriptor; } @java.lang.Override @@ -329,8 +359,11 @@ public com.google.logging.v2.GetBucketRequest build() { @java.lang.Override public com.google.logging.v2.GetBucketRequest buildPartial() { - com.google.logging.v2.GetBucketRequest result = new com.google.logging.v2.GetBucketRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.GetBucketRequest result = + new com.google.logging.v2.GetBucketRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -346,38 +379,39 @@ private void buildPartial0(com.google.logging.v2.GetBucketRequest 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.logging.v2.GetBucketRequest) { - return mergeFrom((com.google.logging.v2.GetBucketRequest)other); + return mergeFrom((com.google.logging.v2.GetBucketRequest) other); } else { super.mergeFrom(other); return this; @@ -417,17 +451,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) { @@ -437,10 +473,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the bucket:
      *
@@ -454,14 +493,16 @@ public Builder mergeFrom(
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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; @@ -470,6 +511,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the bucket:
      *
@@ -483,16 +526,17 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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 { @@ -500,6 +544,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the bucket:
      *
@@ -513,19 +559,25 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the bucket:
      *
@@ -539,7 +591,10 @@ public Builder setName(
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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() { @@ -549,6 +604,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the bucket:
      *
@@ -562,22 +619,26 @@ public Builder clearName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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); } @@ -587,12 +648,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.GetBucketRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetBucketRequest) private static final com.google.logging.v2.GetBucketRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.GetBucketRequest(); } @@ -601,27 +662,27 @@ public static com.google.logging.v2.GetBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,6 +697,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java index 8b580ca90..c0fef139f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface GetBucketRequestOrBuilder extends +public interface GetBucketRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.GetBucketRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the bucket:
    *
@@ -22,11 +40,16 @@ public interface GetBucketRequestOrBuilder extends
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the bucket:
    *
@@ -40,9 +63,11 @@ public interface GetBucketRequestOrBuilder extends
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * 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/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java index c3745333f..362533fbe 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.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/logging/v2/logging_config.proto @@ -5,6 +20,8 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to
  * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings].
@@ -16,43 +33,48 @@
  *
  * Protobuf type {@code google.logging.v2.GetCmekSettingsRequest}
  */
-public final class GetCmekSettingsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetCmekSettingsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.GetCmekSettingsRequest)
     GetCmekSettingsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetCmekSettingsRequest.newBuilder() to construct.
   private GetCmekSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetCmekSettingsRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetCmekSettingsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.GetCmekSettingsRequest.class, com.google.logging.v2.GetCmekSettingsRequest.Builder.class);
+            com.google.logging.v2.GetCmekSettingsRequest.class,
+            com.google.logging.v2.GetCmekSettingsRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The resource for which to retrieve CMEK settings.
    *
@@ -71,7 +93,10 @@ protected java.lang.Object newInstance(
    * organization.
    * 
* - * 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 @@ -80,14 +105,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource for which to retrieve CMEK settings.
    *
@@ -106,17 +132,18 @@ public java.lang.String getName() {
    * organization.
    * 
* - * 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 { @@ -125,6 +152,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,8 +164,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_); } @@ -161,15 +188,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.logging.v2.GetCmekSettingsRequest)) { return super.equals(obj); } - com.google.logging.v2.GetCmekSettingsRequest other = (com.google.logging.v2.GetCmekSettingsRequest) obj; + com.google.logging.v2.GetCmekSettingsRequest other = + (com.google.logging.v2.GetCmekSettingsRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,99 +215,104 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetCmekSettingsRequest 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.logging.v2.GetCmekSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetCmekSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.GetCmekSettingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetCmekSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.GetCmekSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to
    * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings].
@@ -292,33 +324,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.GetCmekSettingsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.GetCmekSettingsRequest)
       com.google.logging.v2.GetCmekSettingsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.GetCmekSettingsRequest.class, com.google.logging.v2.GetCmekSettingsRequest.Builder.class);
+              com.google.logging.v2.GetCmekSettingsRequest.class,
+              com.google.logging.v2.GetCmekSettingsRequest.Builder.class);
     }
 
     // Construct using com.google.logging.v2.GetCmekSettingsRequest.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();
@@ -328,9 +359,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -349,8 +380,11 @@ public com.google.logging.v2.GetCmekSettingsRequest build() {
 
     @java.lang.Override
     public com.google.logging.v2.GetCmekSettingsRequest buildPartial() {
-      com.google.logging.v2.GetCmekSettingsRequest result = new com.google.logging.v2.GetCmekSettingsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.logging.v2.GetCmekSettingsRequest result =
+          new com.google.logging.v2.GetCmekSettingsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -366,38 +400,39 @@ private void buildPartial0(com.google.logging.v2.GetCmekSettingsRequest 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.logging.v2.GetCmekSettingsRequest) {
-        return mergeFrom((com.google.logging.v2.GetCmekSettingsRequest)other);
+        return mergeFrom((com.google.logging.v2.GetCmekSettingsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -437,17 +472,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) {
@@ -457,10 +494,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -479,14 +519,16 @@ public Builder mergeFrom(
      * organization.
      * 
* - * 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; @@ -495,6 +537,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -513,16 +557,17 @@ public java.lang.String getName() {
      * organization.
      * 
* - * 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,6 +575,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -548,19 +595,25 @@ public java.lang.String getName() {
      * organization.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -579,7 +632,10 @@ public Builder setName(
      * organization.
      * 
* - * 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() { @@ -589,6 +645,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -607,22 +665,26 @@ public Builder clearName() {
      * organization.
      * 
* - * 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); } @@ -632,12 +694,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.GetCmekSettingsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetCmekSettingsRequest) private static final com.google.logging.v2.GetCmekSettingsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.GetCmekSettingsRequest(); } @@ -646,27 +708,27 @@ public static com.google.logging.v2.GetCmekSettingsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCmekSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCmekSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -681,6 +743,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetCmekSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java index 540965c17..86b43f73b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface GetCmekSettingsRequestOrBuilder extends +public interface GetCmekSettingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.GetCmekSettingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource for which to retrieve CMEK settings.
    *
@@ -27,11 +45,16 @@ public interface GetCmekSettingsRequestOrBuilder extends
    * organization.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource for which to retrieve CMEK settings.
    *
@@ -50,9 +73,11 @@ public interface GetCmekSettingsRequestOrBuilder extends
    * organization.
    * 
* - * 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/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java index 829ad4774..02e1d71fe 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.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/logging/v2/logging_config.proto @@ -5,49 +20,56 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `GetExclusion`.
  * 
* * Protobuf type {@code google.logging.v2.GetExclusionRequest} */ -public final class GetExclusionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetExclusionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.GetExclusionRequest) GetExclusionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetExclusionRequest.newBuilder() to construct. private GetExclusionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetExclusionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetExclusionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetExclusionRequest.class, com.google.logging.v2.GetExclusionRequest.Builder.class); + com.google.logging.v2.GetExclusionRequest.class, + com.google.logging.v2.GetExclusionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of an existing exclusion:
    *
@@ -61,7 +83,10 @@ protected java.lang.Object newInstance(
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * 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 @@ -70,14 +95,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of an existing exclusion:
    *
@@ -91,17 +117,18 @@ public java.lang.String getName() {
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * 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 { @@ -110,6 +137,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +149,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_); } @@ -146,15 +173,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.logging.v2.GetExclusionRequest)) { return super.equals(obj); } - com.google.logging.v2.GetExclusionRequest other = (com.google.logging.v2.GetExclusionRequest) obj; + com.google.logging.v2.GetExclusionRequest other = + (com.google.logging.v2.GetExclusionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -173,132 +200,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetExclusionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.GetExclusionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetExclusionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetExclusionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetExclusionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetExclusionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetExclusionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetExclusionRequest 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.logging.v2.GetExclusionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetExclusionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.GetExclusionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetExclusionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.GetExclusionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.GetExclusionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.GetExclusionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `GetExclusion`.
    * 
* * Protobuf type {@code google.logging.v2.GetExclusionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.GetExclusionRequest) com.google.logging.v2.GetExclusionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetExclusionRequest.class, com.google.logging.v2.GetExclusionRequest.Builder.class); + com.google.logging.v2.GetExclusionRequest.class, + com.google.logging.v2.GetExclusionRequest.Builder.class); } // Construct using com.google.logging.v2.GetExclusionRequest.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(); @@ -308,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetExclusionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetExclusionRequest_descriptor; } @java.lang.Override @@ -329,8 +360,11 @@ public com.google.logging.v2.GetExclusionRequest build() { @java.lang.Override public com.google.logging.v2.GetExclusionRequest buildPartial() { - com.google.logging.v2.GetExclusionRequest result = new com.google.logging.v2.GetExclusionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.GetExclusionRequest result = + new com.google.logging.v2.GetExclusionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -346,38 +380,39 @@ private void buildPartial0(com.google.logging.v2.GetExclusionRequest 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.logging.v2.GetExclusionRequest) { - return mergeFrom((com.google.logging.v2.GetExclusionRequest)other); + return mergeFrom((com.google.logging.v2.GetExclusionRequest) other); } else { super.mergeFrom(other); return this; @@ -417,17 +452,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) { @@ -437,10 +474,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of an existing exclusion:
      *
@@ -454,14 +494,16 @@ public Builder mergeFrom(
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * 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; @@ -470,6 +512,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of an existing exclusion:
      *
@@ -483,16 +527,17 @@ public java.lang.String getName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * 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 { @@ -500,6 +545,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of an existing exclusion:
      *
@@ -513,19 +560,25 @@ public java.lang.String getName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of an existing exclusion:
      *
@@ -539,7 +592,10 @@ public Builder setName(
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * 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() { @@ -549,6 +605,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of an existing exclusion:
      *
@@ -562,22 +620,26 @@ public Builder clearName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * 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); } @@ -587,12 +649,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.GetExclusionRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetExclusionRequest) private static final com.google.logging.v2.GetExclusionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.GetExclusionRequest(); } @@ -601,27 +663,27 @@ public static com.google.logging.v2.GetExclusionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetExclusionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExclusionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,6 +698,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetExclusionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java index 34bcfe740..7da27848d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface GetExclusionRequestOrBuilder extends +public interface GetExclusionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.GetExclusionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of an existing exclusion:
    *
@@ -22,11 +40,16 @@ public interface GetExclusionRequestOrBuilder extends
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of an existing exclusion:
    *
@@ -40,9 +63,11 @@ public interface GetExclusionRequestOrBuilder extends
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * 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/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java index d32ae9505..14c277fb4 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.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/logging/v2/logging_config.proto @@ -5,49 +20,56 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to GetLink.
  * 
* * Protobuf type {@code google.logging.v2.GetLinkRequest} */ -public final class GetLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.GetLinkRequest) GetLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetLinkRequest.newBuilder() to construct. private GetLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetLinkRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetLinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetLinkRequest.class, com.google.logging.v2.GetLinkRequest.Builder.class); + com.google.logging.v2.GetLinkRequest.class, + com.google.logging.v2.GetLinkRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the link:
    *
@@ -57,7 +79,10 @@ protected java.lang.Object newInstance(
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,14 +91,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the link:
    *
@@ -83,17 +109,18 @@ public java.lang.String getName() {
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -102,6 +129,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -113,8 +141,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_); } @@ -138,15 +165,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.GetLinkRequest)) { return super.equals(obj); } com.google.logging.v2.GetLinkRequest other = (com.google.logging.v2.GetLinkRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -165,132 +191,135 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetLinkRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.GetLinkRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetLinkRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.GetLinkRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetLinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetLinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetLinkRequest 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.logging.v2.GetLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.GetLinkRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.GetLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.GetLinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.GetLinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to GetLink.
    * 
* * Protobuf type {@code google.logging.v2.GetLinkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.GetLinkRequest) com.google.logging.v2.GetLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetLinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetLinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetLinkRequest.class, com.google.logging.v2.GetLinkRequest.Builder.class); + com.google.logging.v2.GetLinkRequest.class, + com.google.logging.v2.GetLinkRequest.Builder.class); } // Construct using com.google.logging.v2.GetLinkRequest.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(); @@ -300,9 +329,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetLinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetLinkRequest_descriptor; } @java.lang.Override @@ -322,7 +351,9 @@ public com.google.logging.v2.GetLinkRequest build() { @java.lang.Override public com.google.logging.v2.GetLinkRequest buildPartial() { com.google.logging.v2.GetLinkRequest result = new com.google.logging.v2.GetLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -338,38 +369,39 @@ private void buildPartial0(com.google.logging.v2.GetLinkRequest 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.logging.v2.GetLinkRequest) { - return mergeFrom((com.google.logging.v2.GetLinkRequest)other); + return mergeFrom((com.google.logging.v2.GetLinkRequest) other); } else { super.mergeFrom(other); return this; @@ -409,17 +441,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) { @@ -429,10 +463,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the link:
      *
@@ -442,14 +479,16 @@ public Builder mergeFrom(
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -458,6 +497,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the link:
      *
@@ -467,16 +508,17 @@ public java.lang.String getName() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -484,6 +526,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the link:
      *
@@ -493,19 +537,25 @@ public java.lang.String getName() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the link:
      *
@@ -515,7 +565,10 @@ public Builder setName(
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -525,6 +578,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the link:
      *
@@ -534,22 +589,26 @@ public Builder clearName() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +618,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.GetLinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetLinkRequest) private static final com.google.logging.v2.GetLinkRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.GetLinkRequest(); } @@ -573,27 +632,27 @@ public static com.google.logging.v2.GetLinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -608,6 +667,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetLinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java index 1d381246c..fd67df76a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface GetLinkRequestOrBuilder extends +public interface GetLinkRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.GetLinkRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the link:
    *
@@ -18,11 +36,16 @@ public interface GetLinkRequestOrBuilder extends
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the link:
    *
@@ -32,9 +55,11 @@ public interface GetLinkRequestOrBuilder extends
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java similarity index 62% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java index 2761c6625..e4925bcf8 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.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/logging/v2/logging_metrics.proto @@ -5,56 +20,66 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to GetLogMetric.
  * 
* * Protobuf type {@code google.logging.v2.GetLogMetricRequest} */ -public final class GetLogMetricRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetLogMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.GetLogMetricRequest) GetLogMetricRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetLogMetricRequest.newBuilder() to construct. private GetLogMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetLogMetricRequest() { metricName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetLogMetricRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_GetLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_GetLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetLogMetricRequest.class, com.google.logging.v2.GetLogMetricRequest.Builder.class); + com.google.logging.v2.GetLogMetricRequest.class, + com.google.logging.v2.GetLogMetricRequest.Builder.class); } public static final int METRIC_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object metricName_ = ""; /** + * + * *
    * Required. The resource name of the desired metric:
    *
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The metricName. */ @java.lang.Override @@ -63,31 +88,33 @@ public java.lang.String getMetricName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; } } /** + * + * *
    * Required. The resource name of the desired metric:
    *
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for metricName. */ @java.lang.Override - public com.google.protobuf.ByteString - getMetricNameBytes() { + public com.google.protobuf.ByteString getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metricName_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getMetricName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -132,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.GetLogMetricRequest)) { return super.equals(obj); } - com.google.logging.v2.GetLogMetricRequest other = (com.google.logging.v2.GetLogMetricRequest) obj; + com.google.logging.v2.GetLogMetricRequest other = + (com.google.logging.v2.GetLogMetricRequest) obj; - if (!getMetricName() - .equals(other.getMetricName())) return false; + if (!getMetricName().equals(other.getMetricName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,132 +186,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetLogMetricRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.GetLogMetricRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetLogMetricRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetLogMetricRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetLogMetricRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetLogMetricRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetLogMetricRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetLogMetricRequest 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.logging.v2.GetLogMetricRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetLogMetricRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.GetLogMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetLogMetricRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.GetLogMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.GetLogMetricRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.GetLogMetricRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to GetLogMetric.
    * 
* * Protobuf type {@code google.logging.v2.GetLogMetricRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.GetLogMetricRequest) com.google.logging.v2.GetLogMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_GetLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_GetLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetLogMetricRequest.class, com.google.logging.v2.GetLogMetricRequest.Builder.class); + com.google.logging.v2.GetLogMetricRequest.class, + com.google.logging.v2.GetLogMetricRequest.Builder.class); } // Construct using com.google.logging.v2.GetLogMetricRequest.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(); @@ -294,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_GetLogMetricRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_GetLogMetricRequest_descriptor; } @java.lang.Override @@ -315,8 +346,11 @@ public com.google.logging.v2.GetLogMetricRequest build() { @java.lang.Override public com.google.logging.v2.GetLogMetricRequest buildPartial() { - com.google.logging.v2.GetLogMetricRequest result = new com.google.logging.v2.GetLogMetricRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.GetLogMetricRequest result = + new com.google.logging.v2.GetLogMetricRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +366,39 @@ private void buildPartial0(com.google.logging.v2.GetLogMetricRequest 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.logging.v2.GetLogMetricRequest) { - return mergeFrom((com.google.logging.v2.GetLogMetricRequest)other); + return mergeFrom((com.google.logging.v2.GetLogMetricRequest) other); } else { super.mergeFrom(other); return this; @@ -403,17 +438,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - metricName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + metricName_ = 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) { @@ -423,24 +460,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object metricName_ = ""; /** + * + * *
      * Required. The resource name of the desired metric:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The metricName. */ public java.lang.String getMetricName() { java.lang.Object ref = metricName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; @@ -449,22 +491,25 @@ public java.lang.String getMetricName() { } } /** + * + * *
      * Required. The resource name of the desired metric:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for metricName. */ - public com.google.protobuf.ByteString - getMetricNameBytes() { + public com.google.protobuf.ByteString getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metricName_ = b; return b; } else { @@ -472,32 +517,43 @@ public java.lang.String getMetricName() { } } /** + * + * *
      * Required. The resource name of the desired metric:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The metricName to set. * @return This builder for chaining. */ - public Builder setMetricName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMetricName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } metricName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the desired metric:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearMetricName() { @@ -507,28 +563,34 @@ public Builder clearMetricName() { return this; } /** + * + * *
      * Required. The resource name of the desired metric:
      *
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for metricName to set. * @return This builder for chaining. */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); metricName_ = 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); } @@ -538,12 +600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.GetLogMetricRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetLogMetricRequest) private static final com.google.logging.v2.GetLogMetricRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.GetLogMetricRequest(); } @@ -552,27 +614,27 @@ public static com.google.logging.v2.GetLogMetricRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLogMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLogMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -587,6 +649,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetLogMetricRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java new file mode 100644 index 000000000..9371f4353 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java @@ -0,0 +1,59 @@ +/* + * 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/logging/v2/logging_metrics.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public interface GetLogMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.GetLogMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the desired metric:
+   *
+   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
+   * 
+ * + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The metricName. + */ + java.lang.String getMetricName(); + /** + * + * + *
+   * Required. The resource name of the desired metric:
+   *
+   *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
+   * 
+ * + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for metricName. + */ + com.google.protobuf.ByteString getMetricNameBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java index a1c09706e..533ef03e5 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.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/logging/v2/logging_config.proto @@ -5,6 +20,8 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to
  * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings].
@@ -16,43 +33,48 @@
  *
  * Protobuf type {@code google.logging.v2.GetSettingsRequest}
  */
-public final class GetSettingsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GetSettingsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.GetSettingsRequest)
     GetSettingsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GetSettingsRequest.newBuilder() to construct.
   private GetSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GetSettingsRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GetSettingsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSettingsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_GetSettingsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.GetSettingsRequest.class, com.google.logging.v2.GetSettingsRequest.Builder.class);
+            com.google.logging.v2.GetSettingsRequest.class,
+            com.google.logging.v2.GetSettingsRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The resource for which to retrieve settings.
    *
@@ -71,7 +93,10 @@ protected java.lang.Object newInstance(
    * applies to all projects and folders in the Google Cloud organization.
    * 
* - * 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 @@ -80,14 +105,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource for which to retrieve settings.
    *
@@ -106,17 +132,18 @@ public java.lang.String getName() {
    * applies to all projects and folders in the Google Cloud organization.
    * 
* - * 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 { @@ -125,6 +152,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,8 +164,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_); } @@ -161,15 +188,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.GetSettingsRequest)) { return super.equals(obj); } com.google.logging.v2.GetSettingsRequest other = (com.google.logging.v2.GetSettingsRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,99 +214,104 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetSettingsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.GetSettingsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetSettingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetSettingsRequest 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.logging.v2.GetSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.GetSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.GetSettingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.GetSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.GetSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.GetSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to
    * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings].
@@ -292,33 +323,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.GetSettingsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.GetSettingsRequest)
       com.google.logging.v2.GetSettingsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSettingsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_GetSettingsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.GetSettingsRequest.class, com.google.logging.v2.GetSettingsRequest.Builder.class);
+              com.google.logging.v2.GetSettingsRequest.class,
+              com.google.logging.v2.GetSettingsRequest.Builder.class);
     }
 
     // Construct using com.google.logging.v2.GetSettingsRequest.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();
@@ -328,9 +358,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSettingsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_GetSettingsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -349,8 +379,11 @@ public com.google.logging.v2.GetSettingsRequest build() {
 
     @java.lang.Override
     public com.google.logging.v2.GetSettingsRequest buildPartial() {
-      com.google.logging.v2.GetSettingsRequest result = new com.google.logging.v2.GetSettingsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.logging.v2.GetSettingsRequest result =
+          new com.google.logging.v2.GetSettingsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -366,38 +399,39 @@ private void buildPartial0(com.google.logging.v2.GetSettingsRequest 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.logging.v2.GetSettingsRequest) {
-        return mergeFrom((com.google.logging.v2.GetSettingsRequest)other);
+        return mergeFrom((com.google.logging.v2.GetSettingsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -437,17 +471,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) {
@@ -457,10 +493,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource for which to retrieve settings.
      *
@@ -479,14 +518,16 @@ public Builder mergeFrom(
      * applies to all projects and folders in the Google Cloud organization.
      * 
* - * 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; @@ -495,6 +536,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource for which to retrieve settings.
      *
@@ -513,16 +556,17 @@ public java.lang.String getName() {
      * applies to all projects and folders in the Google Cloud organization.
      * 
* - * 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,6 +574,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource for which to retrieve settings.
      *
@@ -548,19 +594,25 @@ public java.lang.String getName() {
      * applies to all projects and folders in the Google Cloud organization.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource for which to retrieve settings.
      *
@@ -579,7 +631,10 @@ public Builder setName(
      * applies to all projects and folders in the Google Cloud organization.
      * 
* - * 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() { @@ -589,6 +644,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource for which to retrieve settings.
      *
@@ -607,22 +664,26 @@ public Builder clearName() {
      * applies to all projects and folders in the Google Cloud organization.
      * 
* - * 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); } @@ -632,12 +693,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.GetSettingsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetSettingsRequest) private static final com.google.logging.v2.GetSettingsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.GetSettingsRequest(); } @@ -646,27 +707,27 @@ public static com.google.logging.v2.GetSettingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -681,6 +742,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java index 189c0dddb..067210c03 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface GetSettingsRequestOrBuilder extends +public interface GetSettingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.GetSettingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource for which to retrieve settings.
    *
@@ -27,11 +45,16 @@ public interface GetSettingsRequestOrBuilder extends
    * applies to all projects and folders in the Google Cloud organization.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource for which to retrieve settings.
    *
@@ -50,9 +73,11 @@ public interface GetSettingsRequestOrBuilder extends
    * applies to all projects and folders in the Google Cloud organization.
    * 
* - * 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/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java index cb39329cb..8bc4cd87f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.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/logging/v2/logging_config.proto @@ -5,49 +20,56 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `GetSink`.
  * 
* * Protobuf type {@code google.logging.v2.GetSinkRequest} */ -public final class GetSinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetSinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.GetSinkRequest) GetSinkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetSinkRequest.newBuilder() to construct. private GetSinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetSinkRequest() { sinkName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetSinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetSinkRequest.class, com.google.logging.v2.GetSinkRequest.Builder.class); + com.google.logging.v2.GetSinkRequest.class, + com.google.logging.v2.GetSinkRequest.Builder.class); } public static final int SINK_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object sinkName_ = ""; /** + * + * *
    * Required. The resource name of the sink:
    *
@@ -61,7 +83,10 @@ protected java.lang.Object newInstance(
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The sinkName. */ @java.lang.Override @@ -70,14 +95,15 @@ public java.lang.String getSinkName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sinkName_ = s; return s; } } /** + * + * *
    * Required. The resource name of the sink:
    *
@@ -91,17 +117,18 @@ public java.lang.String getSinkName() {
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for sinkName. */ @java.lang.Override - public com.google.protobuf.ByteString - getSinkNameBytes() { + public com.google.protobuf.ByteString getSinkNameBytes() { java.lang.Object ref = sinkName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sinkName_ = b; return b; } else { @@ -110,6 +137,7 @@ public java.lang.String getSinkName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +149,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(sinkName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sinkName_); } @@ -146,15 +173,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.GetSinkRequest)) { return super.equals(obj); } com.google.logging.v2.GetSinkRequest other = (com.google.logging.v2.GetSinkRequest) obj; - if (!getSinkName() - .equals(other.getSinkName())) return false; + if (!getSinkName().equals(other.getSinkName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -173,132 +199,135 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetSinkRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.GetSinkRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetSinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetSinkRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.GetSinkRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetSinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetSinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetSinkRequest 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.logging.v2.GetSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.GetSinkRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.GetSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.GetSinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.GetSinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `GetSink`.
    * 
* * Protobuf type {@code google.logging.v2.GetSinkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.GetSinkRequest) com.google.logging.v2.GetSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetSinkRequest.class, com.google.logging.v2.GetSinkRequest.Builder.class); + com.google.logging.v2.GetSinkRequest.class, + com.google.logging.v2.GetSinkRequest.Builder.class); } // Construct using com.google.logging.v2.GetSinkRequest.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(); @@ -308,9 +337,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetSinkRequest_descriptor; } @java.lang.Override @@ -330,7 +359,9 @@ public com.google.logging.v2.GetSinkRequest build() { @java.lang.Override public com.google.logging.v2.GetSinkRequest buildPartial() { com.google.logging.v2.GetSinkRequest result = new com.google.logging.v2.GetSinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -346,38 +377,39 @@ private void buildPartial0(com.google.logging.v2.GetSinkRequest 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.logging.v2.GetSinkRequest) { - return mergeFrom((com.google.logging.v2.GetSinkRequest)other); + return mergeFrom((com.google.logging.v2.GetSinkRequest) other); } else { super.mergeFrom(other); return this; @@ -417,17 +449,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - sinkName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + sinkName_ = 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) { @@ -437,10 +471,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object sinkName_ = ""; /** + * + * *
      * Required. The resource name of the sink:
      *
@@ -454,14 +491,16 @@ public Builder mergeFrom(
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The sinkName. */ public java.lang.String getSinkName() { java.lang.Object ref = sinkName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sinkName_ = s; return s; @@ -470,6 +509,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The resource name of the sink:
      *
@@ -483,16 +524,17 @@ public java.lang.String getSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for sinkName. */ - public com.google.protobuf.ByteString - getSinkNameBytes() { + public com.google.protobuf.ByteString getSinkNameBytes() { java.lang.Object ref = sinkName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sinkName_ = b; return b; } else { @@ -500,6 +542,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The resource name of the sink:
      *
@@ -513,19 +557,25 @@ public java.lang.String getSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The sinkName to set. * @return This builder for chaining. */ - public Builder setSinkName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSinkName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sinkName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the sink:
      *
@@ -539,7 +589,10 @@ public Builder setSinkName(
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSinkName() { @@ -549,6 +602,8 @@ public Builder clearSinkName() { return this; } /** + * + * *
      * Required. The resource name of the sink:
      *
@@ -562,22 +617,26 @@ public Builder clearSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for sinkName to set. * @return This builder for chaining. */ - public Builder setSinkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSinkNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sinkName_ = 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); } @@ -587,12 +646,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.GetSinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetSinkRequest) private static final com.google.logging.v2.GetSinkRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.GetSinkRequest(); } @@ -601,27 +660,27 @@ public static com.google.logging.v2.GetSinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,6 +695,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetSinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java index 1c9c4b39e..20a26235b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface GetSinkRequestOrBuilder extends +public interface GetSinkRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.GetSinkRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the sink:
    *
@@ -22,11 +40,16 @@ public interface GetSinkRequestOrBuilder extends
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The sinkName. */ java.lang.String getSinkName(); /** + * + * *
    * Required. The resource name of the sink:
    *
@@ -40,9 +63,11 @@ public interface GetSinkRequestOrBuilder extends
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for sinkName. */ - com.google.protobuf.ByteString - getSinkNameBytes(); + com.google.protobuf.ByteString getSinkNameBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java index 370841cd0..4b4103b77 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.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/logging/v2/logging_config.proto @@ -5,49 +20,56 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `GetView`.
  * 
* * Protobuf type {@code google.logging.v2.GetViewRequest} */ -public final class GetViewRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetViewRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.GetViewRequest) GetViewRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetViewRequest.newBuilder() to construct. private GetViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetViewRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetViewRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetViewRequest.class, com.google.logging.v2.GetViewRequest.Builder.class); + com.google.logging.v2.GetViewRequest.class, + com.google.logging.v2.GetViewRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the policy:
    *
@@ -58,7 +80,10 @@ protected java.lang.Object newInstance(
    *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* - * 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. The resource name of the policy:
    *
@@ -85,17 +111,18 @@ public java.lang.String getName() {
    *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* - * 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,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.GetViewRequest)) { return super.equals(obj); } com.google.logging.v2.GetViewRequest other = (com.google.logging.v2.GetViewRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -167,132 +193,135 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.GetViewRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.GetViewRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetViewRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.GetViewRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.GetViewRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetViewRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetViewRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.GetViewRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.GetViewRequest 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.logging.v2.GetViewRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.GetViewRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.GetViewRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.GetViewRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.GetViewRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.GetViewRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `GetView`.
    * 
* * Protobuf type {@code google.logging.v2.GetViewRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.GetViewRequest) com.google.logging.v2.GetViewRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.GetViewRequest.class, com.google.logging.v2.GetViewRequest.Builder.class); + com.google.logging.v2.GetViewRequest.class, + com.google.logging.v2.GetViewRequest.Builder.class); } // Construct using com.google.logging.v2.GetViewRequest.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 +331,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetViewRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetViewRequest_descriptor; } @java.lang.Override @@ -324,7 +353,9 @@ public com.google.logging.v2.GetViewRequest build() { @java.lang.Override public com.google.logging.v2.GetViewRequest buildPartial() { com.google.logging.v2.GetViewRequest result = new com.google.logging.v2.GetViewRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -340,38 +371,39 @@ private void buildPartial0(com.google.logging.v2.GetViewRequest 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.logging.v2.GetViewRequest) { - return mergeFrom((com.google.logging.v2.GetViewRequest)other); + return mergeFrom((com.google.logging.v2.GetViewRequest) other); } else { super.mergeFrom(other); return this; @@ -411,17 +443,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 +465,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the policy:
      *
@@ -445,14 +482,16 @@ public Builder mergeFrom(
      *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * 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 +500,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy:
      *
@@ -471,16 +512,17 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * 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. The resource name of the policy:
      *
@@ -498,19 +542,25 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the policy:
      *
@@ -521,7 +571,10 @@ public Builder setName(
      *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * 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 +584,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the policy:
      *
@@ -541,22 +596,26 @@ public Builder clearName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * 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 +625,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.GetViewRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetViewRequest) private static final com.google.logging.v2.GetViewRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.GetViewRequest(); } @@ -580,27 +639,27 @@ public static com.google.logging.v2.GetViewRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetViewRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetViewRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +674,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetViewRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java new file mode 100644 index 000000000..9ec78fc2f --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java @@ -0,0 +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/logging/v2/logging_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public interface GetViewRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.GetViewRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the policy:
+   *
+   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+   *
+   * For example:
+   *
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the policy:
+   *
+   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+   *
+   * For example:
+   *
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java index e2721fb3b..5ea9f4e7f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * Configuration for an indexed field.
  * 
* * Protobuf type {@code google.logging.v2.IndexConfig} */ -public final class IndexConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IndexConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.IndexConfig) IndexConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IndexConfig.newBuilder() to construct. private IndexConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IndexConfig() { fieldPath_ = ""; type_ = 0; @@ -27,29 +45,33 @@ private IndexConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IndexConfig(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_IndexConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_IndexConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_IndexConfig_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_IndexConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.IndexConfig.class, com.google.logging.v2.IndexConfig.Builder.class); + com.google.logging.v2.IndexConfig.class, + com.google.logging.v2.IndexConfig.Builder.class); } private int bitField0_; public static final int FIELD_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object fieldPath_ = ""; /** + * + * *
    * Required. The LogEntry field path to index.
    *
@@ -62,6 +84,7 @@ protected java.lang.Object newInstance(
    * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fieldPath. */ @java.lang.Override @@ -70,14 +93,15 @@ public java.lang.String getFieldPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldPath_ = s; return s; } } /** + * + * *
    * Required. The LogEntry field path to index.
    *
@@ -90,16 +114,15 @@ public java.lang.String getFieldPath() {
    * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fieldPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getFieldPathBytes() { + public com.google.protobuf.ByteString getFieldPathBytes() { java.lang.Object ref = fieldPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fieldPath_ = b; return b; } else { @@ -110,25 +133,33 @@ public java.lang.String getFieldPath() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** + * + * *
    * Required. The type of data in this index.
    * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Required. The type of data in this index.
    * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The type. */ - @java.lang.Override public com.google.logging.v2.IndexType getType() { + @java.lang.Override + public com.google.logging.v2.IndexType getType() { com.google.logging.v2.IndexType result = com.google.logging.v2.IndexType.forNumber(type_); return result == null ? com.google.logging.v2.IndexType.UNRECOGNIZED : result; } @@ -136,6 +167,8 @@ public java.lang.String getFieldPath() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The timestamp when the index was last modified.
    *
@@ -143,7 +176,9 @@ public java.lang.String getFieldPath() {
    * during update.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -151,6 +186,8 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Output only. The timestamp when the index was last modified.
    *
@@ -158,7 +195,9 @@ public boolean hasCreateTime() {
    * during update.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -166,6 +205,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The timestamp when the index was last modified.
    *
@@ -173,7 +214,8 @@ public com.google.protobuf.Timestamp getCreateTime() {
    * during update.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -181,6 +223,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,8 +235,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(fieldPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_); } @@ -216,12 +258,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldPath_); } if (type_ != com.google.logging.v2.IndexType.INDEX_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -231,20 +271,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.logging.v2.IndexConfig)) { return super.equals(obj); } com.google.logging.v2.IndexConfig other = (com.google.logging.v2.IndexConfig) obj; - if (!getFieldPath() - .equals(other.getFieldPath())) return false; + if (!getFieldPath().equals(other.getFieldPath())) return false; if (type_ != other.type_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -270,120 +308,126 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.IndexConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.IndexConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.IndexConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.IndexConfig parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.IndexConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.IndexConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.IndexConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.IndexConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.IndexConfig 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.logging.v2.IndexConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.IndexConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.IndexConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.IndexConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.IndexConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.IndexConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Configuration for an indexed field.
    * 
* * Protobuf type {@code google.logging.v2.IndexConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.IndexConfig) com.google.logging.v2.IndexConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_IndexConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_IndexConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_IndexConfig_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_IndexConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.IndexConfig.class, com.google.logging.v2.IndexConfig.Builder.class); + com.google.logging.v2.IndexConfig.class, + com.google.logging.v2.IndexConfig.Builder.class); } // Construct using com.google.logging.v2.IndexConfig.newBuilder() @@ -391,17 +435,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) { getCreateTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -417,9 +461,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_IndexConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_IndexConfig_descriptor; } @java.lang.Override @@ -439,7 +483,9 @@ public com.google.logging.v2.IndexConfig build() { @java.lang.Override public com.google.logging.v2.IndexConfig buildPartial() { com.google.logging.v2.IndexConfig result = new com.google.logging.v2.IndexConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -454,9 +500,7 @@ private void buildPartial0(com.google.logging.v2.IndexConfig result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -466,38 +510,39 @@ private void buildPartial0(com.google.logging.v2.IndexConfig 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.logging.v2.IndexConfig) { - return mergeFrom((com.google.logging.v2.IndexConfig)other); + return mergeFrom((com.google.logging.v2.IndexConfig) other); } else { super.mergeFrom(other); return this; @@ -543,29 +588,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - fieldPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + fieldPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -575,10 +622,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object fieldPath_ = ""; /** + * + * *
      * Required. The LogEntry field path to index.
      *
@@ -591,13 +641,13 @@ public Builder mergeFrom(
      * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fieldPath. */ public java.lang.String getFieldPath() { java.lang.Object ref = fieldPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fieldPath_ = s; return s; @@ -606,6 +656,8 @@ public java.lang.String getFieldPath() { } } /** + * + * *
      * Required. The LogEntry field path to index.
      *
@@ -618,15 +670,14 @@ public java.lang.String getFieldPath() {
      * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fieldPath. */ - public com.google.protobuf.ByteString - getFieldPathBytes() { + public com.google.protobuf.ByteString getFieldPathBytes() { java.lang.Object ref = fieldPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fieldPath_ = b; return b; } else { @@ -634,6 +685,8 @@ public java.lang.String getFieldPath() { } } /** + * + * *
      * Required. The LogEntry field path to index.
      *
@@ -646,18 +699,22 @@ public java.lang.String getFieldPath() {
      * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The fieldPath to set. * @return This builder for chaining. */ - public Builder setFieldPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFieldPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } fieldPath_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The LogEntry field path to index.
      *
@@ -670,6 +727,7 @@ public Builder setFieldPath(
      * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFieldPath() { @@ -679,6 +737,8 @@ public Builder clearFieldPath() { return this; } /** + * + * *
      * Required. The LogEntry field path to index.
      *
@@ -691,12 +751,14 @@ public Builder clearFieldPath() {
      * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for fieldPath to set. * @return This builder for chaining. */ - public Builder setFieldPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); fieldPath_ = value; bitField0_ |= 0x00000001; @@ -706,22 +768,29 @@ public Builder setFieldPathBytes( private int type_ = 0; /** + * + * *
      * Required. The type of data in this index.
      * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Required. The type of data in this index.
      * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -732,11 +801,14 @@ public Builder setTypeValue(int value) { return this; } /** + * + * *
      * Required. The type of data in this index.
      * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The type. */ @java.lang.Override @@ -745,11 +817,14 @@ public com.google.logging.v2.IndexType getType() { return result == null ? com.google.logging.v2.IndexType.UNRECOGNIZED : result; } /** + * + * *
      * Required. The type of data in this index.
      * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The type to set. * @return This builder for chaining. */ @@ -763,11 +838,14 @@ public Builder setType(com.google.logging.v2.IndexType value) { return this; } /** + * + * *
      * Required. The type of data in this index.
      * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearType() { @@ -779,8 +857,13 @@ public Builder clearType() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -788,13 +871,18 @@ public Builder clearType() {
      * during update.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -802,17 +890,24 @@ public boolean hasCreateTime() {
      * during update.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -820,7 +915,9 @@ public com.google.protobuf.Timestamp getCreateTime() {
      * during update.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -836,6 +933,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -843,10 +942,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
      * during update.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -857,6 +957,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -864,13 +966,15 @@ public Builder setCreateTime(
      * during update.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -885,6 +989,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -892,7 +998,9 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
      * during update.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -905,6 +1013,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -912,7 +1022,9 @@ public Builder clearCreateTime() {
      * during update.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -920,6 +1032,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -927,17 +1041,22 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
      * during update.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -945,24 +1064,29 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * during update.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } + @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); } @@ -972,12 +1096,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.IndexConfig) } // @@protoc_insertion_point(class_scope:google.logging.v2.IndexConfig) private static final com.google.logging.v2.IndexConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.IndexConfig(); } @@ -986,27 +1110,27 @@ public static com.google.logging.v2.IndexConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IndexConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1021,6 +1145,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.IndexConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java similarity index 75% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java index 1f79bfeb9..ebfc6b3ed 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface IndexConfigOrBuilder extends +public interface IndexConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.IndexConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The LogEntry field path to index.
    *
@@ -21,10 +39,13 @@ public interface IndexConfigOrBuilder extends
    * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fieldPath. */ java.lang.String getFieldPath(); /** + * + * *
    * Required. The LogEntry field path to index.
    *
@@ -37,31 +58,39 @@ public interface IndexConfigOrBuilder extends
    * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for fieldPath. */ - com.google.protobuf.ByteString - getFieldPathBytes(); + com.google.protobuf.ByteString getFieldPathBytes(); /** + * + * *
    * Required. The type of data in this index.
    * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Required. The type of data in this index.
    * 
* * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The type. */ com.google.logging.v2.IndexType getType(); /** + * + * *
    * Output only. The timestamp when the index was last modified.
    *
@@ -69,11 +98,15 @@ public interface IndexConfigOrBuilder extends
    * during update.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The timestamp when the index was last modified.
    *
@@ -81,11 +114,15 @@ public interface IndexConfigOrBuilder extends
    * during update.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The timestamp when the index was last modified.
    *
@@ -93,7 +130,8 @@ public interface IndexConfigOrBuilder extends
    * during update.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java index eb8f096f9..8e53d0782 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.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/logging/v2/logging_config.proto @@ -5,6 +20,8 @@ package com.google.logging.v2; /** + * + * *
  * IndexType is used for custom indexing. It describes the type of an indexed
  * field.
@@ -12,9 +29,10 @@
  *
  * Protobuf enum {@code google.logging.v2.IndexType}
  */
-public enum IndexType
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum IndexType implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * The index's type is unspecified.
    * 
@@ -23,6 +41,8 @@ public enum IndexType */ INDEX_TYPE_UNSPECIFIED(0), /** + * + * *
    * The index is a string-type index.
    * 
@@ -31,6 +51,8 @@ public enum IndexType */ INDEX_TYPE_STRING(1), /** + * + * *
    * The index is a integer-type index.
    * 
@@ -42,6 +64,8 @@ public enum IndexType ; /** + * + * *
    * The index's type is unspecified.
    * 
@@ -50,6 +74,8 @@ public enum IndexType */ public static final int INDEX_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The index is a string-type index.
    * 
@@ -58,6 +84,8 @@ public enum IndexType */ public static final int INDEX_TYPE_STRING_VALUE = 1; /** + * + * *
    * The index is a integer-type index.
    * 
@@ -66,7 +94,6 @@ public enum IndexType */ public static final int INDEX_TYPE_INTEGER_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -91,49 +118,49 @@ public static IndexType valueOf(int value) { */ public static IndexType forNumber(int value) { switch (value) { - case 0: return INDEX_TYPE_UNSPECIFIED; - case 1: return INDEX_TYPE_STRING; - case 2: return INDEX_TYPE_INTEGER; - default: return null; + case 0: + return INDEX_TYPE_UNSPECIFIED; + case 1: + return INDEX_TYPE_STRING; + case 2: + return INDEX_TYPE_INTEGER; + 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< - IndexType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public IndexType findValueByNumber(int number) { - return IndexType.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 IndexType findValueByNumber(int number) { + return IndexType.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.logging.v2.LoggingConfigProto.getDescriptor().getEnumTypes().get(2); } private static final IndexType[] VALUES = values(); - public static IndexType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static IndexType 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; @@ -149,4 +176,3 @@ private IndexType(int value) { // @@protoc_insertion_point(enum_scope:google.logging.v2.IndexType) } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java index 3b868018b..3e9dfec93 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.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/logging/v2/logging_config.proto @@ -5,15 +20,18 @@ package com.google.logging.v2; /** + * + * *
  * LogBucket lifecycle states.
  * 
* * Protobuf enum {@code google.logging.v2.LifecycleState} */ -public enum LifecycleState - implements com.google.protobuf.ProtocolMessageEnum { +public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified state. This is only used/useful for distinguishing unset
    * values.
@@ -23,6 +41,8 @@ public enum LifecycleState
    */
   LIFECYCLE_STATE_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * The normal and active state.
    * 
@@ -31,6 +51,8 @@ public enum LifecycleState */ ACTIVE(1), /** + * + * *
    * The resource has been marked for deletion by the user. For some resources
    * (e.g. buckets), this can be reversed by an un-delete operation.
@@ -40,6 +62,8 @@ public enum LifecycleState
    */
   DELETE_REQUESTED(2),
   /**
+   *
+   *
    * 
    * The resource has been marked for an update by the user. It will remain in
    * this state until the update is complete.
@@ -49,6 +73,8 @@ public enum LifecycleState
    */
   UPDATING(3),
   /**
+   *
+   *
    * 
    * The resource has been marked for creation by the user. It will remain in
    * this state until the creation is complete.
@@ -58,6 +84,8 @@ public enum LifecycleState
    */
   CREATING(4),
   /**
+   *
+   *
    * 
    * The resource is in an INTERNAL error state.
    * 
@@ -69,6 +97,8 @@ public enum LifecycleState ; /** + * + * *
    * Unspecified state. This is only used/useful for distinguishing unset
    * values.
@@ -78,6 +108,8 @@ public enum LifecycleState
    */
   public static final int LIFECYCLE_STATE_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * The normal and active state.
    * 
@@ -86,6 +118,8 @@ public enum LifecycleState */ public static final int ACTIVE_VALUE = 1; /** + * + * *
    * The resource has been marked for deletion by the user. For some resources
    * (e.g. buckets), this can be reversed by an un-delete operation.
@@ -95,6 +129,8 @@ public enum LifecycleState
    */
   public static final int DELETE_REQUESTED_VALUE = 2;
   /**
+   *
+   *
    * 
    * The resource has been marked for an update by the user. It will remain in
    * this state until the update is complete.
@@ -104,6 +140,8 @@ public enum LifecycleState
    */
   public static final int UPDATING_VALUE = 3;
   /**
+   *
+   *
    * 
    * The resource has been marked for creation by the user. It will remain in
    * this state until the creation is complete.
@@ -113,6 +151,8 @@ public enum LifecycleState
    */
   public static final int CREATING_VALUE = 4;
   /**
+   *
+   *
    * 
    * The resource is in an INTERNAL error state.
    * 
@@ -121,7 +161,6 @@ public enum LifecycleState */ public static final int FAILED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -146,52 +185,55 @@ public static LifecycleState valueOf(int value) { */ public static LifecycleState forNumber(int value) { switch (value) { - case 0: return LIFECYCLE_STATE_UNSPECIFIED; - case 1: return ACTIVE; - case 2: return DELETE_REQUESTED; - case 3: return UPDATING; - case 4: return CREATING; - case 5: return FAILED; - default: return null; + case 0: + return LIFECYCLE_STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return DELETE_REQUESTED; + case 3: + return UPDATING; + case 4: + return CREATING; + case 5: + return FAILED; + 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< - LifecycleState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LifecycleState findValueByNumber(int number) { - return LifecycleState.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 LifecycleState findValueByNumber(int number) { + return LifecycleState.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.logging.v2.LoggingConfigProto.getDescriptor().getEnumTypes().get(1); } private static final LifecycleState[] VALUES = values(); - public static LifecycleState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static LifecycleState 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; @@ -207,4 +249,3 @@ private LifecycleState(int value) { // @@protoc_insertion_point(enum_scope:google.logging.v2.LifecycleState) } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java index b3862e023..70d8bbc7c 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * Describes a link connected to an analytics enabled bucket.
  * 
* * Protobuf type {@code google.logging.v2.Link} */ -public final class Link extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Link extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.Link) LinkOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Link.newBuilder() to construct. private Link(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Link() { name_ = ""; description_ = ""; @@ -28,29 +46,32 @@ private Link() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Link(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Link_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Link_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Link_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Link_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.Link.class, com.google.logging.v2.Link.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the link. The name can have up to 100 characters.
    * A valid link id (at the end of the link name) must only have alphanumeric
@@ -67,6 +88,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -75,14 +97,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the link. The name can have up to 100 characters.
    * A valid link id (at the end of the link name) must only have alphanumeric
@@ -99,16 +122,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -117,9 +139,12 @@ public java.lang.String getName() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Describes this link.
    *
@@ -127,6 +152,7 @@ public java.lang.String getName() {
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -135,14 +161,15 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Describes this link.
    *
@@ -150,16 +177,15 @@ public java.lang.String getDescription() {
    * 
* * string description = 2; + * * @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 { @@ -170,11 +196,15 @@ public java.lang.String getDescription() { public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The creation timestamp of the link.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -182,11 +212,15 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Output only. The creation timestamp of the link.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -194,11 +228,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The creation timestamp of the link.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -208,32 +245,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int LIFECYCLE_STATE_FIELD_NUMBER = 4; private int lifecycleState_ = 0; /** + * + * *
    * Output only. The resource lifecycle state.
    * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for lifecycleState. */ - @java.lang.Override public int getLifecycleStateValue() { + @java.lang.Override + public int getLifecycleStateValue() { return lifecycleState_; } /** + * + * *
    * Output only. The resource lifecycle state.
    * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lifecycleState. */ - @java.lang.Override public com.google.logging.v2.LifecycleState getLifecycleState() { - com.google.logging.v2.LifecycleState result = com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); + @java.lang.Override + public com.google.logging.v2.LifecycleState getLifecycleState() { + com.google.logging.v2.LifecycleState result = + com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; } public static final int BIGQUERY_DATASET_FIELD_NUMBER = 5; private com.google.logging.v2.BigQueryDataset bigqueryDataset_; /** + * + * *
    * The information of a BigQuery Dataset. When a link is created, a BigQuery
    * dataset is created along with it, in the same project as the LogBucket it's
@@ -242,6 +294,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + * * @return Whether the bigqueryDataset field is set. */ @java.lang.Override @@ -249,6 +302,8 @@ public boolean hasBigqueryDataset() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * The information of a BigQuery Dataset. When a link is created, a BigQuery
    * dataset is created along with it, in the same project as the LogBucket it's
@@ -257,13 +312,18 @@ public boolean hasBigqueryDataset() {
    * 
* * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + * * @return The bigqueryDataset. */ @java.lang.Override public com.google.logging.v2.BigQueryDataset getBigqueryDataset() { - return bigqueryDataset_ == null ? com.google.logging.v2.BigQueryDataset.getDefaultInstance() : bigqueryDataset_; + return bigqueryDataset_ == null + ? com.google.logging.v2.BigQueryDataset.getDefaultInstance() + : bigqueryDataset_; } /** + * + * *
    * The information of a BigQuery Dataset. When a link is created, a BigQuery
    * dataset is created along with it, in the same project as the LogBucket it's
@@ -275,10 +335,13 @@ public com.google.logging.v2.BigQueryDataset getBigqueryDataset() {
    */
   @java.lang.Override
   public com.google.logging.v2.BigQueryDatasetOrBuilder getBigqueryDatasetOrBuilder() {
-    return bigqueryDataset_ == null ? com.google.logging.v2.BigQueryDataset.getDefaultInstance() : bigqueryDataset_;
+    return bigqueryDataset_ == null
+        ? com.google.logging.v2.BigQueryDataset.getDefaultInstance()
+        : bigqueryDataset_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -290,8 +353,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_);
     }
@@ -301,7 +363,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (((bitField0_ & 0x00000001) != 0)) {
       output.writeMessage(3, getCreateTime());
     }
-    if (lifecycleState_ != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
+    if (lifecycleState_
+        != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(4, lifecycleState_);
     }
     if (((bitField0_ & 0x00000002) != 0)) {
@@ -323,16 +386,14 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime());
     }
-    if (lifecycleState_ != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(4, lifecycleState_);
+    if (lifecycleState_
+        != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, lifecycleState_);
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getBigqueryDataset());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBigqueryDataset());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -342,27 +403,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.logging.v2.Link)) {
       return super.equals(obj);
     }
     com.google.logging.v2.Link other = (com.google.logging.v2.Link) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime()
-          .equals(other.getCreateTime())) return false;
+      if (!getCreateTime().equals(other.getCreateTime())) return false;
     }
     if (lifecycleState_ != other.lifecycleState_) return false;
     if (hasBigqueryDataset() != other.hasBigqueryDataset()) return false;
     if (hasBigqueryDataset()) {
-      if (!getBigqueryDataset()
-          .equals(other.getBigqueryDataset())) return false;
+      if (!getBigqueryDataset().equals(other.getBigqueryDataset())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -394,118 +451,123 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.logging.v2.Link parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.logging.v2.Link parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.Link parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.logging.v2.Link parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.logging.v2.Link parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.Link parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.Link parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.Link parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.Link 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.logging.v2.Link parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   public static com.google.logging.v2.Link parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.logging.v2.Link parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.logging.v2.Link parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.logging.v2.Link parseFrom(com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.Link parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.logging.v2.Link prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Describes a link connected to an analytics enabled bucket.
    * 
* * Protobuf type {@code google.logging.v2.Link} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.Link) com.google.logging.v2.LinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Link_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Link_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Link_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Link_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.Link.class, com.google.logging.v2.Link.Builder.class); } @@ -515,18 +577,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) { getCreateTimeFieldBuilder(); getBigqueryDatasetFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -548,9 +610,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Link_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Link_descriptor; } @java.lang.Override @@ -570,7 +632,9 @@ public com.google.logging.v2.Link build() { @java.lang.Override public com.google.logging.v2.Link buildPartial() { com.google.logging.v2.Link result = new com.google.logging.v2.Link(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -585,18 +649,15 @@ private void buildPartial0(com.google.logging.v2.Link result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.lifecycleState_ = lifecycleState_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.bigqueryDataset_ = bigqueryDatasetBuilder_ == null - ? bigqueryDataset_ - : bigqueryDatasetBuilder_.build(); + result.bigqueryDataset_ = + bigqueryDatasetBuilder_ == null ? bigqueryDataset_ : bigqueryDatasetBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -606,38 +667,39 @@ private void buildPartial0(com.google.logging.v2.Link 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.logging.v2.Link) { - return mergeFrom((com.google.logging.v2.Link)other); + return mergeFrom((com.google.logging.v2.Link) other); } else { super.mergeFrom(other); return this; @@ -691,41 +753,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - lifecycleState_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getBigqueryDatasetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + lifecycleState_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getBigqueryDatasetFieldBuilder().getBuilder(), extensionRegistry); + 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) { @@ -735,10 +799,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the link. The name can have up to 100 characters.
      * A valid link id (at the end of the link name) must only have alphanumeric
@@ -755,13 +822,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -770,6 +837,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the link. The name can have up to 100 characters.
      * A valid link id (at the end of the link name) must only have alphanumeric
@@ -786,15 +855,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -802,6 +870,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the link. The name can have up to 100 characters.
      * A valid link id (at the end of the link name) must only have alphanumeric
@@ -818,18 +888,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the link. The name can have up to 100 characters.
      * A valid link id (at the end of the link name) must only have alphanumeric
@@ -846,6 +920,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -855,6 +930,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the link. The name can have up to 100 characters.
      * A valid link id (at the end of the link name) must only have alphanumeric
@@ -871,12 +948,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -886,6 +965,8 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Describes this link.
      *
@@ -893,13 +974,13 @@ public Builder setNameBytes(
      * 
* * string description = 2; + * * @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; @@ -908,6 +989,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Describes this link.
      *
@@ -915,15 +998,14 @@ public java.lang.String getDescription() {
      * 
* * string description = 2; + * * @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 { @@ -931,6 +1013,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Describes this link.
      *
@@ -938,18 +1022,22 @@ public java.lang.String getDescription() {
      * 
* * string description = 2; + * * @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_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Describes this link.
      *
@@ -957,6 +1045,7 @@ public Builder setDescription(
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -966,6 +1055,8 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Describes this link.
      *
@@ -973,12 +1064,14 @@ public Builder clearDescription() {
      * 
* * string description = 2; + * * @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_ |= 0x00000002; @@ -988,39 +1081,58 @@ public Builder setDescriptionBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The creation timestamp of the link.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The creation timestamp of the link.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The creation timestamp of the link.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1036,14 +1148,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation timestamp of the link.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1054,17 +1169,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The creation timestamp of the link.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1079,11 +1198,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation timestamp of the link.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1096,11 +1219,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The creation timestamp of the link.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1108,36 +1235,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The creation timestamp of the link.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The creation timestamp of the link.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1145,22 +1284,33 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int lifecycleState_ = 0; /** + * + * *
      * Output only. The resource lifecycle state.
      * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for lifecycleState. */ - @java.lang.Override public int getLifecycleStateValue() { + @java.lang.Override + public int getLifecycleStateValue() { return lifecycleState_; } /** + * + * *
      * Output only. The resource lifecycle state.
      * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for lifecycleState to set. * @return This builder for chaining. */ @@ -1171,24 +1321,35 @@ public Builder setLifecycleStateValue(int value) { return this; } /** + * + * *
      * Output only. The resource lifecycle state.
      * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lifecycleState. */ @java.lang.Override public com.google.logging.v2.LifecycleState getLifecycleState() { - com.google.logging.v2.LifecycleState result = com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); + com.google.logging.v2.LifecycleState result = + com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The resource lifecycle state.
      * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The lifecycleState to set. * @return This builder for chaining. */ @@ -1202,11 +1363,16 @@ public Builder setLifecycleState(com.google.logging.v2.LifecycleState value) { return this; } /** + * + * *
      * Output only. The resource lifecycle state.
      * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearLifecycleState() { @@ -1218,8 +1384,13 @@ public Builder clearLifecycleState() { private com.google.logging.v2.BigQueryDataset bigqueryDataset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.BigQueryDataset, com.google.logging.v2.BigQueryDataset.Builder, com.google.logging.v2.BigQueryDatasetOrBuilder> bigqueryDatasetBuilder_; + com.google.logging.v2.BigQueryDataset, + com.google.logging.v2.BigQueryDataset.Builder, + com.google.logging.v2.BigQueryDatasetOrBuilder> + bigqueryDatasetBuilder_; /** + * + * *
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1228,12 +1399,15 @@ public Builder clearLifecycleState() {
      * 
* * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + * * @return Whether the bigqueryDataset field is set. */ public boolean hasBigqueryDataset() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1242,16 +1416,21 @@ public boolean hasBigqueryDataset() {
      * 
* * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + * * @return The bigqueryDataset. */ public com.google.logging.v2.BigQueryDataset getBigqueryDataset() { if (bigqueryDatasetBuilder_ == null) { - return bigqueryDataset_ == null ? com.google.logging.v2.BigQueryDataset.getDefaultInstance() : bigqueryDataset_; + return bigqueryDataset_ == null + ? com.google.logging.v2.BigQueryDataset.getDefaultInstance() + : bigqueryDataset_; } else { return bigqueryDatasetBuilder_.getMessage(); } } /** + * + * *
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1275,6 +1454,8 @@ public Builder setBigqueryDataset(com.google.logging.v2.BigQueryDataset value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1296,6 +1477,8 @@ public Builder setBigqueryDataset(
       return this;
     }
     /**
+     *
+     *
      * 
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1307,9 +1490,9 @@ public Builder setBigqueryDataset(
      */
     public Builder mergeBigqueryDataset(com.google.logging.v2.BigQueryDataset value) {
       if (bigqueryDatasetBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          bigqueryDataset_ != null &&
-          bigqueryDataset_ != com.google.logging.v2.BigQueryDataset.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && bigqueryDataset_ != null
+            && bigqueryDataset_ != com.google.logging.v2.BigQueryDataset.getDefaultInstance()) {
           getBigqueryDatasetBuilder().mergeFrom(value);
         } else {
           bigqueryDataset_ = value;
@@ -1324,6 +1507,8 @@ public Builder mergeBigqueryDataset(com.google.logging.v2.BigQueryDataset value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1344,6 +1529,8 @@ public Builder clearBigqueryDataset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1359,6 +1546,8 @@ public com.google.logging.v2.BigQueryDataset.Builder getBigqueryDatasetBuilder()
       return getBigqueryDatasetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1372,11 +1561,14 @@ public com.google.logging.v2.BigQueryDatasetOrBuilder getBigqueryDatasetOrBuilde
       if (bigqueryDatasetBuilder_ != null) {
         return bigqueryDatasetBuilder_.getMessageOrBuilder();
       } else {
-        return bigqueryDataset_ == null ?
-            com.google.logging.v2.BigQueryDataset.getDefaultInstance() : bigqueryDataset_;
+        return bigqueryDataset_ == null
+            ? com.google.logging.v2.BigQueryDataset.getDefaultInstance()
+            : bigqueryDataset_;
       }
     }
     /**
+     *
+     *
      * 
      * The information of a BigQuery Dataset. When a link is created, a BigQuery
      * dataset is created along with it, in the same project as the LogBucket it's
@@ -1387,21 +1579,24 @@ public com.google.logging.v2.BigQueryDatasetOrBuilder getBigqueryDatasetOrBuilde
      * .google.logging.v2.BigQueryDataset bigquery_dataset = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.logging.v2.BigQueryDataset, com.google.logging.v2.BigQueryDataset.Builder, com.google.logging.v2.BigQueryDatasetOrBuilder> 
+            com.google.logging.v2.BigQueryDataset,
+            com.google.logging.v2.BigQueryDataset.Builder,
+            com.google.logging.v2.BigQueryDatasetOrBuilder>
         getBigqueryDatasetFieldBuilder() {
       if (bigqueryDatasetBuilder_ == null) {
-        bigqueryDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.logging.v2.BigQueryDataset, com.google.logging.v2.BigQueryDataset.Builder, com.google.logging.v2.BigQueryDatasetOrBuilder>(
-                getBigqueryDataset(),
-                getParentForChildren(),
-                isClean());
+        bigqueryDatasetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.logging.v2.BigQueryDataset,
+                com.google.logging.v2.BigQueryDataset.Builder,
+                com.google.logging.v2.BigQueryDatasetOrBuilder>(
+                getBigqueryDataset(), getParentForChildren(), isClean());
         bigqueryDataset_ = null;
       }
       return bigqueryDatasetBuilder_;
     }
+
     @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);
     }
 
@@ -1411,12 +1606,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.logging.v2.Link)
   }
 
   // @@protoc_insertion_point(class_scope:google.logging.v2.Link)
   private static final com.google.logging.v2.Link DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.logging.v2.Link();
   }
@@ -1425,27 +1620,27 @@ public static com.google.logging.v2.Link getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Link parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Link parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1460,6 +1655,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.logging.v2.Link getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java
similarity index 72%
rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java
rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java
index ba4ae8df3..7cd8355d8 100644
--- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.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/logging/v2/logging_config.proto
 
@@ -5,56 +20,64 @@
 package com.google.logging.v2;
 
 /**
+ *
+ *
  * 
  * Metadata for long running Link operations.
  * 
* * Protobuf type {@code google.logging.v2.LinkMetadata} */ -public final class LinkMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LinkMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.LinkMetadata) LinkMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LinkMetadata.newBuilder() to construct. private LinkMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LinkMetadata() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LinkMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LinkMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LinkMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.LinkMetadata.class, com.google.logging.v2.LinkMetadata.Builder.class); + com.google.logging.v2.LinkMetadata.class, + com.google.logging.v2.LinkMetadata.Builder.class); } private int bitField0_; private int requestCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object request_; + public enum RequestCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CREATE_LINK_REQUEST(4), DELETE_LINK_REQUEST(5), REQUEST_NOT_SET(0); private final int value; + private RequestCase(int value) { this.value = value; } @@ -70,31 +93,37 @@ public static RequestCase valueOf(int value) { public static RequestCase forNumber(int value) { switch (value) { - case 4: return CREATE_LINK_REQUEST; - case 5: return DELETE_LINK_REQUEST; - case 0: return REQUEST_NOT_SET; - default: return null; + case 4: + return CREATE_LINK_REQUEST; + case 5: + return DELETE_LINK_REQUEST; + case 0: + return REQUEST_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * The start time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -102,11 +131,14 @@ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The start time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -114,6 +146,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The start time of an operation.
    * 
@@ -128,11 +162,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -140,11 +177,14 @@ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -152,6 +192,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The end time of an operation.
    * 
@@ -166,36 +208,48 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 3; private int state_ = 0; /** + * + * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; + * * @return The state. */ - @java.lang.Override public com.google.logging.v2.OperationState getState() { - com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.forNumber(state_); + @java.lang.Override + public com.google.logging.v2.OperationState getState() { + com.google.logging.v2.OperationState result = + com.google.logging.v2.OperationState.forNumber(state_); return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; } public static final int CREATE_LINK_REQUEST_FIELD_NUMBER = 4; /** + * + * *
    * CreateLink RPC request.
    * 
* * .google.logging.v2.CreateLinkRequest create_link_request = 4; + * * @return Whether the createLinkRequest field is set. */ @java.lang.Override @@ -203,21 +257,26 @@ public boolean hasCreateLinkRequest() { return requestCase_ == 4; } /** + * + * *
    * CreateLink RPC request.
    * 
* * .google.logging.v2.CreateLinkRequest create_link_request = 4; + * * @return The createLinkRequest. */ @java.lang.Override public com.google.logging.v2.CreateLinkRequest getCreateLinkRequest() { if (requestCase_ == 4) { - return (com.google.logging.v2.CreateLinkRequest) request_; + return (com.google.logging.v2.CreateLinkRequest) request_; } return com.google.logging.v2.CreateLinkRequest.getDefaultInstance(); } /** + * + * *
    * CreateLink RPC request.
    * 
@@ -227,18 +286,21 @@ public com.google.logging.v2.CreateLinkRequest getCreateLinkRequest() { @java.lang.Override public com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBuilder() { if (requestCase_ == 4) { - return (com.google.logging.v2.CreateLinkRequest) request_; + return (com.google.logging.v2.CreateLinkRequest) request_; } return com.google.logging.v2.CreateLinkRequest.getDefaultInstance(); } public static final int DELETE_LINK_REQUEST_FIELD_NUMBER = 5; /** + * + * *
    * DeleteLink RPC request.
    * 
* * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + * * @return Whether the deleteLinkRequest field is set. */ @java.lang.Override @@ -246,21 +308,26 @@ public boolean hasDeleteLinkRequest() { return requestCase_ == 5; } /** + * + * *
    * DeleteLink RPC request.
    * 
* * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + * * @return The deleteLinkRequest. */ @java.lang.Override public com.google.logging.v2.DeleteLinkRequest getDeleteLinkRequest() { if (requestCase_ == 5) { - return (com.google.logging.v2.DeleteLinkRequest) request_; + return (com.google.logging.v2.DeleteLinkRequest) request_; } return com.google.logging.v2.DeleteLinkRequest.getDefaultInstance(); } /** + * + * *
    * DeleteLink RPC request.
    * 
@@ -270,12 +337,13 @@ public com.google.logging.v2.DeleteLinkRequest getDeleteLinkRequest() { @java.lang.Override public com.google.logging.v2.DeleteLinkRequestOrBuilder getDeleteLinkRequestOrBuilder() { if (requestCase_ == 5) { - return (com.google.logging.v2.DeleteLinkRequest) request_; + return (com.google.logging.v2.DeleteLinkRequest) request_; } return com.google.logging.v2.DeleteLinkRequest.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -287,8 +355,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, getStartTime()); } @@ -314,24 +381,23 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (state_ != com.google.logging.v2.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (requestCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.logging.v2.CreateLinkRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.logging.v2.CreateLinkRequest) request_); } if (requestCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.logging.v2.DeleteLinkRequest) request_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.logging.v2.DeleteLinkRequest) request_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -341,7 +407,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LinkMetadata)) { return super.equals(obj); @@ -350,24 +416,20 @@ public boolean equals(final java.lang.Object obj) { 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 (state_ != other.state_) return false; if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 4: - if (!getCreateLinkRequest() - .equals(other.getCreateLinkRequest())) return false; + if (!getCreateLinkRequest().equals(other.getCreateLinkRequest())) return false; break; case 5: - if (!getDeleteLinkRequest() - .equals(other.getDeleteLinkRequest())) return false; + if (!getDeleteLinkRequest().equals(other.getDeleteLinkRequest())) return false; break; case 0: default: @@ -410,120 +472,126 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LinkMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.LinkMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LinkMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LinkMetadata parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.LinkMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LinkMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LinkMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LinkMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LinkMetadata 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.logging.v2.LinkMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.LinkMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LinkMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.LinkMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.LinkMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.LinkMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Metadata for long running Link operations.
    * 
* * Protobuf type {@code google.logging.v2.LinkMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.LinkMetadata) com.google.logging.v2.LinkMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LinkMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LinkMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.LinkMetadata.class, com.google.logging.v2.LinkMetadata.Builder.class); + com.google.logging.v2.LinkMetadata.class, + com.google.logging.v2.LinkMetadata.Builder.class); } // Construct using com.google.logging.v2.LinkMetadata.newBuilder() @@ -531,18 +599,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) { getStartTimeFieldBuilder(); getEndTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -570,9 +638,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LinkMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LinkMetadata_descriptor; } @java.lang.Override @@ -592,7 +660,9 @@ public com.google.logging.v2.LinkMetadata build() { @java.lang.Override public com.google.logging.v2.LinkMetadata buildPartial() { com.google.logging.v2.LinkMetadata result = new com.google.logging.v2.LinkMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -602,15 +672,11 @@ private void buildPartial0(com.google.logging.v2.LinkMetadata result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -622,12 +688,10 @@ private void buildPartial0(com.google.logging.v2.LinkMetadata result) { private void buildPartialOneofs(com.google.logging.v2.LinkMetadata result) { result.requestCase_ = requestCase_; result.request_ = this.request_; - if (requestCase_ == 4 && - createLinkRequestBuilder_ != null) { + if (requestCase_ == 4 && createLinkRequestBuilder_ != null) { result.request_ = createLinkRequestBuilder_.build(); } - if (requestCase_ == 5 && - deleteLinkRequestBuilder_ != null) { + if (requestCase_ == 5 && deleteLinkRequestBuilder_ != null) { result.request_ = deleteLinkRequestBuilder_.build(); } } @@ -636,38 +700,39 @@ private void buildPartialOneofs(com.google.logging.v2.LinkMetadata 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.logging.v2.LinkMetadata) { - return mergeFrom((com.google.logging.v2.LinkMetadata)other); + return mergeFrom((com.google.logging.v2.LinkMetadata) other); } else { super.mergeFrom(other); return this; @@ -686,17 +751,20 @@ public Builder mergeFrom(com.google.logging.v2.LinkMetadata other) { setStateValue(other.getStateValue()); } switch (other.getRequestCase()) { - case CREATE_LINK_REQUEST: { - mergeCreateLinkRequest(other.getCreateLinkRequest()); - break; - } - case DELETE_LINK_REQUEST: { - mergeDeleteLinkRequest(other.getDeleteLinkRequest()); - break; - } - case REQUEST_NOT_SET: { - break; - } + case CREATE_LINK_REQUEST: + { + mergeCreateLinkRequest(other.getCreateLinkRequest()); + break; + } + case DELETE_LINK_REQUEST: + { + mergeDeleteLinkRequest(other.getDeleteLinkRequest()); + break; + } + case REQUEST_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -724,45 +792,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - state_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getCreateLinkRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getDeleteLinkRequestFieldBuilder().getBuilder(), - extensionRegistry); - requestCase_ = 5; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getCreateLinkRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getDeleteLinkRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -772,12 +840,12 @@ public Builder mergeFrom( } // finally return this; } + private int requestCase_ = 0; private java.lang.Object request_; - public RequestCase - getRequestCase() { - return RequestCase.forNumber( - requestCase_); + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); } public Builder clearRequest() { @@ -791,24 +859,33 @@ public Builder clearRequest() { 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_; /** + * + * *
      * The start time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The start time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -819,6 +896,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The start time of an operation.
      * 
@@ -839,14 +918,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The start time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); } else { @@ -857,6 +937,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The start time of an operation.
      * 
@@ -865,9 +947,9 @@ public Builder setStartTime( */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - startTime_ != null && - startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; @@ -882,6 +964,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The start time of an operation.
      * 
@@ -899,6 +983,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The start time of an operation.
      * 
@@ -911,6 +997,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The start time of an operation.
      * 
@@ -921,11 +1009,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * The start time of an operation.
      * 
@@ -933,14 +1022,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -948,24 +1040,33 @@ 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_; /** + * + * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -976,6 +1077,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The end time of an operation.
      * 
@@ -996,14 +1099,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1014,6 +1118,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1022,9 +1128,9 @@ public Builder setEndTime( */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1039,6 +1145,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1056,6 +1164,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1068,6 +1178,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The end time of an operation.
      * 
@@ -1078,11 +1190,12 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * The end time of an operation.
      * 
@@ -1090,14 +1203,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1105,22 +1221,29 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1131,24 +1254,31 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @return The state. */ @java.lang.Override public com.google.logging.v2.OperationState getState() { - com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.forNumber(state_); + com.google.logging.v2.OperationState result = + com.google.logging.v2.OperationState.forNumber(state_); return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; } /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1162,11 +1292,14 @@ public Builder setState(com.google.logging.v2.OperationState value) { return this; } /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @return This builder for chaining. */ public Builder clearState() { @@ -1177,13 +1310,19 @@ public Builder clearState() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CreateLinkRequest, com.google.logging.v2.CreateLinkRequest.Builder, com.google.logging.v2.CreateLinkRequestOrBuilder> createLinkRequestBuilder_; + com.google.logging.v2.CreateLinkRequest, + com.google.logging.v2.CreateLinkRequest.Builder, + com.google.logging.v2.CreateLinkRequestOrBuilder> + createLinkRequestBuilder_; /** + * + * *
      * CreateLink RPC request.
      * 
* * .google.logging.v2.CreateLinkRequest create_link_request = 4; + * * @return Whether the createLinkRequest field is set. */ @java.lang.Override @@ -1191,11 +1330,14 @@ public boolean hasCreateLinkRequest() { return requestCase_ == 4; } /** + * + * *
      * CreateLink RPC request.
      * 
* * .google.logging.v2.CreateLinkRequest create_link_request = 4; + * * @return The createLinkRequest. */ @java.lang.Override @@ -1213,6 +1355,8 @@ public com.google.logging.v2.CreateLinkRequest getCreateLinkRequest() { } } /** + * + * *
      * CreateLink RPC request.
      * 
@@ -1233,6 +1377,8 @@ public Builder setCreateLinkRequest(com.google.logging.v2.CreateLinkRequest valu return this; } /** + * + * *
      * CreateLink RPC request.
      * 
@@ -1251,6 +1397,8 @@ public Builder setCreateLinkRequest( return this; } /** + * + * *
      * CreateLink RPC request.
      * 
@@ -1259,10 +1407,13 @@ public Builder setCreateLinkRequest( */ public Builder mergeCreateLinkRequest(com.google.logging.v2.CreateLinkRequest value) { if (createLinkRequestBuilder_ == null) { - if (requestCase_ == 4 && - request_ != com.google.logging.v2.CreateLinkRequest.getDefaultInstance()) { - request_ = com.google.logging.v2.CreateLinkRequest.newBuilder((com.google.logging.v2.CreateLinkRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 4 + && request_ != com.google.logging.v2.CreateLinkRequest.getDefaultInstance()) { + request_ = + com.google.logging.v2.CreateLinkRequest.newBuilder( + (com.google.logging.v2.CreateLinkRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -1278,6 +1429,8 @@ public Builder mergeCreateLinkRequest(com.google.logging.v2.CreateLinkRequest va return this; } /** + * + * *
      * CreateLink RPC request.
      * 
@@ -1301,6 +1454,8 @@ public Builder clearCreateLinkRequest() { return this; } /** + * + * *
      * CreateLink RPC request.
      * 
@@ -1311,6 +1466,8 @@ public com.google.logging.v2.CreateLinkRequest.Builder getCreateLinkRequestBuild return getCreateLinkRequestFieldBuilder().getBuilder(); } /** + * + * *
      * CreateLink RPC request.
      * 
@@ -1329,6 +1486,8 @@ public com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBu } } /** + * + * *
      * CreateLink RPC request.
      * 
@@ -1336,14 +1495,19 @@ public com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBu * .google.logging.v2.CreateLinkRequest create_link_request = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CreateLinkRequest, com.google.logging.v2.CreateLinkRequest.Builder, com.google.logging.v2.CreateLinkRequestOrBuilder> + com.google.logging.v2.CreateLinkRequest, + com.google.logging.v2.CreateLinkRequest.Builder, + com.google.logging.v2.CreateLinkRequestOrBuilder> getCreateLinkRequestFieldBuilder() { if (createLinkRequestBuilder_ == null) { if (!(requestCase_ == 4)) { request_ = com.google.logging.v2.CreateLinkRequest.getDefaultInstance(); } - createLinkRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CreateLinkRequest, com.google.logging.v2.CreateLinkRequest.Builder, com.google.logging.v2.CreateLinkRequestOrBuilder>( + createLinkRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CreateLinkRequest, + com.google.logging.v2.CreateLinkRequest.Builder, + com.google.logging.v2.CreateLinkRequestOrBuilder>( (com.google.logging.v2.CreateLinkRequest) request_, getParentForChildren(), isClean()); @@ -1355,13 +1519,19 @@ public com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBu } private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.DeleteLinkRequest, com.google.logging.v2.DeleteLinkRequest.Builder, com.google.logging.v2.DeleteLinkRequestOrBuilder> deleteLinkRequestBuilder_; + com.google.logging.v2.DeleteLinkRequest, + com.google.logging.v2.DeleteLinkRequest.Builder, + com.google.logging.v2.DeleteLinkRequestOrBuilder> + deleteLinkRequestBuilder_; /** + * + * *
      * DeleteLink RPC request.
      * 
* * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + * * @return Whether the deleteLinkRequest field is set. */ @java.lang.Override @@ -1369,11 +1539,14 @@ public boolean hasDeleteLinkRequest() { return requestCase_ == 5; } /** + * + * *
      * DeleteLink RPC request.
      * 
* * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + * * @return The deleteLinkRequest. */ @java.lang.Override @@ -1391,6 +1564,8 @@ public com.google.logging.v2.DeleteLinkRequest getDeleteLinkRequest() { } } /** + * + * *
      * DeleteLink RPC request.
      * 
@@ -1411,6 +1586,8 @@ public Builder setDeleteLinkRequest(com.google.logging.v2.DeleteLinkRequest valu return this; } /** + * + * *
      * DeleteLink RPC request.
      * 
@@ -1429,6 +1606,8 @@ public Builder setDeleteLinkRequest( return this; } /** + * + * *
      * DeleteLink RPC request.
      * 
@@ -1437,10 +1616,13 @@ public Builder setDeleteLinkRequest( */ public Builder mergeDeleteLinkRequest(com.google.logging.v2.DeleteLinkRequest value) { if (deleteLinkRequestBuilder_ == null) { - if (requestCase_ == 5 && - request_ != com.google.logging.v2.DeleteLinkRequest.getDefaultInstance()) { - request_ = com.google.logging.v2.DeleteLinkRequest.newBuilder((com.google.logging.v2.DeleteLinkRequest) request_) - .mergeFrom(value).buildPartial(); + if (requestCase_ == 5 + && request_ != com.google.logging.v2.DeleteLinkRequest.getDefaultInstance()) { + request_ = + com.google.logging.v2.DeleteLinkRequest.newBuilder( + (com.google.logging.v2.DeleteLinkRequest) request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -1456,6 +1638,8 @@ public Builder mergeDeleteLinkRequest(com.google.logging.v2.DeleteLinkRequest va return this; } /** + * + * *
      * DeleteLink RPC request.
      * 
@@ -1479,6 +1663,8 @@ public Builder clearDeleteLinkRequest() { return this; } /** + * + * *
      * DeleteLink RPC request.
      * 
@@ -1489,6 +1675,8 @@ public com.google.logging.v2.DeleteLinkRequest.Builder getDeleteLinkRequestBuild return getDeleteLinkRequestFieldBuilder().getBuilder(); } /** + * + * *
      * DeleteLink RPC request.
      * 
@@ -1507,6 +1695,8 @@ public com.google.logging.v2.DeleteLinkRequestOrBuilder getDeleteLinkRequestOrBu } } /** + * + * *
      * DeleteLink RPC request.
      * 
@@ -1514,14 +1704,19 @@ public com.google.logging.v2.DeleteLinkRequestOrBuilder getDeleteLinkRequestOrBu * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.DeleteLinkRequest, com.google.logging.v2.DeleteLinkRequest.Builder, com.google.logging.v2.DeleteLinkRequestOrBuilder> + com.google.logging.v2.DeleteLinkRequest, + com.google.logging.v2.DeleteLinkRequest.Builder, + com.google.logging.v2.DeleteLinkRequestOrBuilder> getDeleteLinkRequestFieldBuilder() { if (deleteLinkRequestBuilder_ == null) { if (!(requestCase_ == 5)) { request_ = com.google.logging.v2.DeleteLinkRequest.getDefaultInstance(); } - deleteLinkRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.DeleteLinkRequest, com.google.logging.v2.DeleteLinkRequest.Builder, com.google.logging.v2.DeleteLinkRequestOrBuilder>( + deleteLinkRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.DeleteLinkRequest, + com.google.logging.v2.DeleteLinkRequest.Builder, + com.google.logging.v2.DeleteLinkRequestOrBuilder>( (com.google.logging.v2.DeleteLinkRequest) request_, getParentForChildren(), isClean()); @@ -1531,9 +1726,9 @@ public com.google.logging.v2.DeleteLinkRequestOrBuilder getDeleteLinkRequestOrBu onChanged(); return deleteLinkRequestBuilder_; } + @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); } @@ -1543,12 +1738,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.LinkMetadata) } // @@protoc_insertion_point(class_scope:google.logging.v2.LinkMetadata) private static final com.google.logging.v2.LinkMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.LinkMetadata(); } @@ -1557,27 +1752,27 @@ public static com.google.logging.v2.LinkMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1592,6 +1787,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LinkMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java similarity index 80% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java index ce199b79a..634d93f74 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LinkMetadataOrBuilder extends +public interface LinkMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LinkMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The start time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * The start time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * The start time of an operation.
    * 
@@ -36,24 +60,32 @@ public interface LinkMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The end time of an operation.
    * 
@@ -63,43 +95,57 @@ public interface LinkMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * State of an operation.
    * 
* * .google.logging.v2.OperationState state = 3; + * * @return The state. */ com.google.logging.v2.OperationState getState(); /** + * + * *
    * CreateLink RPC request.
    * 
* * .google.logging.v2.CreateLinkRequest create_link_request = 4; + * * @return Whether the createLinkRequest field is set. */ boolean hasCreateLinkRequest(); /** + * + * *
    * CreateLink RPC request.
    * 
* * .google.logging.v2.CreateLinkRequest create_link_request = 4; + * * @return The createLinkRequest. */ com.google.logging.v2.CreateLinkRequest getCreateLinkRequest(); /** + * + * *
    * CreateLink RPC request.
    * 
@@ -109,24 +155,32 @@ public interface LinkMetadataOrBuilder extends com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBuilder(); /** + * + * *
    * DeleteLink RPC request.
    * 
* * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + * * @return Whether the deleteLinkRequest field is set. */ boolean hasDeleteLinkRequest(); /** + * + * *
    * DeleteLink RPC request.
    * 
* * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + * * @return The deleteLinkRequest. */ com.google.logging.v2.DeleteLinkRequest getDeleteLinkRequest(); /** + * + * *
    * DeleteLink RPC request.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java similarity index 78% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java index ccfc4584a..bec914061 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LinkOrBuilder extends +public interface LinkOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.Link) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the link. The name can have up to 100 characters.
    * A valid link id (at the end of the link name) must only have alphanumeric
@@ -25,10 +43,13 @@ public interface LinkOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the link. The name can have up to 100 characters.
    * A valid link id (at the end of the link name) must only have alphanumeric
@@ -45,12 +66,14 @@ public interface LinkOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Describes this link.
    *
@@ -58,10 +81,13 @@ public interface LinkOrBuilder extends
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Describes this link.
    *
@@ -69,58 +95,81 @@ public interface LinkOrBuilder extends
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The creation timestamp of the link.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The creation timestamp of the link.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The creation timestamp of the link.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The resource lifecycle state.
    * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for lifecycleState. */ int getLifecycleStateValue(); /** + * + * *
    * Output only. The resource lifecycle state.
    * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lifecycleState. */ com.google.logging.v2.LifecycleState getLifecycleState(); /** + * + * *
    * The information of a BigQuery Dataset. When a link is created, a BigQuery
    * dataset is created along with it, in the same project as the LogBucket it's
@@ -129,10 +178,13 @@ public interface LinkOrBuilder extends
    * 
* * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + * * @return Whether the bigqueryDataset field is set. */ boolean hasBigqueryDataset(); /** + * + * *
    * The information of a BigQuery Dataset. When a link is created, a BigQuery
    * dataset is created along with it, in the same project as the LogBucket it's
@@ -141,10 +193,13 @@ public interface LinkOrBuilder extends
    * 
* * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + * * @return The bigqueryDataset. */ com.google.logging.v2.BigQueryDataset getBigqueryDataset(); /** + * + * *
    * The information of a BigQuery Dataset. When a link is created, a BigQuery
    * dataset is created along with it, in the same project as the LogBucket it's
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
similarity index 71%
rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
index 81e5db4ae..a3436a133 100644
--- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.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/logging/v2/logging_config.proto
 
@@ -5,21 +20,24 @@
 package com.google.logging.v2;
 
 /**
+ *
+ *
  * 
  * The parameters to `ListBuckets`.
  * 
* * Protobuf type {@code google.logging.v2.ListBucketsRequest} */ -public final class ListBucketsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBucketsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListBucketsRequest) ListBucketsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBucketsRequest.newBuilder() to construct. private ListBucketsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBucketsRequest() { parent_ = ""; pageToken_ = ""; @@ -27,28 +45,32 @@ private ListBucketsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBucketsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListBucketsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListBucketsRequest.class, com.google.logging.v2.ListBucketsRequest.Builder.class); + com.google.logging.v2.ListBucketsRequest.class, + com.google.logging.v2.ListBucketsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource whose buckets are to be listed:
    *
@@ -62,7 +84,10 @@ protected java.lang.Object newInstance(
    * buckets.
    * 
* - * 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 @@ -71,14 +96,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource whose buckets are to be listed:
    *
@@ -92,17 +118,18 @@ public java.lang.String getParent() {
    * buckets.
    * 
* - * 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,9 +138,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -122,6 +152,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -130,14 +161,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. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -146,16 +178,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2 [(.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 { @@ -166,6 +197,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -173,6 +206,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -181,6 +215,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,8 +227,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -219,8 +253,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -230,19 +263,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListBucketsRequest)) { return super.equals(obj); } com.google.logging.v2.ListBucketsRequest other = (com.google.logging.v2.ListBucketsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,132 +295,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListBucketsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListBucketsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListBucketsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListBucketsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListBucketsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListBucketsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListBucketsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListBucketsRequest 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.logging.v2.ListBucketsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListBucketsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListBucketsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListBucketsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListBucketsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListBucketsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListBucketsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `ListBuckets`.
    * 
* * Protobuf type {@code google.logging.v2.ListBucketsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListBucketsRequest) com.google.logging.v2.ListBucketsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListBucketsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListBucketsRequest.class, com.google.logging.v2.ListBucketsRequest.Builder.class); + com.google.logging.v2.ListBucketsRequest.class, + com.google.logging.v2.ListBucketsRequest.Builder.class); } // Construct using com.google.logging.v2.ListBucketsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -402,9 +436,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListBucketsRequest_descriptor; } @java.lang.Override @@ -423,8 +457,11 @@ public com.google.logging.v2.ListBucketsRequest build() { @java.lang.Override public com.google.logging.v2.ListBucketsRequest buildPartial() { - com.google.logging.v2.ListBucketsRequest result = new com.google.logging.v2.ListBucketsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.ListBucketsRequest result = + new com.google.logging.v2.ListBucketsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -446,38 +483,39 @@ private void buildPartial0(com.google.logging.v2.ListBucketsRequest 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.logging.v2.ListBucketsRequest) { - return mergeFrom((com.google.logging.v2.ListBucketsRequest)other); + return mergeFrom((com.google.logging.v2.ListBucketsRequest) other); } else { super.mergeFrom(other); return this; @@ -525,27 +563,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,10 +597,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -572,14 +617,16 @@ public Builder mergeFrom(
      * buckets.
      * 
* - * 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; @@ -588,6 +635,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -601,16 +650,17 @@ public java.lang.String getParent() {
      * buckets.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -618,6 +668,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -631,19 +683,25 @@ public java.lang.String getParent() {
      * buckets.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -657,7 +715,10 @@ public Builder setParent(
      * buckets.
      * 
* - * 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() { @@ -667,6 +728,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -680,13 +743,17 @@ public Builder clearParent() {
      * buckets.
      * 
* - * 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; @@ -696,6 +763,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -704,13 +773,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2 [(.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; @@ -719,6 +788,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -727,15 +798,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.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 { @@ -743,6 +813,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -751,18 +823,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.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_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -771,6 +847,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -780,6 +857,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -788,12 +867,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2 [(.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_ |= 0x00000002; @@ -801,8 +882,10 @@ public Builder setPageTokenBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -810,6 +893,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -817,6 +901,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -824,6 +910,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -835,6 +922,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -842,6 +931,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -850,9 +940,9 @@ public Builder clearPageSize() { 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); } @@ -862,12 +952,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListBucketsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListBucketsRequest) private static final com.google.logging.v2.ListBucketsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListBucketsRequest(); } @@ -876,27 +966,27 @@ public static com.google.logging.v2.ListBucketsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBucketsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBucketsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,6 +1001,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListBucketsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java index 6300759ae..8aa0ba563 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListBucketsRequestOrBuilder extends +public interface ListBucketsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListBucketsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource whose buckets are to be listed:
    *
@@ -22,11 +40,16 @@ public interface ListBucketsRequestOrBuilder extends
    * buckets.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource whose buckets are to be listed:
    *
@@ -40,13 +63,17 @@ public interface ListBucketsRequestOrBuilder extends
    * buckets.
    * 
* - * 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. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -55,10 +82,13 @@ public interface ListBucketsRequestOrBuilder extends
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -67,12 +97,14 @@ public interface ListBucketsRequestOrBuilder extends
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -80,6 +112,7 @@ public interface ListBucketsRequestOrBuilder extends
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java index 10da23607..4391c97b9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * The response from ListBuckets.
  * 
* * Protobuf type {@code google.logging.v2.ListBucketsResponse} */ -public final class ListBucketsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListBucketsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListBucketsResponse) ListBucketsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListBucketsResponse.newBuilder() to construct. private ListBucketsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListBucketsResponse() { buckets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListBucketsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBucketsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListBucketsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListBucketsResponse.class, com.google.logging.v2.ListBucketsResponse.Builder.class); + com.google.logging.v2.ListBucketsResponse.class, + com.google.logging.v2.ListBucketsResponse.Builder.class); } public static final int BUCKETS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List buckets_; /** + * + * *
    * A list of buckets.
    * 
@@ -60,6 +82,8 @@ public java.util.List getBucketsList() { return buckets_; } /** + * + * *
    * A list of buckets.
    * 
@@ -67,11 +91,13 @@ public java.util.List getBucketsList() { * repeated .google.logging.v2.LogBucket buckets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getBucketsOrBuilderList() { return buckets_; } /** + * + * *
    * A list of buckets.
    * 
@@ -83,6 +109,8 @@ public int getBucketsCount() { return buckets_.size(); } /** + * + * *
    * A list of buckets.
    * 
@@ -94,6 +122,8 @@ public com.google.logging.v2.LogBucket getBuckets(int index) { return buckets_.get(index); } /** + * + * *
    * A list of buckets.
    * 
@@ -101,15 +131,17 @@ public com.google.logging.v2.LogBucket getBuckets(int index) { * repeated .google.logging.v2.LogBucket buckets = 1; */ @java.lang.Override - public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder( - int index) { + public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(int index) { return buckets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -117,6 +149,7 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,14 +158,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -140,16 +174,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -158,6 +191,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < buckets_.size(); i++) { output.writeMessage(1, buckets_.get(i)); } @@ -187,8 +220,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < buckets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, buckets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, buckets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +233,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListBucketsResponse)) { return super.equals(obj); } - com.google.logging.v2.ListBucketsResponse other = (com.google.logging.v2.ListBucketsResponse) obj; + com.google.logging.v2.ListBucketsResponse other = + (com.google.logging.v2.ListBucketsResponse) obj; - if (!getBucketsList() - .equals(other.getBucketsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getBucketsList().equals(other.getBucketsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,132 +265,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListBucketsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListBucketsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListBucketsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListBucketsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListBucketsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListBucketsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListBucketsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListBucketsResponse 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.logging.v2.ListBucketsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListBucketsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListBucketsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListBucketsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListBucketsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListBucketsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListBucketsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response from ListBuckets.
    * 
* * Protobuf type {@code google.logging.v2.ListBucketsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListBucketsResponse) com.google.logging.v2.ListBucketsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListBucketsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListBucketsResponse.class, com.google.logging.v2.ListBucketsResponse.Builder.class); + com.google.logging.v2.ListBucketsResponse.class, + com.google.logging.v2.ListBucketsResponse.Builder.class); } // Construct using com.google.logging.v2.ListBucketsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListBucketsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListBucketsResponse_descriptor; } @java.lang.Override @@ -397,9 +432,12 @@ public com.google.logging.v2.ListBucketsResponse build() { @java.lang.Override public com.google.logging.v2.ListBucketsResponse buildPartial() { - com.google.logging.v2.ListBucketsResponse result = new com.google.logging.v2.ListBucketsResponse(this); + com.google.logging.v2.ListBucketsResponse result = + new com.google.logging.v2.ListBucketsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,38 +465,39 @@ private void buildPartial0(com.google.logging.v2.ListBucketsResponse 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.logging.v2.ListBucketsResponse) { - return mergeFrom((com.google.logging.v2.ListBucketsResponse)other); + return mergeFrom((com.google.logging.v2.ListBucketsResponse) other); } else { super.mergeFrom(other); return this; @@ -485,9 +524,10 @@ public Builder mergeFrom(com.google.logging.v2.ListBucketsResponse other) { bucketsBuilder_ = null; buckets_ = other.buckets_; bitField0_ = (bitField0_ & ~0x00000001); - bucketsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBucketsFieldBuilder() : null; + bucketsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBucketsFieldBuilder() + : null; } else { bucketsBuilder_.addAllMessages(other.buckets_); } @@ -524,30 +564,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.logging.v2.LogBucket m = - input.readMessage( - com.google.logging.v2.LogBucket.parser(), - extensionRegistry); - if (bucketsBuilder_ == null) { - ensureBucketsIsMutable(); - buckets_.add(m); - } else { - bucketsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.logging.v2.LogBucket m = + input.readMessage(com.google.logging.v2.LogBucket.parser(), extensionRegistry); + if (bucketsBuilder_ == null) { + ensureBucketsIsMutable(); + buckets_.add(m); + } else { + bucketsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +598,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List buckets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureBucketsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { buckets_ = new java.util.ArrayList(buckets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder> bucketsBuilder_; + com.google.logging.v2.LogBucket, + com.google.logging.v2.LogBucket.Builder, + com.google.logging.v2.LogBucketOrBuilder> + bucketsBuilder_; /** + * + * *
      * A list of buckets.
      * 
@@ -586,6 +634,8 @@ public java.util.List getBucketsList() { } } /** + * + * *
      * A list of buckets.
      * 
@@ -600,6 +650,8 @@ public int getBucketsCount() { } } /** + * + * *
      * A list of buckets.
      * 
@@ -614,14 +666,15 @@ public com.google.logging.v2.LogBucket getBuckets(int index) { } } /** + * + * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public Builder setBuckets( - int index, com.google.logging.v2.LogBucket value) { + public Builder setBuckets(int index, com.google.logging.v2.LogBucket value) { if (bucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -635,14 +688,15 @@ public Builder setBuckets( return this; } /** + * + * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public Builder setBuckets( - int index, com.google.logging.v2.LogBucket.Builder builderForValue) { + public Builder setBuckets(int index, com.google.logging.v2.LogBucket.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.set(index, builderForValue.build()); @@ -653,6 +707,8 @@ public Builder setBuckets( return this; } /** + * + * *
      * A list of buckets.
      * 
@@ -673,14 +729,15 @@ public Builder addBuckets(com.google.logging.v2.LogBucket value) { return this; } /** + * + * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public Builder addBuckets( - int index, com.google.logging.v2.LogBucket value) { + public Builder addBuckets(int index, com.google.logging.v2.LogBucket value) { if (bucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -694,14 +751,15 @@ public Builder addBuckets( return this; } /** + * + * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public Builder addBuckets( - com.google.logging.v2.LogBucket.Builder builderForValue) { + public Builder addBuckets(com.google.logging.v2.LogBucket.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.add(builderForValue.build()); @@ -712,14 +770,15 @@ public Builder addBuckets( return this; } /** + * + * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public Builder addBuckets( - int index, com.google.logging.v2.LogBucket.Builder builderForValue) { + public Builder addBuckets(int index, com.google.logging.v2.LogBucket.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.add(index, builderForValue.build()); @@ -730,6 +789,8 @@ public Builder addBuckets( return this; } /** + * + * *
      * A list of buckets.
      * 
@@ -740,8 +801,7 @@ public Builder addAllBuckets( java.lang.Iterable values) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, buckets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, buckets_); onChanged(); } else { bucketsBuilder_.addAllMessages(values); @@ -749,6 +809,8 @@ public Builder addAllBuckets( return this; } /** + * + * *
      * A list of buckets.
      * 
@@ -766,6 +828,8 @@ public Builder clearBuckets() { return this; } /** + * + * *
      * A list of buckets.
      * 
@@ -783,39 +847,44 @@ public Builder removeBuckets(int index) { return this; } /** + * + * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public com.google.logging.v2.LogBucket.Builder getBucketsBuilder( - int index) { + public com.google.logging.v2.LogBucket.Builder getBucketsBuilder(int index) { return getBucketsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder( - int index) { + public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(int index) { if (bucketsBuilder_ == null) { - return buckets_.get(index); } else { + return buckets_.get(index); + } else { return bucketsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public java.util.List - getBucketsOrBuilderList() { + public java.util.List + getBucketsOrBuilderList() { if (bucketsBuilder_ != null) { return bucketsBuilder_.getMessageOrBuilderList(); } else { @@ -823,6 +892,8 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder( } } /** + * + * *
      * A list of buckets.
      * 
@@ -830,42 +901,47 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder( * repeated .google.logging.v2.LogBucket buckets = 1; */ public com.google.logging.v2.LogBucket.Builder addBucketsBuilder() { - return getBucketsFieldBuilder().addBuilder( - com.google.logging.v2.LogBucket.getDefaultInstance()); + return getBucketsFieldBuilder() + .addBuilder(com.google.logging.v2.LogBucket.getDefaultInstance()); } /** + * + * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public com.google.logging.v2.LogBucket.Builder addBucketsBuilder( - int index) { - return getBucketsFieldBuilder().addBuilder( - index, com.google.logging.v2.LogBucket.getDefaultInstance()); + public com.google.logging.v2.LogBucket.Builder addBucketsBuilder(int index) { + return getBucketsFieldBuilder() + .addBuilder(index, com.google.logging.v2.LogBucket.getDefaultInstance()); } /** + * + * *
      * A list of buckets.
      * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - public java.util.List - getBucketsBuilderList() { + public java.util.List getBucketsBuilderList() { return getBucketsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder> + com.google.logging.v2.LogBucket, + com.google.logging.v2.LogBucket.Builder, + com.google.logging.v2.LogBucketOrBuilder> getBucketsFieldBuilder() { if (bucketsBuilder_ == null) { - bucketsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder>( - buckets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + bucketsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.LogBucket, + com.google.logging.v2.LogBucket.Builder, + com.google.logging.v2.LogBucketOrBuilder>( + buckets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); buckets_ = null; } return bucketsBuilder_; @@ -873,6 +949,8 @@ public com.google.logging.v2.LogBucket.Builder addBucketsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -880,13 +958,13 @@ public com.google.logging.v2.LogBucket.Builder addBucketsBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -895,6 +973,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -902,15 +982,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -918,6 +997,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -925,18 +1006,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -944,6 +1029,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -953,6 +1039,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -960,21 +1048,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,12 +1074,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListBucketsResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListBucketsResponse) private static final com.google.logging.v2.ListBucketsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListBucketsResponse(); } @@ -998,27 +1088,27 @@ public static com.google.logging.v2.ListBucketsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBucketsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBucketsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1123,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListBucketsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java index f865d305e..f49f6c25f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * 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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListBucketsResponseOrBuilder extends +public interface ListBucketsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListBucketsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of buckets.
    * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - java.util.List - getBucketsList(); + java.util.List getBucketsList(); /** + * + * *
    * A list of buckets.
    * 
@@ -26,6 +45,8 @@ public interface ListBucketsResponseOrBuilder extends */ com.google.logging.v2.LogBucket getBuckets(int index); /** + * + * *
    * A list of buckets.
    * 
@@ -34,25 +55,29 @@ public interface ListBucketsResponseOrBuilder extends */ int getBucketsCount(); /** + * + * *
    * A list of buckets.
    * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - java.util.List - getBucketsOrBuilderList(); + java.util.List getBucketsOrBuilderList(); /** + * + * *
    * A list of buckets.
    * 
* * repeated .google.logging.v2.LogBucket buckets = 1; */ - com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder( - int index); + com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(int index); /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -60,10 +85,13 @@ com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -71,8 +99,8 @@ com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java index f92dbd018..e14ac7b29 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `ListExclusions`.
  * 
* * Protobuf type {@code google.logging.v2.ListExclusionsRequest} */ -public final class ListExclusionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListExclusionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListExclusionsRequest) ListExclusionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListExclusionsRequest.newBuilder() to construct. private ListExclusionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListExclusionsRequest() { parent_ = ""; pageToken_ = ""; @@ -27,28 +45,32 @@ private ListExclusionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListExclusionsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListExclusionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListExclusionsRequest.class, com.google.logging.v2.ListExclusionsRequest.Builder.class); + com.google.logging.v2.ListExclusionsRequest.class, + com.google.logging.v2.ListExclusionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource whose exclusions are to be listed.
    *
@@ -58,7 +80,10 @@ protected java.lang.Object newInstance(
    *     "folders/[FOLDER_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 @@ -67,14 +92,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource whose exclusions are to be listed.
    *
@@ -84,17 +110,18 @@ public java.lang.String getParent() {
    *     "folders/[FOLDER_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 { @@ -103,9 +130,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -114,6 +144,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -122,14 +153,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. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -138,16 +170,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2 [(.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 { @@ -158,6 +189,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -165,6 +198,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -173,6 +207,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,8 +219,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -211,8 +245,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,19 +255,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.logging.v2.ListExclusionsRequest)) { return super.equals(obj); } - com.google.logging.v2.ListExclusionsRequest other = (com.google.logging.v2.ListExclusionsRequest) obj; + com.google.logging.v2.ListExclusionsRequest other = + (com.google.logging.v2.ListExclusionsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -257,132 +288,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListExclusionsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListExclusionsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListExclusionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListExclusionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListExclusionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListExclusionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListExclusionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListExclusionsRequest 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.logging.v2.ListExclusionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListExclusionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListExclusionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListExclusionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListExclusionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListExclusionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListExclusionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `ListExclusions`.
    * 
* * Protobuf type {@code google.logging.v2.ListExclusionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListExclusionsRequest) com.google.logging.v2.ListExclusionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListExclusionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListExclusionsRequest.class, com.google.logging.v2.ListExclusionsRequest.Builder.class); + com.google.logging.v2.ListExclusionsRequest.class, + com.google.logging.v2.ListExclusionsRequest.Builder.class); } // Construct using com.google.logging.v2.ListExclusionsRequest.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(); @@ -394,9 +429,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListExclusionsRequest_descriptor; } @java.lang.Override @@ -415,8 +450,11 @@ public com.google.logging.v2.ListExclusionsRequest build() { @java.lang.Override public com.google.logging.v2.ListExclusionsRequest buildPartial() { - com.google.logging.v2.ListExclusionsRequest result = new com.google.logging.v2.ListExclusionsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.ListExclusionsRequest result = + new com.google.logging.v2.ListExclusionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -438,38 +476,39 @@ private void buildPartial0(com.google.logging.v2.ListExclusionsRequest 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.logging.v2.ListExclusionsRequest) { - return mergeFrom((com.google.logging.v2.ListExclusionsRequest)other); + return mergeFrom((com.google.logging.v2.ListExclusionsRequest) other); } else { super.mergeFrom(other); return this; @@ -517,27 +556,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -547,10 +590,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -560,14 +606,16 @@ public Builder mergeFrom(
      *     "folders/[FOLDER_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; @@ -576,6 +624,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -585,16 +635,17 @@ public java.lang.String getParent() {
      *     "folders/[FOLDER_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 { @@ -602,6 +653,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -611,19 +664,25 @@ public java.lang.String getParent() {
      *     "folders/[FOLDER_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. The parent resource whose exclusions are to be listed.
      *
@@ -633,7 +692,10 @@ public Builder setParent(
      *     "folders/[FOLDER_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() { @@ -643,6 +705,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -652,13 +716,17 @@ public Builder clearParent() {
      *     "folders/[FOLDER_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; @@ -668,6 +736,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -676,13 +746,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2 [(.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; @@ -691,6 +761,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -699,15 +771,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.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 { @@ -715,6 +786,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -723,18 +796,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.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_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -743,6 +820,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -752,6 +830,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -760,12 +840,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2 [(.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_ |= 0x00000002; @@ -773,8 +855,10 @@ public Builder setPageTokenBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -782,6 +866,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -789,6 +874,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -796,6 +883,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -807,6 +895,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -814,6 +904,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -822,9 +913,9 @@ public Builder clearPageSize() { 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); } @@ -834,12 +925,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListExclusionsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListExclusionsRequest) private static final com.google.logging.v2.ListExclusionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListExclusionsRequest(); } @@ -848,27 +939,27 @@ public static com.google.logging.v2.ListExclusionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExclusionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExclusionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +974,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListExclusionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java index cd488a573..69a34e853 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListExclusionsRequestOrBuilder extends +public interface ListExclusionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListExclusionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource whose exclusions are to be listed.
    *
@@ -18,11 +36,16 @@ public interface ListExclusionsRequestOrBuilder extends
    *     "folders/[FOLDER_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. The parent resource whose exclusions are to be listed.
    *
@@ -32,13 +55,17 @@ public interface ListExclusionsRequestOrBuilder extends
    *     "folders/[FOLDER_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. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -47,10 +74,13 @@ public interface ListExclusionsRequestOrBuilder extends
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -59,12 +89,14 @@ public interface ListExclusionsRequestOrBuilder extends
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -72,6 +104,7 @@ public interface ListExclusionsRequestOrBuilder extends
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java index 5bbbd3a20..98077d8cb 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * Result returned from `ListExclusions`.
  * 
* * Protobuf type {@code google.logging.v2.ListExclusionsResponse} */ -public final class ListExclusionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListExclusionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListExclusionsResponse) ListExclusionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListExclusionsResponse.newBuilder() to construct. private ListExclusionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListExclusionsResponse() { exclusions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListExclusionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListExclusionsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListExclusionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListExclusionsResponse.class, com.google.logging.v2.ListExclusionsResponse.Builder.class); + com.google.logging.v2.ListExclusionsResponse.class, + com.google.logging.v2.ListExclusionsResponse.Builder.class); } public static final int EXCLUSIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List exclusions_; /** + * + * *
    * A list of exclusions.
    * 
@@ -60,6 +82,8 @@ public java.util.List getExclusionsList() { return exclusions_; } /** + * + * *
    * A list of exclusions.
    * 
@@ -67,11 +91,13 @@ public java.util.List getExclusionsList() { * repeated .google.logging.v2.LogExclusion exclusions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getExclusionsOrBuilderList() { return exclusions_; } /** + * + * *
    * A list of exclusions.
    * 
@@ -83,6 +109,8 @@ public int getExclusionsCount() { return exclusions_.size(); } /** + * + * *
    * A list of exclusions.
    * 
@@ -94,6 +122,8 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { return exclusions_.get(index); } /** + * + * *
    * A list of exclusions.
    * 
@@ -101,15 +131,17 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { * repeated .google.logging.v2.LogExclusion exclusions = 1; */ @java.lang.Override - public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( - int index) { + public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int index) { return exclusions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -117,6 +149,7 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,14 +158,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -140,16 +174,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -158,6 +191,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < exclusions_.size(); i++) { output.writeMessage(1, exclusions_.get(i)); } @@ -187,8 +220,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < exclusions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, exclusions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, exclusions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +233,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListExclusionsResponse)) { return super.equals(obj); } - com.google.logging.v2.ListExclusionsResponse other = (com.google.logging.v2.ListExclusionsResponse) obj; + com.google.logging.v2.ListExclusionsResponse other = + (com.google.logging.v2.ListExclusionsResponse) obj; - if (!getExclusionsList() - .equals(other.getExclusionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getExclusionsList().equals(other.getExclusionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,132 +265,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListExclusionsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListExclusionsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListExclusionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListExclusionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListExclusionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListExclusionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListExclusionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListExclusionsResponse 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.logging.v2.ListExclusionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListExclusionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListExclusionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListExclusionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListExclusionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListExclusionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListExclusionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Result returned from `ListExclusions`.
    * 
* * Protobuf type {@code google.logging.v2.ListExclusionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListExclusionsResponse) com.google.logging.v2.ListExclusionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListExclusionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListExclusionsResponse.class, com.google.logging.v2.ListExclusionsResponse.Builder.class); + com.google.logging.v2.ListExclusionsResponse.class, + com.google.logging.v2.ListExclusionsResponse.Builder.class); } // Construct using com.google.logging.v2.ListExclusionsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListExclusionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListExclusionsResponse_descriptor; } @java.lang.Override @@ -397,9 +432,12 @@ public com.google.logging.v2.ListExclusionsResponse build() { @java.lang.Override public com.google.logging.v2.ListExclusionsResponse buildPartial() { - com.google.logging.v2.ListExclusionsResponse result = new com.google.logging.v2.ListExclusionsResponse(this); + com.google.logging.v2.ListExclusionsResponse result = + new com.google.logging.v2.ListExclusionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,38 +465,39 @@ private void buildPartial0(com.google.logging.v2.ListExclusionsResponse 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.logging.v2.ListExclusionsResponse) { - return mergeFrom((com.google.logging.v2.ListExclusionsResponse)other); + return mergeFrom((com.google.logging.v2.ListExclusionsResponse) other); } else { super.mergeFrom(other); return this; @@ -485,9 +524,10 @@ public Builder mergeFrom(com.google.logging.v2.ListExclusionsResponse other) { exclusionsBuilder_ = null; exclusions_ = other.exclusions_; bitField0_ = (bitField0_ & ~0x00000001); - exclusionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExclusionsFieldBuilder() : null; + exclusionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExclusionsFieldBuilder() + : null; } else { exclusionsBuilder_.addAllMessages(other.exclusions_); } @@ -524,30 +564,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.logging.v2.LogExclusion m = - input.readMessage( - com.google.logging.v2.LogExclusion.parser(), - extensionRegistry); - if (exclusionsBuilder_ == null) { - ensureExclusionsIsMutable(); - exclusions_.add(m); - } else { - exclusionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.logging.v2.LogExclusion m = + input.readMessage( + com.google.logging.v2.LogExclusion.parser(), extensionRegistry); + if (exclusionsBuilder_ == null) { + ensureExclusionsIsMutable(); + exclusions_.add(m); + } else { + exclusionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +599,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List exclusions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureExclusionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { exclusions_ = new java.util.ArrayList(exclusions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> exclusionsBuilder_; + com.google.logging.v2.LogExclusion, + com.google.logging.v2.LogExclusion.Builder, + com.google.logging.v2.LogExclusionOrBuilder> + exclusionsBuilder_; /** + * + * *
      * A list of exclusions.
      * 
@@ -586,6 +635,8 @@ public java.util.List getExclusionsList() { } } /** + * + * *
      * A list of exclusions.
      * 
@@ -600,6 +651,8 @@ public int getExclusionsCount() { } } /** + * + * *
      * A list of exclusions.
      * 
@@ -614,14 +667,15 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { } } /** + * + * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public Builder setExclusions( - int index, com.google.logging.v2.LogExclusion value) { + public Builder setExclusions(int index, com.google.logging.v2.LogExclusion value) { if (exclusionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -635,6 +689,8 @@ public Builder setExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -653,6 +709,8 @@ public Builder setExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -673,14 +731,15 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion value) { return this; } /** + * + * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public Builder addExclusions( - int index, com.google.logging.v2.LogExclusion value) { + public Builder addExclusions(int index, com.google.logging.v2.LogExclusion value) { if (exclusionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -694,14 +753,15 @@ public Builder addExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public Builder addExclusions( - com.google.logging.v2.LogExclusion.Builder builderForValue) { + public Builder addExclusions(com.google.logging.v2.LogExclusion.Builder builderForValue) { if (exclusionsBuilder_ == null) { ensureExclusionsIsMutable(); exclusions_.add(builderForValue.build()); @@ -712,6 +772,8 @@ public Builder addExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -730,6 +792,8 @@ public Builder addExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -740,8 +804,7 @@ public Builder addAllExclusions( java.lang.Iterable values) { if (exclusionsBuilder_ == null) { ensureExclusionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exclusions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exclusions_); onChanged(); } else { exclusionsBuilder_.addAllMessages(values); @@ -749,6 +812,8 @@ public Builder addAllExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -766,6 +831,8 @@ public Builder clearExclusions() { return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -783,39 +850,44 @@ public Builder removeExclusions(int index) { return this; } /** + * + * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public com.google.logging.v2.LogExclusion.Builder getExclusionsBuilder( - int index) { + public com.google.logging.v2.LogExclusion.Builder getExclusionsBuilder(int index) { return getExclusionsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( - int index) { + public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int index) { if (exclusionsBuilder_ == null) { - return exclusions_.get(index); } else { + return exclusions_.get(index); + } else { return exclusionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public java.util.List - getExclusionsOrBuilderList() { + public java.util.List + getExclusionsOrBuilderList() { if (exclusionsBuilder_ != null) { return exclusionsBuilder_.getMessageOrBuilderList(); } else { @@ -823,6 +895,8 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( } } /** + * + * *
      * A list of exclusions.
      * 
@@ -830,42 +904,47 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( * repeated .google.logging.v2.LogExclusion exclusions = 1; */ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder() { - return getExclusionsFieldBuilder().addBuilder( - com.google.logging.v2.LogExclusion.getDefaultInstance()); + return getExclusionsFieldBuilder() + .addBuilder(com.google.logging.v2.LogExclusion.getDefaultInstance()); } /** + * + * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder( - int index) { - return getExclusionsFieldBuilder().addBuilder( - index, com.google.logging.v2.LogExclusion.getDefaultInstance()); + public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder(int index) { + return getExclusionsFieldBuilder() + .addBuilder(index, com.google.logging.v2.LogExclusion.getDefaultInstance()); } /** + * + * *
      * A list of exclusions.
      * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - public java.util.List - getExclusionsBuilderList() { + public java.util.List getExclusionsBuilderList() { return getExclusionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> + com.google.logging.v2.LogExclusion, + com.google.logging.v2.LogExclusion.Builder, + com.google.logging.v2.LogExclusionOrBuilder> getExclusionsFieldBuilder() { if (exclusionsBuilder_ == null) { - exclusionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder>( - exclusions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + exclusionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.LogExclusion, + com.google.logging.v2.LogExclusion.Builder, + com.google.logging.v2.LogExclusionOrBuilder>( + exclusions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); exclusions_ = null; } return exclusionsBuilder_; @@ -873,6 +952,8 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -880,13 +961,13 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -895,6 +976,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -902,15 +985,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -918,6 +1000,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -925,18 +1009,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -944,6 +1032,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -953,6 +1042,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -960,21 +1051,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,12 +1077,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListExclusionsResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListExclusionsResponse) private static final com.google.logging.v2.ListExclusionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListExclusionsResponse(); } @@ -998,27 +1091,27 @@ public static com.google.logging.v2.ListExclusionsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExclusionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExclusionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1126,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListExclusionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java index 929cd32b6..ef168c15f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * 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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListExclusionsResponseOrBuilder extends +public interface ListExclusionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListExclusionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of exclusions.
    * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - java.util.List - getExclusionsList(); + java.util.List getExclusionsList(); /** + * + * *
    * A list of exclusions.
    * 
@@ -26,6 +45,8 @@ public interface ListExclusionsResponseOrBuilder extends */ com.google.logging.v2.LogExclusion getExclusions(int index); /** + * + * *
    * A list of exclusions.
    * 
@@ -34,25 +55,30 @@ public interface ListExclusionsResponseOrBuilder extends */ int getExclusionsCount(); /** + * + * *
    * A list of exclusions.
    * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - java.util.List + java.util.List getExclusionsOrBuilderList(); /** + * + * *
    * A list of exclusions.
    * 
* * repeated .google.logging.v2.LogExclusion exclusions = 1; */ - com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( - int index); + com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int index); /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -60,10 +86,13 @@ com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -71,8 +100,8 @@ com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java index 9de4ac7ea..dc0a7409a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to ListLinks.
  * 
* * Protobuf type {@code google.logging.v2.ListLinksRequest} */ -public final class ListLinksRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLinksRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLinksRequest) ListLinksRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLinksRequest.newBuilder() to construct. private ListLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLinksRequest() { parent_ = ""; pageToken_ = ""; @@ -27,28 +45,32 @@ private ListLinksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLinksRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLinksRequest.class, com.google.logging.v2.ListLinksRequest.Builder.class); + com.google.logging.v2.ListLinksRequest.class, + com.google.logging.v2.ListLinksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource whose links are to be listed:
    *
@@ -58,7 +80,10 @@ protected java.lang.Object newInstance(
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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 @@ -67,14 +92,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource whose links are to be listed:
    *
@@ -84,17 +110,18 @@ public java.lang.String getParent() {
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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 { @@ -103,9 +130,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -113,6 +143,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -121,14 +152,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. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -136,16 +168,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2 [(.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 { @@ -156,11 +187,14 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -169,6 +203,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +215,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -207,8 +241,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,19 +251,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListLinksRequest)) { return super.equals(obj); } com.google.logging.v2.ListLinksRequest other = (com.google.logging.v2.ListLinksRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -253,132 +283,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLinksRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLinksRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLinksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLinksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLinksRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLinksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLinksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLinksRequest 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.logging.v2.ListLinksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.ListLinksRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLinksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListLinksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListLinksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to ListLinks.
    * 
* * Protobuf type {@code google.logging.v2.ListLinksRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLinksRequest) com.google.logging.v2.ListLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLinksRequest.class, com.google.logging.v2.ListLinksRequest.Builder.class); + com.google.logging.v2.ListLinksRequest.class, + com.google.logging.v2.ListLinksRequest.Builder.class); } // Construct using com.google.logging.v2.ListLinksRequest.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(); @@ -390,9 +424,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksRequest_descriptor; } @java.lang.Override @@ -411,8 +445,11 @@ public com.google.logging.v2.ListLinksRequest build() { @java.lang.Override public com.google.logging.v2.ListLinksRequest buildPartial() { - com.google.logging.v2.ListLinksRequest result = new com.google.logging.v2.ListLinksRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.ListLinksRequest result = + new com.google.logging.v2.ListLinksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -434,38 +471,39 @@ private void buildPartial0(com.google.logging.v2.ListLinksRequest 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.logging.v2.ListLinksRequest) { - return mergeFrom((com.google.logging.v2.ListLinksRequest)other); + return mergeFrom((com.google.logging.v2.ListLinksRequest) other); } else { super.mergeFrom(other); return this; @@ -513,27 +551,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,10 +585,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -556,14 +601,16 @@ public Builder mergeFrom(
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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; @@ -572,6 +619,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -581,16 +630,17 @@ public java.lang.String getParent() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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 { @@ -598,6 +648,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -607,19 +659,25 @@ public java.lang.String getParent() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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. The parent resource whose links are to be listed:
      *
@@ -629,7 +687,10 @@ public Builder setParent(
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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() { @@ -639,6 +700,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -648,13 +711,17 @@ public Builder clearParent() {
      *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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; @@ -664,6 +731,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -671,13 +740,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2 [(.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; @@ -686,6 +755,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -693,15 +764,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.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 { @@ -709,6 +779,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -716,18 +788,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.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_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -735,6 +811,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -744,6 +821,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -751,12 +830,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2 [(.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_ |= 0x00000002; @@ -764,13 +845,16 @@ public Builder setPageTokenBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -778,11 +862,14 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -794,11 +881,14 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -807,9 +897,9 @@ public Builder clearPageSize() { 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); } @@ -819,12 +909,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLinksRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLinksRequest) private static final com.google.logging.v2.ListLinksRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLinksRequest(); } @@ -833,27 +923,27 @@ public static com.google.logging.v2.ListLinksRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -868,6 +958,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLinksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java index 59b0b5cad..b07827fad 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLinksRequestOrBuilder extends +public interface ListLinksRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLinksRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource whose links are to be listed:
    *
@@ -18,11 +36,16 @@ public interface ListLinksRequestOrBuilder extends
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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. The parent resource whose links are to be listed:
    *
@@ -32,13 +55,17 @@ public interface ListLinksRequestOrBuilder extends
    *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_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. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -46,10 +73,13 @@ public interface ListLinksRequestOrBuilder extends
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -57,17 +87,20 @@ public interface ListLinksRequestOrBuilder extends
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java index e48d5caa9..00b922204 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * The response from ListLinks.
  * 
* * Protobuf type {@code google.logging.v2.ListLinksResponse} */ -public final class ListLinksResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLinksResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLinksResponse) ListLinksResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLinksResponse.newBuilder() to construct. private ListLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLinksResponse() { links_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListLinksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLinksResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLinksResponse.class, com.google.logging.v2.ListLinksResponse.Builder.class); + com.google.logging.v2.ListLinksResponse.class, + com.google.logging.v2.ListLinksResponse.Builder.class); } public static final int LINKS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List links_; /** + * + * *
    * A list of links.
    * 
@@ -60,6 +82,8 @@ public java.util.List getLinksList() { return links_; } /** + * + * *
    * A list of links.
    * 
@@ -67,11 +91,12 @@ public java.util.List getLinksList() { * repeated .google.logging.v2.Link links = 1; */ @java.lang.Override - public java.util.List - getLinksOrBuilderList() { + public java.util.List getLinksOrBuilderList() { return links_; } /** + * + * *
    * A list of links.
    * 
@@ -83,6 +108,8 @@ public int getLinksCount() { return links_.size(); } /** + * + * *
    * A list of links.
    * 
@@ -94,6 +121,8 @@ public com.google.logging.v2.Link getLinks(int index) { return links_.get(index); } /** + * + * *
    * A list of links.
    * 
@@ -101,15 +130,17 @@ public com.google.logging.v2.Link getLinks(int index) { * repeated .google.logging.v2.Link links = 1; */ @java.lang.Override - public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder( - int index) { + public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(int index) { return links_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -117,6 +148,7 @@ public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,14 +157,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -140,16 +173,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -158,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < links_.size(); i++) { output.writeMessage(1, links_.get(i)); } @@ -187,8 +219,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < links_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, links_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, links_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +232,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.logging.v2.ListLinksResponse)) { return super.equals(obj); } com.google.logging.v2.ListLinksResponse other = (com.google.logging.v2.ListLinksResponse) obj; - if (!getLinksList() - .equals(other.getLinksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getLinksList().equals(other.getLinksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,132 +263,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLinksResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLinksResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLinksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLinksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLinksResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLinksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLinksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLinksResponse 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.logging.v2.ListLinksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLinksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListLinksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLinksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListLinksResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListLinksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response from ListLinks.
    * 
* * Protobuf type {@code google.logging.v2.ListLinksResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLinksResponse) com.google.logging.v2.ListLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLinksResponse.class, com.google.logging.v2.ListLinksResponse.Builder.class); + com.google.logging.v2.ListLinksResponse.class, + com.google.logging.v2.ListLinksResponse.Builder.class); } // Construct using com.google.logging.v2.ListLinksResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListLinksResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksResponse_descriptor; } @java.lang.Override @@ -397,9 +430,12 @@ public com.google.logging.v2.ListLinksResponse build() { @java.lang.Override public com.google.logging.v2.ListLinksResponse buildPartial() { - com.google.logging.v2.ListLinksResponse result = new com.google.logging.v2.ListLinksResponse(this); + com.google.logging.v2.ListLinksResponse result = + new com.google.logging.v2.ListLinksResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,38 +463,39 @@ private void buildPartial0(com.google.logging.v2.ListLinksResponse 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.logging.v2.ListLinksResponse) { - return mergeFrom((com.google.logging.v2.ListLinksResponse)other); + return mergeFrom((com.google.logging.v2.ListLinksResponse) other); } else { super.mergeFrom(other); return this; @@ -485,9 +522,10 @@ public Builder mergeFrom(com.google.logging.v2.ListLinksResponse other) { linksBuilder_ = null; links_ = other.links_; bitField0_ = (bitField0_ & ~0x00000001); - linksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLinksFieldBuilder() : null; + linksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLinksFieldBuilder() + : null; } else { linksBuilder_.addAllMessages(other.links_); } @@ -524,30 +562,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.logging.v2.Link m = - input.readMessage( - com.google.logging.v2.Link.parser(), - extensionRegistry); - if (linksBuilder_ == null) { - ensureLinksIsMutable(); - links_.add(m); - } else { - linksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.logging.v2.Link m = + input.readMessage(com.google.logging.v2.Link.parser(), extensionRegistry); + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.add(m); + } else { + linksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +596,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List links_ = - java.util.Collections.emptyList(); + private java.util.List links_ = java.util.Collections.emptyList(); + private void ensureLinksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { links_ = new java.util.ArrayList(links_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.Link, com.google.logging.v2.Link.Builder, com.google.logging.v2.LinkOrBuilder> linksBuilder_; + com.google.logging.v2.Link, + com.google.logging.v2.Link.Builder, + com.google.logging.v2.LinkOrBuilder> + linksBuilder_; /** + * + * *
      * A list of links.
      * 
@@ -586,6 +631,8 @@ public java.util.List getLinksList() { } } /** + * + * *
      * A list of links.
      * 
@@ -600,6 +647,8 @@ public int getLinksCount() { } } /** + * + * *
      * A list of links.
      * 
@@ -614,14 +663,15 @@ public com.google.logging.v2.Link getLinks(int index) { } } /** + * + * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public Builder setLinks( - int index, com.google.logging.v2.Link value) { + public Builder setLinks(int index, com.google.logging.v2.Link value) { if (linksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -635,14 +685,15 @@ public Builder setLinks( return this; } /** + * + * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public Builder setLinks( - int index, com.google.logging.v2.Link.Builder builderForValue) { + public Builder setLinks(int index, com.google.logging.v2.Link.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.set(index, builderForValue.build()); @@ -653,6 +704,8 @@ public Builder setLinks( return this; } /** + * + * *
      * A list of links.
      * 
@@ -673,14 +726,15 @@ public Builder addLinks(com.google.logging.v2.Link value) { return this; } /** + * + * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public Builder addLinks( - int index, com.google.logging.v2.Link value) { + public Builder addLinks(int index, com.google.logging.v2.Link value) { if (linksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -694,14 +748,15 @@ public Builder addLinks( return this; } /** + * + * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public Builder addLinks( - com.google.logging.v2.Link.Builder builderForValue) { + public Builder addLinks(com.google.logging.v2.Link.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.add(builderForValue.build()); @@ -712,14 +767,15 @@ public Builder addLinks( return this; } /** + * + * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public Builder addLinks( - int index, com.google.logging.v2.Link.Builder builderForValue) { + public Builder addLinks(int index, com.google.logging.v2.Link.Builder builderForValue) { if (linksBuilder_ == null) { ensureLinksIsMutable(); links_.add(index, builderForValue.build()); @@ -730,18 +786,18 @@ public Builder addLinks( return this; } /** + * + * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public Builder addAllLinks( - java.lang.Iterable values) { + public Builder addAllLinks(java.lang.Iterable values) { if (linksBuilder_ == null) { ensureLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, links_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, links_); onChanged(); } else { linksBuilder_.addAllMessages(values); @@ -749,6 +805,8 @@ public Builder addAllLinks( return this; } /** + * + * *
      * A list of links.
      * 
@@ -766,6 +824,8 @@ public Builder clearLinks() { return this; } /** + * + * *
      * A list of links.
      * 
@@ -783,39 +843,43 @@ public Builder removeLinks(int index) { return this; } /** + * + * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public com.google.logging.v2.Link.Builder getLinksBuilder( - int index) { + public com.google.logging.v2.Link.Builder getLinksBuilder(int index) { return getLinksFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder( - int index) { + public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(int index) { if (linksBuilder_ == null) { - return links_.get(index); } else { + return links_.get(index); + } else { return linksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public java.util.List - getLinksOrBuilderList() { + public java.util.List getLinksOrBuilderList() { if (linksBuilder_ != null) { return linksBuilder_.getMessageOrBuilderList(); } else { @@ -823,6 +887,8 @@ public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder( } } /** + * + * *
      * A list of links.
      * 
@@ -830,42 +896,46 @@ public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder( * repeated .google.logging.v2.Link links = 1; */ public com.google.logging.v2.Link.Builder addLinksBuilder() { - return getLinksFieldBuilder().addBuilder( - com.google.logging.v2.Link.getDefaultInstance()); + return getLinksFieldBuilder().addBuilder(com.google.logging.v2.Link.getDefaultInstance()); } /** + * + * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public com.google.logging.v2.Link.Builder addLinksBuilder( - int index) { - return getLinksFieldBuilder().addBuilder( - index, com.google.logging.v2.Link.getDefaultInstance()); + public com.google.logging.v2.Link.Builder addLinksBuilder(int index) { + return getLinksFieldBuilder() + .addBuilder(index, com.google.logging.v2.Link.getDefaultInstance()); } /** + * + * *
      * A list of links.
      * 
* * repeated .google.logging.v2.Link links = 1; */ - public java.util.List - getLinksBuilderList() { + public java.util.List getLinksBuilderList() { return getLinksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.Link, com.google.logging.v2.Link.Builder, com.google.logging.v2.LinkOrBuilder> + com.google.logging.v2.Link, + com.google.logging.v2.Link.Builder, + com.google.logging.v2.LinkOrBuilder> getLinksFieldBuilder() { if (linksBuilder_ == null) { - linksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.Link, com.google.logging.v2.Link.Builder, com.google.logging.v2.LinkOrBuilder>( - links_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + linksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.Link, + com.google.logging.v2.Link.Builder, + com.google.logging.v2.LinkOrBuilder>( + links_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); links_ = null; } return linksBuilder_; @@ -873,6 +943,8 @@ public com.google.logging.v2.Link.Builder addLinksBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -880,13 +952,13 @@ public com.google.logging.v2.Link.Builder addLinksBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -895,6 +967,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -902,15 +976,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -918,6 +991,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -925,18 +1000,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -944,6 +1023,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -953,6 +1033,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -960,21 +1042,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,12 +1068,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLinksResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLinksResponse) private static final com.google.logging.v2.ListLinksResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLinksResponse(); } @@ -998,27 +1082,27 @@ public static com.google.logging.v2.ListLinksResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1117,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLinksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java index 7aefc3856..3fae72fac 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * 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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLinksResponseOrBuilder extends +public interface ListLinksResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLinksResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of links.
    * 
* * repeated .google.logging.v2.Link links = 1; */ - java.util.List - getLinksList(); + java.util.List getLinksList(); /** + * + * *
    * A list of links.
    * 
@@ -26,6 +45,8 @@ public interface ListLinksResponseOrBuilder extends */ com.google.logging.v2.Link getLinks(int index); /** + * + * *
    * A list of links.
    * 
@@ -34,25 +55,29 @@ public interface ListLinksResponseOrBuilder extends */ int getLinksCount(); /** + * + * *
    * A list of links.
    * 
* * repeated .google.logging.v2.Link links = 1; */ - java.util.List - getLinksOrBuilderList(); + java.util.List getLinksOrBuilderList(); /** + * + * *
    * A list of links.
    * 
* * repeated .google.logging.v2.Link links = 1; */ - com.google.logging.v2.LinkOrBuilder getLinksOrBuilder( - int index); + com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(int index); /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -60,10 +85,13 @@ com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -71,8 +99,8 @@ com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java similarity index 77% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java index 9985b92c2..c6f773b7b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.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/logging/v2/logging.proto @@ -5,24 +20,26 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `ListLogEntries`.
  * 
* * Protobuf type {@code google.logging.v2.ListLogEntriesRequest} */ -public final class ListLogEntriesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLogEntriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLogEntriesRequest) ListLogEntriesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLogEntriesRequest.newBuilder() to construct. private ListLogEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLogEntriesRequest() { - resourceNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); filter_ = ""; orderBy_ = ""; pageToken_ = ""; @@ -30,29 +47,33 @@ private ListLogEntriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLogEntriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogEntriesRequest.class, com.google.logging.v2.ListLogEntriesRequest.Builder.class); + com.google.logging.v2.ListLogEntriesRequest.class, + com.google.logging.v2.ListLogEntriesRequest.Builder.class); } public static final int RESOURCE_NAMES_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -73,14 +94,18 @@ protected java.lang.Object newInstance(
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList - getResourceNamesList() { + public com.google.protobuf.ProtocolStringList getResourceNamesList() { return resourceNames_; } /** + * + * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -101,13 +126,18 @@ protected java.lang.Object newInstance(
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** + * + * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -128,7 +158,10 @@ public int getResourceNamesCount() {
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -136,6 +169,8 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -156,19 +191,24 @@ public java.lang.String getResourceNames(int index) {
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString - getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -178,6 +218,7 @@ public java.lang.String getResourceNames(int index) {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -186,14 +227,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. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -203,16 +245,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -221,9 +262,12 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Optional. How the results should be sorted.  Presently, the only permitted
    * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -234,6 +278,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -242,14 +287,15 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Optional. How the results should be sorted.  Presently, the only permitted
    * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -260,16 +306,15 @@ public java.lang.String getOrderBy() {
    * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -280,6 +325,8 @@ public java.lang.String getOrderBy() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Default is 50. If the value is negative or exceeds 1000, the request is
@@ -288,6 +335,7 @@ public java.lang.String getOrderBy() {
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -296,9 +344,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `page_token` must be the value of
@@ -307,6 +358,7 @@ public int getPageSize() {
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -315,14 +367,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. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `page_token` must be the value of
@@ -331,16 +384,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -349,6 +401,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -360,8 +413,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } @@ -393,8 +445,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, orderBy_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); @@ -415,23 +466,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.logging.v2.ListLogEntriesRequest)) { return super.equals(obj); } - com.google.logging.v2.ListLogEntriesRequest other = (com.google.logging.v2.ListLogEntriesRequest) obj; - - if (!getResourceNamesList() - .equals(other.getResourceNamesList())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.logging.v2.ListLogEntriesRequest other = + (com.google.logging.v2.ListLogEntriesRequest) obj; + + if (!getResourceNamesList().equals(other.getResourceNamesList())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -460,138 +507,141 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLogEntriesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLogEntriesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogEntriesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogEntriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogEntriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogEntriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogEntriesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogEntriesRequest 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.logging.v2.ListLogEntriesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLogEntriesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListLogEntriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLogEntriesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListLogEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListLogEntriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListLogEntriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `ListLogEntries`.
    * 
* * Protobuf type {@code google.logging.v2.ListLogEntriesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLogEntriesRequest) com.google.logging.v2.ListLogEntriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogEntriesRequest.class, com.google.logging.v2.ListLogEntriesRequest.Builder.class); + com.google.logging.v2.ListLogEntriesRequest.class, + com.google.logging.v2.ListLogEntriesRequest.Builder.class); } // Construct using com.google.logging.v2.ListLogEntriesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - resourceNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); filter_ = ""; orderBy_ = ""; pageSize_ = 0; @@ -600,9 +650,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; } @java.lang.Override @@ -621,8 +671,11 @@ public com.google.logging.v2.ListLogEntriesRequest build() { @java.lang.Override public com.google.logging.v2.ListLogEntriesRequest buildPartial() { - com.google.logging.v2.ListLogEntriesRequest result = new com.google.logging.v2.ListLogEntriesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.ListLogEntriesRequest result = + new com.google.logging.v2.ListLogEntriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -651,38 +704,39 @@ private void buildPartial0(com.google.logging.v2.ListLogEntriesRequest 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.logging.v2.ListLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.ListLogEntriesRequest)other); + return mergeFrom((com.google.logging.v2.ListLogEntriesRequest) other); } else { super.mergeFrom(other); return this; @@ -745,38 +799,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceNamesIsMutable(); - resourceNames_.add(s); - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceNamesIsMutable(); + resourceNames_.add(s); + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -786,10 +846,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureResourceNamesIsMutable() { if (!resourceNames_.isModifiable()) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); @@ -797,6 +859,8 @@ private void ensureResourceNamesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -817,15 +881,19 @@ private void ensureResourceNamesIsMutable() {
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList - getResourceNamesList() { + public com.google.protobuf.ProtocolStringList getResourceNamesList() { resourceNames_.makeImmutable(); return resourceNames_; } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -846,13 +914,18 @@ private void ensureResourceNamesIsMutable() {
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -873,7 +946,10 @@ public int getResourceNamesCount() {
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -881,6 +957,8 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -901,15 +979,19 @@ public java.lang.String getResourceNames(int index) {
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString - getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -930,14 +1012,18 @@ public java.lang.String getResourceNames(int index) {
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The resourceNames to set. * @return This builder for chaining. */ - public Builder setResourceNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceNamesIsMutable(); resourceNames_.set(index, value); bitField0_ |= 0x00000001; @@ -945,6 +1031,8 @@ public Builder setResourceNames( return this; } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -965,13 +1053,17 @@ public Builder setResourceNames(
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceNamesIsMutable(); resourceNames_.add(value); bitField0_ |= 0x00000001; @@ -979,6 +1071,8 @@ public Builder addResourceNames( return this; } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -999,20 +1093,23 @@ public Builder addResourceNames(
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param values The resourceNames to add. * @return This builder for chaining. */ - public Builder addAllResourceNames( - java.lang.Iterable values) { + public Builder addAllResourceNames(java.lang.Iterable values) { ensureResourceNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceNames_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -1033,17 +1130,22 @@ public Builder addAllResourceNames(
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearResourceNames() { - resourceNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -1064,13 +1166,17 @@ public Builder clearResourceNames() {
      * A maximum of 100 resources may be specified in a single request.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureResourceNamesIsMutable(); resourceNames_.add(value); @@ -1081,6 +1187,8 @@ public Builder addResourceNamesBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1090,13 +1198,13 @@ public Builder addResourceNamesBytes(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1105,6 +1213,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1114,15 +1224,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1130,6 +1239,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1139,18 +1250,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1160,6 +1275,7 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1169,6 +1285,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1178,12 +1296,14 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1193,6 +1313,8 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1203,13 +1325,13 @@ public Builder setFilterBytes(
      * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1218,6 +1340,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1228,15 +1352,14 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1244,6 +1367,8 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1254,18 +1379,22 @@ public java.lang.String getOrderBy() {
      * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1276,6 +1405,7 @@ public Builder setOrderBy(
      * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1285,6 +1415,8 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1295,12 +1427,14 @@ public Builder clearOrderBy() {
      * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000004; @@ -1308,8 +1442,10 @@ public Builder setOrderByBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Default is 50. If the value is negative or exceeds 1000, the request is
@@ -1318,6 +1454,7 @@ public Builder setOrderByBytes(
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1325,6 +1462,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Default is 50. If the value is negative or exceeds 1000, the request is
@@ -1333,6 +1472,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1344,6 +1484,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Default is 50. If the value is negative or exceeds 1000, the request is
@@ -1352,6 +1494,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1363,6 +1506,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `page_token` must be the value of
@@ -1371,13 +1516,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1386,6 +1531,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `page_token` must be the value of
@@ -1394,15 +1541,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1410,6 +1556,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `page_token` must be the value of
@@ -1418,18 +1566,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `page_token` must be the value of
@@ -1438,6 +1590,7 @@ public Builder setPageToken(
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1447,6 +1600,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `page_token` must be the value of
@@ -1455,21 +1610,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 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); } @@ -1479,12 +1636,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLogEntriesRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLogEntriesRequest) private static final com.google.logging.v2.ListLogEntriesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLogEntriesRequest(); } @@ -1493,27 +1650,27 @@ public static com.google.logging.v2.ListLogEntriesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLogEntriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogEntriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1528,6 +1685,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogEntriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java similarity index 82% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java index 170772c67..8c54602e4 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.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/logging/v2/logging.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLogEntriesRequestOrBuilder extends +public interface ListLogEntriesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLogEntriesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -29,12 +47,16 @@ public interface ListLogEntriesRequestOrBuilder extends
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the resourceNames. */ - java.util.List - getResourceNamesList(); + java.util.List getResourceNamesList(); /** + * + * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -55,11 +77,16 @@ public interface ListLogEntriesRequestOrBuilder extends
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The count of resourceNames. */ int getResourceNamesCount(); /** + * + * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -80,12 +107,17 @@ public interface ListLogEntriesRequestOrBuilder extends
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The resourceNames at the given index. */ java.lang.String getResourceNames(int index); /** + * + * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -106,14 +138,18 @@ public interface ListLogEntriesRequestOrBuilder extends
    * A maximum of 100 resources may be specified in a single request.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - com.google.protobuf.ByteString - getResourceNamesBytes(int index); + com.google.protobuf.ByteString getResourceNamesBytes(int index); /** + * + * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -123,10 +159,13 @@ public interface ListLogEntriesRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -136,12 +175,14 @@ public interface ListLogEntriesRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. How the results should be sorted.  Presently, the only permitted
    * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -152,10 +193,13 @@ public interface ListLogEntriesRequestOrBuilder extends
    * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. How the results should be sorted.  Presently, the only permitted
    * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -166,12 +210,14 @@ public interface ListLogEntriesRequestOrBuilder extends
    * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Default is 50. If the value is negative or exceeds 1000, the request is
@@ -180,11 +226,14 @@ public interface ListLogEntriesRequestOrBuilder extends
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `page_token` must be the value of
@@ -193,10 +242,13 @@ public interface ListLogEntriesRequestOrBuilder extends
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `page_token` must be the value of
@@ -205,8 +257,8 @@ public interface ListLogEntriesRequestOrBuilder extends
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java similarity index 76% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java index 46e8034f3..e387b8535 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.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/logging/v2/logging.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * Result returned from `ListLogEntries`.
  * 
* * Protobuf type {@code google.logging.v2.ListLogEntriesResponse} */ -public final class ListLogEntriesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLogEntriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLogEntriesResponse) ListLogEntriesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLogEntriesResponse.newBuilder() to construct. private ListLogEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLogEntriesResponse() { entries_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListLogEntriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLogEntriesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogEntriesResponse.class, com.google.logging.v2.ListLogEntriesResponse.Builder.class); + com.google.logging.v2.ListLogEntriesResponse.class, + com.google.logging.v2.ListLogEntriesResponse.Builder.class); } public static final int ENTRIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List entries_; /** + * + * *
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -62,6 +84,8 @@ public java.util.List getEntriesList() {
     return entries_;
   }
   /**
+   *
+   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -71,11 +95,13 @@ public java.util.List getEntriesList() {
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getEntriesOrBuilderList() {
     return entries_;
   }
   /**
+   *
+   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -89,6 +115,8 @@ public int getEntriesCount() {
     return entries_.size();
   }
   /**
+   *
+   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -102,6 +130,8 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
     return entries_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -111,15 +141,17 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
   @java.lang.Override
-  public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
-      int index) {
+  public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
     return entries_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object nextPageToken_ = "";
   /**
+   *
+   *
    * 
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -134,6 +166,7 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -142,14 +175,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -164,16 +198,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -182,6 +215,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,8 +227,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < entries_.size(); i++) { output.writeMessage(1, entries_.get(i)); } @@ -211,8 +244,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -225,17 +257,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListLogEntriesResponse)) { return super.equals(obj); } - com.google.logging.v2.ListLogEntriesResponse other = (com.google.logging.v2.ListLogEntriesResponse) obj; + com.google.logging.v2.ListLogEntriesResponse other = + (com.google.logging.v2.ListLogEntriesResponse) obj; - if (!getEntriesList() - .equals(other.getEntriesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,132 +289,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLogEntriesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLogEntriesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogEntriesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogEntriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogEntriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogEntriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogEntriesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogEntriesResponse 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.logging.v2.ListLogEntriesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLogEntriesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListLogEntriesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLogEntriesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListLogEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListLogEntriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListLogEntriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Result returned from `ListLogEntries`.
    * 
* * Protobuf type {@code google.logging.v2.ListLogEntriesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLogEntriesResponse) com.google.logging.v2.ListLogEntriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogEntriesResponse.class, com.google.logging.v2.ListLogEntriesResponse.Builder.class); + com.google.logging.v2.ListLogEntriesResponse.class, + com.google.logging.v2.ListLogEntriesResponse.Builder.class); } // Construct using com.google.logging.v2.ListLogEntriesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -400,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; } @java.lang.Override @@ -421,9 +456,12 @@ public com.google.logging.v2.ListLogEntriesResponse build() { @java.lang.Override public com.google.logging.v2.ListLogEntriesResponse buildPartial() { - com.google.logging.v2.ListLogEntriesResponse result = new com.google.logging.v2.ListLogEntriesResponse(this); + com.google.logging.v2.ListLogEntriesResponse result = + new com.google.logging.v2.ListLogEntriesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -451,38 +489,39 @@ private void buildPartial0(com.google.logging.v2.ListLogEntriesResponse 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.logging.v2.ListLogEntriesResponse) { - return mergeFrom((com.google.logging.v2.ListLogEntriesResponse)other); + return mergeFrom((com.google.logging.v2.ListLogEntriesResponse) other); } else { super.mergeFrom(other); return this; @@ -509,9 +548,10 @@ public Builder mergeFrom(com.google.logging.v2.ListLogEntriesResponse other) { entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); - entriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntriesFieldBuilder() : null; + entriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntriesFieldBuilder() + : null; } else { entriesBuilder_.addAllMessages(other.entries_); } @@ -548,30 +588,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.logging.v2.LogEntry m = - input.readMessage( - com.google.logging.v2.LogEntry.parser(), - extensionRegistry); - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(m); - } else { - entriesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.logging.v2.LogEntry m = + input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -581,21 +622,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List entries_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder> entriesBuilder_; + com.google.logging.v2.LogEntry, + com.google.logging.v2.LogEntry.Builder, + com.google.logging.v2.LogEntryOrBuilder> + entriesBuilder_; /** + * + * *
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -612,6 +660,8 @@ public java.util.List getEntriesList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -628,6 +678,8 @@ public int getEntriesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -644,6 +696,8 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -652,8 +706,7 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder setEntries(
-        int index, com.google.logging.v2.LogEntry value) {
+    public Builder setEntries(int index, com.google.logging.v2.LogEntry value) {
       if (entriesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -667,6 +720,8 @@ public Builder setEntries(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -675,8 +730,7 @@ public Builder setEntries(
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder setEntries(
-        int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
+    public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
         entries_.set(index, builderForValue.build());
@@ -687,6 +741,8 @@ public Builder setEntries(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -709,6 +765,8 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -717,8 +775,7 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder addEntries(
-        int index, com.google.logging.v2.LogEntry value) {
+    public Builder addEntries(int index, com.google.logging.v2.LogEntry value) {
       if (entriesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -732,6 +789,8 @@ public Builder addEntries(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -740,8 +799,7 @@ public Builder addEntries(
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder addEntries(
-        com.google.logging.v2.LogEntry.Builder builderForValue) {
+    public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
         entries_.add(builderForValue.build());
@@ -752,6 +810,8 @@ public Builder addEntries(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -760,8 +820,7 @@ public Builder addEntries(
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder addEntries(
-        int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
+    public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
         entries_.add(index, builderForValue.build());
@@ -772,6 +831,8 @@ public Builder addEntries(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -784,8 +845,7 @@ public Builder addAllEntries(
         java.lang.Iterable values) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, entries_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_);
         onChanged();
       } else {
         entriesBuilder_.addAllMessages(values);
@@ -793,6 +853,8 @@ public Builder addAllEntries(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -812,6 +874,8 @@ public Builder clearEntries() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -831,6 +895,8 @@ public Builder removeEntries(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -839,11 +905,12 @@ public Builder removeEntries(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(
-        int index) {
+    public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) {
       return getEntriesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -852,14 +919,16 @@ public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
-        int index) {
+    public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
       if (entriesBuilder_ == null) {
-        return entries_.get(index);  } else {
+        return entries_.get(index);
+      } else {
         return entriesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -868,8 +937,8 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public java.util.List 
-         getEntriesOrBuilderList() {
+    public java.util.List
+        getEntriesOrBuilderList() {
       if (entriesBuilder_ != null) {
         return entriesBuilder_.getMessageOrBuilderList();
       } else {
@@ -877,6 +946,8 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -886,10 +957,12 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
     public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() {
-      return getEntriesFieldBuilder().addBuilder(
-          com.google.logging.v2.LogEntry.getDefaultInstance());
+      return getEntriesFieldBuilder()
+          .addBuilder(com.google.logging.v2.LogEntry.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -898,12 +971,13 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(
-        int index) {
-      return getEntriesFieldBuilder().addBuilder(
-          index, com.google.logging.v2.LogEntry.getDefaultInstance());
+    public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) {
+      return getEntriesFieldBuilder()
+          .addBuilder(index, com.google.logging.v2.LogEntry.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
      * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -912,20 +986,22 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public java.util.List 
-         getEntriesBuilderList() {
+    public java.util.List getEntriesBuilderList() {
       return getEntriesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder> 
+            com.google.logging.v2.LogEntry,
+            com.google.logging.v2.LogEntry.Builder,
+            com.google.logging.v2.LogEntryOrBuilder>
         getEntriesFieldBuilder() {
       if (entriesBuilder_ == null) {
-        entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder>(
-                entries_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        entriesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.logging.v2.LogEntry,
+                com.google.logging.v2.LogEntry.Builder,
+                com.google.logging.v2.LogEntryOrBuilder>(
+                entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         entries_ = null;
       }
       return entriesBuilder_;
@@ -933,6 +1009,8 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -947,13 +1025,13 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -962,6 +1040,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -976,15 +1056,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -992,6 +1071,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -1006,18 +1087,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -1032,6 +1117,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1041,6 +1127,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -1055,21 +1143,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1079,12 +1169,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLogEntriesResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLogEntriesResponse) private static final com.google.logging.v2.ListLogEntriesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLogEntriesResponse(); } @@ -1093,27 +1183,27 @@ public static com.google.logging.v2.ListLogEntriesResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLogEntriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogEntriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,6 +1218,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogEntriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java similarity index 78% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java index 6c6cbc8f3..4fd1b1b24 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.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/logging/v2/logging.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLogEntriesResponseOrBuilder extends +public interface ListLogEntriesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLogEntriesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -17,9 +35,10 @@ public interface ListLogEntriesResponseOrBuilder extends
    *
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
-  java.util.List 
-      getEntriesList();
+  java.util.List getEntriesList();
   /**
+   *
+   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -30,6 +49,8 @@ public interface ListLogEntriesResponseOrBuilder extends
    */
   com.google.logging.v2.LogEntry getEntries(int index);
   /**
+   *
+   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -40,6 +61,8 @@ public interface ListLogEntriesResponseOrBuilder extends
    */
   int getEntriesCount();
   /**
+   *
+   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -48,9 +71,10 @@ public interface ListLogEntriesResponseOrBuilder extends
    *
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
-  java.util.List 
-      getEntriesOrBuilderList();
+  java.util.List getEntriesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of log entries.  If `entries` is empty, `nextPageToken` may still be
    * returned, indicating that more entries may exist.  See `nextPageToken` for
@@ -59,10 +83,11 @@ public interface ListLogEntriesResponseOrBuilder extends
    *
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
-  com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
-      int index);
+  com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -77,10 +102,13 @@ com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -95,8 +123,8 @@ com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java index 118ee0d01..74e366b29 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.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/logging/v2/logging_metrics.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to ListLogMetrics.
  * 
* * Protobuf type {@code google.logging.v2.ListLogMetricsRequest} */ -public final class ListLogMetricsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLogMetricsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLogMetricsRequest) ListLogMetricsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLogMetricsRequest.newBuilder() to construct. private ListLogMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLogMetricsRequest() { parent_ = ""; pageToken_ = ""; @@ -27,35 +45,42 @@ private ListLogMetricsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLogMetricsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogMetricsRequest.class, com.google.logging.v2.ListLogMetricsRequest.Builder.class); + com.google.logging.v2.ListLogMetricsRequest.class, + com.google.logging.v2.ListLogMetricsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The name of the project containing the metrics:
    *
    *     "projects/[PROJECT_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 @@ -64,31 +89,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the project containing the metrics:
    *
    *     "projects/[PROJECT_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 { @@ -97,9 +124,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -108,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -116,14 +147,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. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -132,16 +164,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2 [(.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 { @@ -152,6 +183,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -159,6 +192,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -167,6 +201,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +213,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -205,8 +239,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -216,19 +249,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.logging.v2.ListLogMetricsRequest)) { return super.equals(obj); } - com.google.logging.v2.ListLogMetricsRequest other = (com.google.logging.v2.ListLogMetricsRequest) obj; + com.google.logging.v2.ListLogMetricsRequest other = + (com.google.logging.v2.ListLogMetricsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,132 +282,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLogMetricsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLogMetricsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogMetricsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogMetricsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogMetricsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogMetricsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogMetricsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogMetricsRequest 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.logging.v2.ListLogMetricsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLogMetricsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListLogMetricsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLogMetricsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListLogMetricsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListLogMetricsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListLogMetricsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to ListLogMetrics.
    * 
* * Protobuf type {@code google.logging.v2.ListLogMetricsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLogMetricsRequest) com.google.logging.v2.ListLogMetricsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogMetricsRequest.class, com.google.logging.v2.ListLogMetricsRequest.Builder.class); + com.google.logging.v2.ListLogMetricsRequest.class, + com.google.logging.v2.ListLogMetricsRequest.Builder.class); } // Construct using com.google.logging.v2.ListLogMetricsRequest.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(); @@ -388,9 +423,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; } @java.lang.Override @@ -409,8 +444,11 @@ public com.google.logging.v2.ListLogMetricsRequest build() { @java.lang.Override public com.google.logging.v2.ListLogMetricsRequest buildPartial() { - com.google.logging.v2.ListLogMetricsRequest result = new com.google.logging.v2.ListLogMetricsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.ListLogMetricsRequest result = + new com.google.logging.v2.ListLogMetricsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -432,38 +470,39 @@ private void buildPartial0(com.google.logging.v2.ListLogMetricsRequest 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.logging.v2.ListLogMetricsRequest) { - return mergeFrom((com.google.logging.v2.ListLogMetricsRequest)other); + return mergeFrom((com.google.logging.v2.ListLogMetricsRequest) other); } else { super.mergeFrom(other); return this; @@ -511,27 +550,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -541,24 +584,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the project containing the metrics:
      *
      *     "projects/[PROJECT_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; @@ -567,22 +615,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project containing the metrics:
      *
      *     "projects/[PROJECT_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 { @@ -590,32 +641,43 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the project containing the metrics:
      *
      *     "projects/[PROJECT_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. The name of the project containing the metrics:
      *
      *     "projects/[PROJECT_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() { @@ -625,19 +687,25 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The name of the project containing the metrics:
      *
      *     "projects/[PROJECT_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; @@ -647,6 +715,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -655,13 +725,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2 [(.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; @@ -670,6 +740,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -678,15 +750,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.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 { @@ -694,6 +765,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -702,18 +775,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.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_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -722,6 +799,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -731,6 +809,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -739,12 +819,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2 [(.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_ |= 0x00000002; @@ -752,8 +834,10 @@ public Builder setPageTokenBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -761,6 +845,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -768,6 +853,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -775,6 +862,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -786,6 +874,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -793,6 +883,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -801,9 +892,9 @@ public Builder clearPageSize() { 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); } @@ -813,12 +904,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLogMetricsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLogMetricsRequest) private static final com.google.logging.v2.ListLogMetricsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLogMetricsRequest(); } @@ -827,27 +918,27 @@ public static com.google.logging.v2.ListLogMetricsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLogMetricsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogMetricsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -862,6 +953,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogMetricsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java index 8af3bc09d..476c81056 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java @@ -1,38 +1,65 @@ +/* + * 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/logging/v2/logging_metrics.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLogMetricsRequestOrBuilder extends +public interface ListLogMetricsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLogMetricsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the project containing the metrics:
    *
    *     "projects/[PROJECT_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. The name of the project containing the metrics:
    *
    *     "projects/[PROJECT_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. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -41,10 +68,13 @@ public interface ListLogMetricsRequestOrBuilder extends
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -53,12 +83,14 @@ public interface ListLogMetricsRequestOrBuilder extends
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -66,6 +98,7 @@ public interface ListLogMetricsRequestOrBuilder extends
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java index 19fdb5520..6343792fe 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.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/logging/v2/logging_metrics.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * Result returned from ListLogMetrics.
  * 
* * Protobuf type {@code google.logging.v2.ListLogMetricsResponse} */ -public final class ListLogMetricsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLogMetricsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLogMetricsResponse) ListLogMetricsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLogMetricsResponse.newBuilder() to construct. private ListLogMetricsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLogMetricsResponse() { metrics_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListLogMetricsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLogMetricsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogMetricsResponse.class, com.google.logging.v2.ListLogMetricsResponse.Builder.class); + com.google.logging.v2.ListLogMetricsResponse.class, + com.google.logging.v2.ListLogMetricsResponse.Builder.class); } public static final int METRICS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List metrics_; /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -60,6 +82,8 @@ public java.util.List getMetricsList() { return metrics_; } /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -67,11 +91,13 @@ public java.util.List getMetricsList() { * repeated .google.logging.v2.LogMetric metrics = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMetricsOrBuilderList() { return metrics_; } /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -83,6 +109,8 @@ public int getMetricsCount() { return metrics_.size(); } /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -94,6 +122,8 @@ public com.google.logging.v2.LogMetric getMetrics(int index) { return metrics_.get(index); } /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -101,15 +131,17 @@ public com.google.logging.v2.LogMetric getMetrics(int index) { * repeated .google.logging.v2.LogMetric metrics = 1; */ @java.lang.Override - public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder( - int index) { + public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index) { return metrics_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call this
@@ -117,6 +149,7 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,14 +158,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call this
@@ -140,16 +174,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -158,6 +191,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < metrics_.size(); i++) { output.writeMessage(1, metrics_.get(i)); } @@ -187,8 +220,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, metrics_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metrics_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +233,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListLogMetricsResponse)) { return super.equals(obj); } - com.google.logging.v2.ListLogMetricsResponse other = (com.google.logging.v2.ListLogMetricsResponse) obj; + com.google.logging.v2.ListLogMetricsResponse other = + (com.google.logging.v2.ListLogMetricsResponse) obj; - if (!getMetricsList() - .equals(other.getMetricsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,132 +265,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLogMetricsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLogMetricsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogMetricsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogMetricsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogMetricsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogMetricsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogMetricsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogMetricsResponse 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.logging.v2.ListLogMetricsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListLogMetricsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListLogMetricsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLogMetricsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListLogMetricsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListLogMetricsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListLogMetricsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Result returned from ListLogMetrics.
    * 
* * Protobuf type {@code google.logging.v2.ListLogMetricsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLogMetricsResponse) com.google.logging.v2.ListLogMetricsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogMetricsResponse.class, com.google.logging.v2.ListLogMetricsResponse.Builder.class); + com.google.logging.v2.ListLogMetricsResponse.class, + com.google.logging.v2.ListLogMetricsResponse.Builder.class); } // Construct using com.google.logging.v2.ListLogMetricsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; } @java.lang.Override @@ -397,9 +432,12 @@ public com.google.logging.v2.ListLogMetricsResponse build() { @java.lang.Override public com.google.logging.v2.ListLogMetricsResponse buildPartial() { - com.google.logging.v2.ListLogMetricsResponse result = new com.google.logging.v2.ListLogMetricsResponse(this); + com.google.logging.v2.ListLogMetricsResponse result = + new com.google.logging.v2.ListLogMetricsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,38 +465,39 @@ private void buildPartial0(com.google.logging.v2.ListLogMetricsResponse 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.logging.v2.ListLogMetricsResponse) { - return mergeFrom((com.google.logging.v2.ListLogMetricsResponse)other); + return mergeFrom((com.google.logging.v2.ListLogMetricsResponse) other); } else { super.mergeFrom(other); return this; @@ -485,9 +524,10 @@ public Builder mergeFrom(com.google.logging.v2.ListLogMetricsResponse other) { metricsBuilder_ = null; metrics_ = other.metrics_; bitField0_ = (bitField0_ & ~0x00000001); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricsFieldBuilder() : null; + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricsFieldBuilder() + : null; } else { metricsBuilder_.addAllMessages(other.metrics_); } @@ -524,30 +564,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.logging.v2.LogMetric m = - input.readMessage( - com.google.logging.v2.LogMetric.parser(), - extensionRegistry); - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(m); - } else { - metricsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.logging.v2.LogMetric m = + input.readMessage(com.google.logging.v2.LogMetric.parser(), extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +598,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List metrics_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMetricsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { metrics_ = new java.util.ArrayList(metrics_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder> metricsBuilder_; + com.google.logging.v2.LogMetric, + com.google.logging.v2.LogMetric.Builder, + com.google.logging.v2.LogMetricOrBuilder> + metricsBuilder_; /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -586,6 +634,8 @@ public java.util.List getMetricsList() { } } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -600,6 +650,8 @@ public int getMetricsCount() { } } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -614,14 +666,15 @@ public com.google.logging.v2.LogMetric getMetrics(int index) { } } /** + * + * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public Builder setMetrics( - int index, com.google.logging.v2.LogMetric value) { + public Builder setMetrics(int index, com.google.logging.v2.LogMetric value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -635,14 +688,15 @@ public Builder setMetrics( return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public Builder setMetrics( - int index, com.google.logging.v2.LogMetric.Builder builderForValue) { + public Builder setMetrics(int index, com.google.logging.v2.LogMetric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.set(index, builderForValue.build()); @@ -653,6 +707,8 @@ public Builder setMetrics( return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -673,14 +729,15 @@ public Builder addMetrics(com.google.logging.v2.LogMetric value) { return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public Builder addMetrics( - int index, com.google.logging.v2.LogMetric value) { + public Builder addMetrics(int index, com.google.logging.v2.LogMetric value) { if (metricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -694,14 +751,15 @@ public Builder addMetrics( return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public Builder addMetrics( - com.google.logging.v2.LogMetric.Builder builderForValue) { + public Builder addMetrics(com.google.logging.v2.LogMetric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(builderForValue.build()); @@ -712,14 +770,15 @@ public Builder addMetrics( return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public Builder addMetrics( - int index, com.google.logging.v2.LogMetric.Builder builderForValue) { + public Builder addMetrics(int index, com.google.logging.v2.LogMetric.Builder builderForValue) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); metrics_.add(index, builderForValue.build()); @@ -730,6 +789,8 @@ public Builder addMetrics( return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -740,8 +801,7 @@ public Builder addAllMetrics( java.lang.Iterable values) { if (metricsBuilder_ == null) { ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metrics_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); onChanged(); } else { metricsBuilder_.addAllMessages(values); @@ -749,6 +809,8 @@ public Builder addAllMetrics( return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -766,6 +828,8 @@ public Builder clearMetrics() { return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -783,39 +847,44 @@ public Builder removeMetrics(int index) { return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public com.google.logging.v2.LogMetric.Builder getMetricsBuilder( - int index) { + public com.google.logging.v2.LogMetric.Builder getMetricsBuilder(int index) { return getMetricsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder( - int index) { + public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index) { if (metricsBuilder_ == null) { - return metrics_.get(index); } else { + return metrics_.get(index); + } else { return metricsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public java.util.List - getMetricsOrBuilderList() { + public java.util.List + getMetricsOrBuilderList() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilderList(); } else { @@ -823,6 +892,8 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder( } } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -830,42 +901,47 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder( * repeated .google.logging.v2.LogMetric metrics = 1; */ public com.google.logging.v2.LogMetric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder().addBuilder( - com.google.logging.v2.LogMetric.getDefaultInstance()); + return getMetricsFieldBuilder() + .addBuilder(com.google.logging.v2.LogMetric.getDefaultInstance()); } /** + * + * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public com.google.logging.v2.LogMetric.Builder addMetricsBuilder( - int index) { - return getMetricsFieldBuilder().addBuilder( - index, com.google.logging.v2.LogMetric.getDefaultInstance()); + public com.google.logging.v2.LogMetric.Builder addMetricsBuilder(int index) { + return getMetricsFieldBuilder() + .addBuilder(index, com.google.logging.v2.LogMetric.getDefaultInstance()); } /** + * + * *
      * A list of logs-based metrics.
      * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - public java.util.List - getMetricsBuilderList() { + public java.util.List getMetricsBuilderList() { return getMetricsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder> + com.google.logging.v2.LogMetric, + com.google.logging.v2.LogMetric.Builder, + com.google.logging.v2.LogMetricOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { - metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder>( - metrics_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.LogMetric, + com.google.logging.v2.LogMetric.Builder, + com.google.logging.v2.LogMetricOrBuilder>( + metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; @@ -873,6 +949,8 @@ public com.google.logging.v2.LogMetric.Builder addMetricsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call this
@@ -880,13 +958,13 @@ public com.google.logging.v2.LogMetric.Builder addMetricsBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -895,6 +973,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call this
@@ -902,15 +982,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -918,6 +997,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call this
@@ -925,18 +1006,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call this
@@ -944,6 +1029,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -953,6 +1039,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call this
@@ -960,21 +1048,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,12 +1074,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLogMetricsResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLogMetricsResponse) private static final com.google.logging.v2.ListLogMetricsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLogMetricsResponse(); } @@ -998,27 +1088,27 @@ public static com.google.logging.v2.ListLogMetricsResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLogMetricsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogMetricsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1123,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogMetricsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java index 265df919d..339e0058c 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * 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/logging/v2/logging_metrics.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLogMetricsResponseOrBuilder extends +public interface ListLogMetricsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLogMetricsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of logs-based metrics.
    * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - java.util.List - getMetricsList(); + java.util.List getMetricsList(); /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -26,6 +45,8 @@ public interface ListLogMetricsResponseOrBuilder extends */ com.google.logging.v2.LogMetric getMetrics(int index); /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -34,25 +55,29 @@ public interface ListLogMetricsResponseOrBuilder extends */ int getMetricsCount(); /** + * + * *
    * A list of logs-based metrics.
    * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - java.util.List - getMetricsOrBuilderList(); + java.util.List getMetricsOrBuilderList(); /** + * + * *
    * A list of logs-based metrics.
    * 
* * repeated .google.logging.v2.LogMetric metrics = 1; */ - com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder( - int index); + com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index); /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call this
@@ -60,10 +85,13 @@ com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call this
@@ -71,8 +99,8 @@ com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java index 44505c4a3..d904a9024 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.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/logging/v2/logging.proto @@ -5,52 +20,58 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to ListLogs.
  * 
* * Protobuf type {@code google.logging.v2.ListLogsRequest} */ -public final class ListLogsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLogsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLogsRequest) ListLogsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLogsRequest.newBuilder() to construct. private ListLogsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLogsRequest() { parent_ = ""; - resourceNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLogsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogsRequest.class, com.google.logging.v2.ListLogsRequest.Builder.class); + com.google.logging.v2.ListLogsRequest.class, + com.google.logging.v2.ListLogsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The resource name to list logs for:
    *
@@ -60,7 +81,10 @@ protected java.lang.Object newInstance(
    * *  `folders/[FOLDER_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 +93,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name to list logs for:
    *
@@ -86,17 +111,18 @@ public java.lang.String getParent() {
    * *  `folders/[FOLDER_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 { @@ -105,10 +131,13 @@ public java.lang.String getParent() { } public static final int RESOURCE_NAMES_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Optional. List of resource names to list logs for:
    *
@@ -127,14 +156,18 @@ public java.lang.String getParent() {
    * The resource name in the `parent` field is added to this list.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList - getResourceNamesList() { + public com.google.protobuf.ProtocolStringList getResourceNamesList() { return resourceNames_; } /** + * + * *
    * Optional. List of resource names to list logs for:
    *
@@ -153,13 +186,18 @@ public java.lang.String getParent() {
    * The resource name in the `parent` field is added to this list.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** + * + * *
    * Optional. List of resource names to list logs for:
    *
@@ -178,7 +216,10 @@ public int getResourceNamesCount() {
    * The resource name in the `parent` field is added to this list.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -186,6 +227,8 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
    * Optional. List of resource names to list logs for:
    *
@@ -204,18 +247,22 @@ public java.lang.String getResourceNames(int index) {
    * The resource name in the `parent` field is added to this list.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString - getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -223,6 +270,7 @@ public java.lang.String getResourceNames(int index) {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -231,9 +279,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -242,6 +293,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -250,14 +302,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. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -266,16 +319,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 { @@ -284,6 +336,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -295,8 +348,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_); } @@ -322,8 +374,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_); @@ -344,21 +395,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.logging.v2.ListLogsRequest)) { return super.equals(obj); } com.google.logging.v2.ListLogsRequest other = (com.google.logging.v2.ListLogsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getResourceNamesList() - .equals(other.getResourceNamesList())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getResourceNamesList().equals(other.getResourceNamesList())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -385,148 +432,150 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLogsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLogsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListLogsRequest parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.ListLogsRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogsRequest 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.logging.v2.ListLogsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.ListLogsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLogsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListLogsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListLogsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListLogsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to ListLogs.
    * 
* * Protobuf type {@code google.logging.v2.ListLogsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLogsRequest) com.google.logging.v2.ListLogsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogsRequest.class, com.google.logging.v2.ListLogsRequest.Builder.class); + com.google.logging.v2.ListLogsRequest.class, + com.google.logging.v2.ListLogsRequest.Builder.class); } // Construct using com.google.logging.v2.ListLogsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; - resourceNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); pageSize_ = 0; pageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogsRequest_descriptor; } @java.lang.Override @@ -545,8 +594,11 @@ public com.google.logging.v2.ListLogsRequest build() { @java.lang.Override public com.google.logging.v2.ListLogsRequest buildPartial() { - com.google.logging.v2.ListLogsRequest result = new com.google.logging.v2.ListLogsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.ListLogsRequest result = + new com.google.logging.v2.ListLogsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -572,38 +624,39 @@ private void buildPartial0(com.google.logging.v2.ListLogsRequest 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.logging.v2.ListLogsRequest) { - return mergeFrom((com.google.logging.v2.ListLogsRequest)other); + return mergeFrom((com.google.logging.v2.ListLogsRequest) other); } else { super.mergeFrom(other); return this; @@ -661,33 +714,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceNamesIsMutable(); - resourceNames_.add(s); - break; - } // case 66 - 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_ |= 0x00000004; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceNamesIsMutable(); + resourceNames_.add(s); + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -697,10 +755,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name to list logs for:
      *
@@ -710,14 +771,16 @@ public Builder mergeFrom(
      * *  `folders/[FOLDER_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; @@ -726,6 +789,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name to list logs for:
      *
@@ -735,16 +800,17 @@ public java.lang.String getParent() {
      * *  `folders/[FOLDER_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 { @@ -752,6 +818,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name to list logs for:
      *
@@ -761,19 +829,25 @@ public java.lang.String getParent() {
      * *  `folders/[FOLDER_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. The resource name to list logs for:
      *
@@ -783,7 +857,10 @@ public Builder setParent(
      * *  `folders/[FOLDER_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() { @@ -793,6 +870,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource name to list logs for:
      *
@@ -802,13 +881,17 @@ public Builder clearParent() {
      * *  `folders/[FOLDER_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; @@ -818,6 +901,7 @@ public Builder setParentBytes( private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureResourceNamesIsMutable() { if (!resourceNames_.isModifiable()) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); @@ -825,6 +909,8 @@ private void ensureResourceNamesIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Optional. List of resource names to list logs for:
      *
@@ -843,15 +929,19 @@ private void ensureResourceNamesIsMutable() {
      * The resource name in the `parent` field is added to this list.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList - getResourceNamesList() { + public com.google.protobuf.ProtocolStringList getResourceNamesList() { resourceNames_.makeImmutable(); return resourceNames_; } /** + * + * *
      * Optional. List of resource names to list logs for:
      *
@@ -870,13 +960,18 @@ private void ensureResourceNamesIsMutable() {
      * The resource name in the `parent` field is added to this list.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** + * + * *
      * Optional. List of resource names to list logs for:
      *
@@ -895,7 +990,10 @@ public int getResourceNamesCount() {
      * The resource name in the `parent` field is added to this list.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -903,6 +1001,8 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
      * Optional. List of resource names to list logs for:
      *
@@ -921,15 +1021,19 @@ public java.lang.String getResourceNames(int index) {
      * The resource name in the `parent` field is added to this list.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString - getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } /** + * + * *
      * Optional. List of resource names to list logs for:
      *
@@ -948,14 +1052,18 @@ public java.lang.String getResourceNames(int index) {
      * The resource name in the `parent` field is added to this list.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The resourceNames to set. * @return This builder for chaining. */ - public Builder setResourceNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceNamesIsMutable(); resourceNames_.set(index, value); bitField0_ |= 0x00000002; @@ -963,6 +1071,8 @@ public Builder setResourceNames( return this; } /** + * + * *
      * Optional. List of resource names to list logs for:
      *
@@ -981,13 +1091,17 @@ public Builder setResourceNames(
      * The resource name in the `parent` field is added to this list.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceNamesIsMutable(); resourceNames_.add(value); bitField0_ |= 0x00000002; @@ -995,6 +1109,8 @@ public Builder addResourceNames( return this; } /** + * + * *
      * Optional. List of resource names to list logs for:
      *
@@ -1013,20 +1129,23 @@ public Builder addResourceNames(
      * The resource name in the `parent` field is added to this list.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param values The resourceNames to add. * @return This builder for chaining. */ - public Builder addAllResourceNames( - java.lang.Iterable values) { + public Builder addAllResourceNames(java.lang.Iterable values) { ensureResourceNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceNames_); bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. List of resource names to list logs for:
      *
@@ -1045,17 +1164,22 @@ public Builder addAllResourceNames(
      * The resource name in the `parent` field is added to this list.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearResourceNames() { - resourceNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; + resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } /** + * + * *
      * Optional. List of resource names to list logs for:
      *
@@ -1074,13 +1198,17 @@ public Builder clearResourceNames() {
      * The resource name in the `parent` field is added to this list.
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureResourceNamesIsMutable(); resourceNames_.add(value); @@ -1089,8 +1217,10 @@ public Builder addResourceNamesBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -1098,6 +1228,7 @@ public Builder addResourceNamesBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1105,6 +1236,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -1112,6 +1245,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1123,6 +1257,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -1130,6 +1266,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1141,6 +1278,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -1149,13 +1288,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; @@ -1164,6 +1303,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -1172,15 +1313,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 { @@ -1188,6 +1328,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -1196,18 +1338,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_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -1216,6 +1362,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1225,6 +1372,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -1233,21 +1382,23 @@ 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_ |= 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); } @@ -1257,12 +1408,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLogsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLogsRequest) private static final com.google.logging.v2.ListLogsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLogsRequest(); } @@ -1271,27 +1422,27 @@ public static com.google.logging.v2.ListLogsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLogsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +1457,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java index b2ad70664..e58327959 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.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/logging/v2/logging.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLogsRequestOrBuilder extends +public interface ListLogsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLogsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name to list logs for:
    *
@@ -18,11 +36,16 @@ public interface ListLogsRequestOrBuilder extends
    * *  `folders/[FOLDER_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. The resource name to list logs for:
    *
@@ -32,13 +55,17 @@ public interface ListLogsRequestOrBuilder extends
    * *  `folders/[FOLDER_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. List of resource names to list logs for:
    *
@@ -57,12 +84,16 @@ public interface ListLogsRequestOrBuilder extends
    * The resource name in the `parent` field is added to this list.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the resourceNames. */ - java.util.List - getResourceNamesList(); + java.util.List getResourceNamesList(); /** + * + * *
    * Optional. List of resource names to list logs for:
    *
@@ -81,11 +112,16 @@ public interface ListLogsRequestOrBuilder extends
    * The resource name in the `parent` field is added to this list.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The count of resourceNames. */ int getResourceNamesCount(); /** + * + * *
    * Optional. List of resource names to list logs for:
    *
@@ -104,12 +140,17 @@ public interface ListLogsRequestOrBuilder extends
    * The resource name in the `parent` field is added to this list.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The resourceNames at the given index. */ java.lang.String getResourceNames(int index); /** + * + * *
    * Optional. List of resource names to list logs for:
    *
@@ -128,14 +169,18 @@ public interface ListLogsRequestOrBuilder extends
    * The resource name in the `parent` field is added to this list.
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - com.google.protobuf.ByteString - getResourceNamesBytes(int index); + com.google.protobuf.ByteString getResourceNamesBytes(int index); /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -143,11 +188,14 @@ public interface ListLogsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -156,10 +204,13 @@ public interface ListLogsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -168,8 +219,8 @@ public interface ListLogsRequestOrBuilder 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(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java index d63aaeb6c..65a30e596 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.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/logging/v2/logging.proto @@ -5,52 +20,58 @@ package com.google.logging.v2; /** + * + * *
  * Result returned from ListLogs.
  * 
* * Protobuf type {@code google.logging.v2.ListLogsResponse} */ -public final class ListLogsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListLogsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListLogsResponse) ListLogsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListLogsResponse.newBuilder() to construct. private ListLogsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListLogsResponse() { - logNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + logNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLogsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogsResponse.class, com.google.logging.v2.ListLogsResponse.Builder.class); + com.google.logging.v2.ListLogsResponse.class, + com.google.logging.v2.ListLogsResponse.Builder.class); } public static final int LOG_NAMES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList logNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -58,13 +79,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string log_names = 3; + * * @return A list containing the logNames. */ - public com.google.protobuf.ProtocolStringList - getLogNamesList() { + public com.google.protobuf.ProtocolStringList getLogNamesList() { return logNames_; } /** + * + * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -72,12 +95,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string log_names = 3; + * * @return The count of logNames. */ public int getLogNamesCount() { return logNames_.size(); } /** + * + * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -85,6 +111,7 @@ public int getLogNamesCount() {
    * 
* * repeated string log_names = 3; + * * @param index The index of the element to return. * @return The logNames at the given index. */ @@ -92,6 +119,8 @@ public java.lang.String getLogNames(int index) { return logNames_.get(index); } /** + * + * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -99,18 +128,21 @@ public java.lang.String getLogNames(int index) {
    * 
* * repeated string log_names = 3; + * * @param index The index of the value to return. * @return The bytes of the logNames at the given index. */ - public com.google.protobuf.ByteString - getLogNamesBytes(int index) { + public com.google.protobuf.ByteString getLogNamesBytes(int index) { return logNames_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -118,6 +150,7 @@ public java.lang.String getLogNames(int index) {
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -126,14 +159,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -141,16 +175,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -159,6 +192,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } @@ -206,17 +239,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.logging.v2.ListLogsResponse)) { return super.equals(obj); } com.google.logging.v2.ListLogsResponse other = (com.google.logging.v2.ListLogsResponse) obj; - if (!getLogNamesList() - .equals(other.getLogNamesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getLogNamesList().equals(other.getLogNamesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -239,146 +270,149 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListLogsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListLogsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListLogsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListLogsResponse 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.logging.v2.ListLogsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.ListLogsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListLogsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListLogsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListLogsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListLogsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Result returned from ListLogs.
    * 
* * Protobuf type {@code google.logging.v2.ListLogsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLogsResponse) com.google.logging.v2.ListLogsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListLogsResponse.class, com.google.logging.v2.ListLogsResponse.Builder.class); + com.google.logging.v2.ListLogsResponse.class, + com.google.logging.v2.ListLogsResponse.Builder.class); } // Construct using com.google.logging.v2.ListLogsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - logNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + logNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); nextPageToken_ = ""; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListLogsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListLogsResponse_descriptor; } @java.lang.Override @@ -397,8 +431,11 @@ public com.google.logging.v2.ListLogsResponse build() { @java.lang.Override public com.google.logging.v2.ListLogsResponse buildPartial() { - com.google.logging.v2.ListLogsResponse result = new com.google.logging.v2.ListLogsResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.ListLogsResponse result = + new com.google.logging.v2.ListLogsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -418,38 +455,39 @@ private void buildPartial0(com.google.logging.v2.ListLogsResponse 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.logging.v2.ListLogsResponse) { - return mergeFrom((com.google.logging.v2.ListLogsResponse)other); + return mergeFrom((com.google.logging.v2.ListLogsResponse) other); } else { super.mergeFrom(other); return this; @@ -499,23 +537,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureLogNamesIsMutable(); - logNames_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLogNamesIsMutable(); + logNames_.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) { @@ -525,10 +566,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList logNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureLogNamesIsMutable() { if (!logNames_.isModifiable()) { logNames_ = new com.google.protobuf.LazyStringArrayList(logNames_); @@ -536,6 +579,8 @@ private void ensureLogNamesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -543,14 +588,16 @@ private void ensureLogNamesIsMutable() {
      * 
* * repeated string log_names = 3; + * * @return A list containing the logNames. */ - public com.google.protobuf.ProtocolStringList - getLogNamesList() { + public com.google.protobuf.ProtocolStringList getLogNamesList() { logNames_.makeImmutable(); return logNames_; } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -558,12 +605,15 @@ private void ensureLogNamesIsMutable() {
      * 
* * repeated string log_names = 3; + * * @return The count of logNames. */ public int getLogNamesCount() { return logNames_.size(); } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -571,6 +621,7 @@ public int getLogNamesCount() {
      * 
* * repeated string log_names = 3; + * * @param index The index of the element to return. * @return The logNames at the given index. */ @@ -578,6 +629,8 @@ public java.lang.String getLogNames(int index) { return logNames_.get(index); } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -585,14 +638,16 @@ public java.lang.String getLogNames(int index) {
      * 
* * repeated string log_names = 3; + * * @param index The index of the value to return. * @return The bytes of the logNames at the given index. */ - public com.google.protobuf.ByteString - getLogNamesBytes(int index) { + public com.google.protobuf.ByteString getLogNamesBytes(int index) { return logNames_.getByteString(index); } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -600,13 +655,15 @@ public java.lang.String getLogNames(int index) {
      * 
* * repeated string log_names = 3; + * * @param index The index to set the value at. * @param value The logNames to set. * @return This builder for chaining. */ - public Builder setLogNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLogNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLogNamesIsMutable(); logNames_.set(index, value); bitField0_ |= 0x00000001; @@ -614,6 +671,8 @@ public Builder setLogNames( return this; } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -621,12 +680,14 @@ public Builder setLogNames(
      * 
* * repeated string log_names = 3; + * * @param value The logNames to add. * @return This builder for chaining. */ - public Builder addLogNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLogNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureLogNamesIsMutable(); logNames_.add(value); bitField0_ |= 0x00000001; @@ -634,6 +695,8 @@ public Builder addLogNames( return this; } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -641,19 +704,20 @@ public Builder addLogNames(
      * 
* * repeated string log_names = 3; + * * @param values The logNames to add. * @return This builder for chaining. */ - public Builder addAllLogNames( - java.lang.Iterable values) { + public Builder addAllLogNames(java.lang.Iterable values) { ensureLogNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, logNames_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -661,16 +725,19 @@ public Builder addAllLogNames(
      * 
* * repeated string log_names = 3; + * * @return This builder for chaining. */ public Builder clearLogNames() { - logNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + logNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -678,12 +745,14 @@ public Builder clearLogNames() {
      * 
* * repeated string log_names = 3; + * * @param value The bytes of the logNames to add. * @return This builder for chaining. */ - public Builder addLogNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addLogNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureLogNamesIsMutable(); logNames_.add(value); @@ -694,6 +763,8 @@ public Builder addLogNamesBytes( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -701,13 +772,13 @@ public Builder addLogNamesBytes(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -716,6 +787,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -723,15 +796,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -739,6 +811,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -746,18 +820,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -765,6 +843,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -774,6 +853,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -781,21 +862,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -805,12 +888,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListLogsResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListLogsResponse) private static final com.google.logging.v2.ListLogsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListLogsResponse(); } @@ -819,27 +902,27 @@ public static com.google.logging.v2.ListLogsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLogsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLogsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -854,6 +937,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java index a8c4d6010..18c2dabef 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.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/logging/v2/logging.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListLogsResponseOrBuilder extends +public interface ListLogsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLogsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -16,11 +34,13 @@ public interface ListLogsResponseOrBuilder extends
    * 
* * repeated string log_names = 3; + * * @return A list containing the logNames. */ - java.util.List - getLogNamesList(); + java.util.List getLogNamesList(); /** + * + * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -28,10 +48,13 @@ public interface ListLogsResponseOrBuilder extends
    * 
* * repeated string log_names = 3; + * * @return The count of logNames. */ int getLogNamesCount(); /** + * + * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -39,11 +62,14 @@ public interface ListLogsResponseOrBuilder extends
    * 
* * repeated string log_names = 3; + * * @param index The index of the element to return. * @return The logNames at the given index. */ java.lang.String getLogNames(int index); /** + * + * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -51,13 +77,15 @@ public interface ListLogsResponseOrBuilder extends
    * 
* * repeated string log_names = 3; + * * @param index The index of the value to return. * @return The bytes of the logNames at the given index. */ - com.google.protobuf.ByteString - getLogNamesBytes(int index); + com.google.protobuf.ByteString getLogNamesBytes(int index); /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -65,10 +93,13 @@ public interface ListLogsResponseOrBuilder extends
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -76,8 +107,8 @@ public interface ListLogsResponseOrBuilder extends
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java similarity index 68% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java index 13475eec8..711a01277 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.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/logging/v2/logging.proto @@ -5,48 +20,56 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to ListMonitoredResourceDescriptors
  * 
* * Protobuf type {@code google.logging.v2.ListMonitoredResourceDescriptorsRequest} */ -public final class ListMonitoredResourceDescriptorsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMonitoredResourceDescriptorsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListMonitoredResourceDescriptorsRequest) ListMonitoredResourceDescriptorsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMonitoredResourceDescriptorsRequest.newBuilder() to construct. - private ListMonitoredResourceDescriptorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListMonitoredResourceDescriptorsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMonitoredResourceDescriptorsRequest() { pageToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMonitoredResourceDescriptorsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.class, com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.Builder.class); + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.class, + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.Builder.class); } public static final int PAGE_SIZE_FIELD_NUMBER = 1; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -54,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -62,9 +86,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -73,6 +100,7 @@ public int getPageSize() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -81,14 +109,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. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -97,16 +126,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2 [(.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 { @@ -115,6 +143,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,8 +155,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -144,8 +172,7 @@ public int getSerializedSize() { size = 0; if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); @@ -158,17 +185,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListMonitoredResourceDescriptorsRequest)) { return super.equals(obj); } - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest other = (com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) obj; + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest other = + (com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) obj; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -190,131 +216,136 @@ public int hashCode() { } public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListMonitoredResourceDescriptorsRequest prototype) { + + public static Builder newBuilder( + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to ListMonitoredResourceDescriptors
    * 
* * Protobuf type {@code google.logging.v2.ListMonitoredResourceDescriptorsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListMonitoredResourceDescriptorsRequest) com.google.logging.v2.ListMonitoredResourceDescriptorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.class, com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.Builder.class); + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.class, + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.Builder.class); } // Construct using com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -325,13 +356,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; } @java.lang.Override - public com.google.logging.v2.ListMonitoredResourceDescriptorsRequest getDefaultInstanceForType() { + public com.google.logging.v2.ListMonitoredResourceDescriptorsRequest + getDefaultInstanceForType() { return com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.getDefaultInstance(); } @@ -346,13 +378,17 @@ public com.google.logging.v2.ListMonitoredResourceDescriptorsRequest build() { @java.lang.Override public com.google.logging.v2.ListMonitoredResourceDescriptorsRequest buildPartial() { - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest result = new com.google.logging.v2.ListMonitoredResourceDescriptorsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest result = + new com.google.logging.v2.ListMonitoredResourceDescriptorsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.logging.v2.ListMonitoredResourceDescriptorsRequest result) { + private void buildPartial0( + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.pageSize_ = pageSize_; @@ -366,38 +402,39 @@ private void buildPartial0(com.google.logging.v2.ListMonitoredResourceDescriptor public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.logging.v2.ListMonitoredResourceDescriptorsRequest) { - return mergeFrom((com.google.logging.v2.ListMonitoredResourceDescriptorsRequest)other); + return mergeFrom((com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) other); } else { super.mergeFrom(other); return this; @@ -405,7 +442,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.logging.v2.ListMonitoredResourceDescriptorsRequest other) { - if (other == com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.getDefaultInstance()) return this; + if (other + == com.google.logging.v2.ListMonitoredResourceDescriptorsRequest.getDefaultInstance()) + return this; if (other.getPageSize() != 0) { setPageSize(other.getPageSize()); } @@ -440,22 +479,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + pageToken_ = 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) { @@ -465,10 +507,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -476,6 +521,7 @@ public Builder mergeFrom(
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -483,6 +529,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -490,6 +538,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -501,6 +550,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -508,6 +559,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -519,6 +571,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -527,13 +581,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 2 [(.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; @@ -542,6 +596,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -550,15 +606,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.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 { @@ -566,6 +621,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -574,18 +631,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.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_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -594,6 +655,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -603,6 +665,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -611,21 +675,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2 [(.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_ |= 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); } @@ -635,12 +701,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListMonitoredResourceDescriptorsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListMonitoredResourceDescriptorsRequest) - private static final com.google.logging.v2.ListMonitoredResourceDescriptorsRequest DEFAULT_INSTANCE; + private static final com.google.logging.v2.ListMonitoredResourceDescriptorsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListMonitoredResourceDescriptorsRequest(); } @@ -649,27 +716,27 @@ public static com.google.logging.v2.ListMonitoredResourceDescriptorsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMonitoredResourceDescriptorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMonitoredResourceDescriptorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -684,6 +751,4 @@ public com.google.protobuf.Parser getPa public com.google.logging.v2.ListMonitoredResourceDescriptorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java index c60d591d3..3adacd36c 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.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/logging/v2/logging.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListMonitoredResourceDescriptorsRequestOrBuilder extends +public interface ListMonitoredResourceDescriptorsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListMonitoredResourceDescriptorsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -16,11 +34,14 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder extends
    * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -29,10 +50,13 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder extends
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -41,8 +65,8 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder extends
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java index 46a7bdd2e..17b6c4e0e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.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/logging/v2/logging.proto @@ -5,21 +20,26 @@ package com.google.logging.v2; /** + * + * *
  * Result returned from ListMonitoredResourceDescriptors.
  * 
* * Protobuf type {@code google.logging.v2.ListMonitoredResourceDescriptorsResponse} */ -public final class ListMonitoredResourceDescriptorsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMonitoredResourceDescriptorsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListMonitoredResourceDescriptorsResponse) ListMonitoredResourceDescriptorsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMonitoredResourceDescriptorsResponse.newBuilder() to construct. - private ListMonitoredResourceDescriptorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListMonitoredResourceDescriptorsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMonitoredResourceDescriptorsResponse() { resourceDescriptors_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +47,32 @@ private ListMonitoredResourceDescriptorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMonitoredResourceDescriptorsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.class, com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.Builder.class); + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.class, + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.Builder.class); } public static final int RESOURCE_DESCRIPTORS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List resourceDescriptors_; /** + * + * *
    * A list of resource descriptors.
    * 
@@ -60,6 +84,8 @@ public java.util.List getResourceDes return resourceDescriptors_; } /** + * + * *
    * A list of resource descriptors.
    * 
@@ -67,11 +93,13 @@ public java.util.List getResourceDes * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourceDescriptorsOrBuilderList() { return resourceDescriptors_; } /** + * + * *
    * A list of resource descriptors.
    * 
@@ -83,6 +111,8 @@ public int getResourceDescriptorsCount() { return resourceDescriptors_.size(); } /** + * + * *
    * A list of resource descriptors.
    * 
@@ -94,6 +124,8 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind return resourceDescriptors_.get(index); } /** + * + * *
    * A list of resource descriptors.
    * 
@@ -107,9 +139,12 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -117,6 +152,7 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,14 +161,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -140,16 +177,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -158,6 +194,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < resourceDescriptors_.size(); i++) { output.writeMessage(1, resourceDescriptors_.get(i)); } @@ -187,8 +223,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resourceDescriptors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, resourceDescriptors_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, resourceDescriptors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +237,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListMonitoredResourceDescriptorsResponse)) { return super.equals(obj); } - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse other = (com.google.logging.v2.ListMonitoredResourceDescriptorsResponse) obj; + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse other = + (com.google.logging.v2.ListMonitoredResourceDescriptorsResponse) obj; - if (!getResourceDescriptorsList() - .equals(other.getResourceDescriptorsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getResourceDescriptorsList().equals(other.getResourceDescriptorsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,131 +270,136 @@ public int hashCode() { } public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.ListMonitoredResourceDescriptorsResponse prototype) { + + public static Builder newBuilder( + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Result returned from ListMonitoredResourceDescriptors.
    * 
* * Protobuf type {@code google.logging.v2.ListMonitoredResourceDescriptorsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListMonitoredResourceDescriptorsResponse) com.google.logging.v2.ListMonitoredResourceDescriptorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.class, com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.Builder.class); + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.class, + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.Builder.class); } // Construct using com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,13 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; } @java.lang.Override - public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse getDefaultInstanceForType() { + public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse + getDefaultInstanceForType() { return com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.getDefaultInstance(); } @@ -397,14 +438,18 @@ public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse build() { @java.lang.Override public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse buildPartial() { - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse result = new com.google.logging.v2.ListMonitoredResourceDescriptorsResponse(this); + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse result = + new com.google.logging.v2.ListMonitoredResourceDescriptorsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.logging.v2.ListMonitoredResourceDescriptorsResponse result) { + private void buildPartialRepeatedFields( + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse result) { if (resourceDescriptorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { resourceDescriptors_ = java.util.Collections.unmodifiableList(resourceDescriptors_); @@ -416,7 +461,8 @@ private void buildPartialRepeatedFields(com.google.logging.v2.ListMonitoredResou } } - private void buildPartial0(com.google.logging.v2.ListMonitoredResourceDescriptorsResponse result) { + private void buildPartial0( + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -427,38 +473,39 @@ private void buildPartial0(com.google.logging.v2.ListMonitoredResourceDescriptor public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.logging.v2.ListMonitoredResourceDescriptorsResponse) { - return mergeFrom((com.google.logging.v2.ListMonitoredResourceDescriptorsResponse)other); + return mergeFrom((com.google.logging.v2.ListMonitoredResourceDescriptorsResponse) other); } else { super.mergeFrom(other); return this; @@ -466,7 +513,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.logging.v2.ListMonitoredResourceDescriptorsResponse other) { - if (other == com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.getDefaultInstance()) return this; + if (other + == com.google.logging.v2.ListMonitoredResourceDescriptorsResponse.getDefaultInstance()) + return this; if (resourceDescriptorsBuilder_ == null) { if (!other.resourceDescriptors_.isEmpty()) { if (resourceDescriptors_.isEmpty()) { @@ -485,9 +534,10 @@ public Builder mergeFrom(com.google.logging.v2.ListMonitoredResourceDescriptorsR resourceDescriptorsBuilder_ = null; resourceDescriptors_ = other.resourceDescriptors_; bitField0_ = (bitField0_ & ~0x00000001); - resourceDescriptorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResourceDescriptorsFieldBuilder() : null; + resourceDescriptorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourceDescriptorsFieldBuilder() + : null; } else { resourceDescriptorsBuilder_.addAllMessages(other.resourceDescriptors_); } @@ -524,30 +574,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.api.MonitoredResourceDescriptor m = - input.readMessage( - com.google.api.MonitoredResourceDescriptor.parser(), - extensionRegistry); - if (resourceDescriptorsBuilder_ == null) { - ensureResourceDescriptorsIsMutable(); - resourceDescriptors_.add(m); - } else { - resourceDescriptorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.api.MonitoredResourceDescriptor m = + input.readMessage( + com.google.api.MonitoredResourceDescriptor.parser(), extensionRegistry); + if (resourceDescriptorsBuilder_ == null) { + ensureResourceDescriptorsIsMutable(); + resourceDescriptors_.add(m); + } else { + resourceDescriptorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +609,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List resourceDescriptors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResourceDescriptorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resourceDescriptors_ = new java.util.ArrayList(resourceDescriptors_); + resourceDescriptors_ = + new java.util.ArrayList( + resourceDescriptors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder> resourceDescriptorsBuilder_; + com.google.api.MonitoredResourceDescriptor, + com.google.api.MonitoredResourceDescriptor.Builder, + com.google.api.MonitoredResourceDescriptorOrBuilder> + resourceDescriptorsBuilder_; /** + * + * *
      * A list of resource descriptors.
      * 
@@ -586,6 +647,8 @@ public java.util.List getResourceDes } } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -600,6 +663,8 @@ public int getResourceDescriptorsCount() { } } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -614,6 +679,8 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind } } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -635,6 +702,8 @@ public Builder setResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -653,6 +722,8 @@ public Builder setResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -673,6 +744,8 @@ public Builder addResourceDescriptors(com.google.api.MonitoredResourceDescriptor return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -694,6 +767,8 @@ public Builder addResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -712,6 +787,8 @@ public Builder addResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -730,6 +807,8 @@ public Builder addResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -740,8 +819,7 @@ public Builder addAllResourceDescriptors( java.lang.Iterable values) { if (resourceDescriptorsBuilder_ == null) { ensureResourceDescriptorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceDescriptors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceDescriptors_); onChanged(); } else { resourceDescriptorsBuilder_.addAllMessages(values); @@ -749,6 +827,8 @@ public Builder addAllResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -766,6 +846,8 @@ public Builder clearResourceDescriptors() { return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -783,6 +865,8 @@ public Builder removeResourceDescriptors(int index) { return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -794,6 +878,8 @@ public com.google.api.MonitoredResourceDescriptor.Builder getResourceDescriptors return getResourceDescriptorsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -803,19 +889,22 @@ public com.google.api.MonitoredResourceDescriptor.Builder getResourceDescriptors public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuilder( int index) { if (resourceDescriptorsBuilder_ == null) { - return resourceDescriptors_.get(index); } else { + return resourceDescriptors_.get(index); + } else { return resourceDescriptorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of resource descriptors.
      * 
* * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ - public java.util.List - getResourceDescriptorsOrBuilderList() { + public java.util.List + getResourceDescriptorsOrBuilderList() { if (resourceDescriptorsBuilder_ != null) { return resourceDescriptorsBuilder_.getMessageOrBuilderList(); } else { @@ -823,6 +912,8 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor } } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -830,10 +921,12 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptorsBuilder() { - return getResourceDescriptorsFieldBuilder().addBuilder( - com.google.api.MonitoredResourceDescriptor.getDefaultInstance()); + return getResourceDescriptorsFieldBuilder() + .addBuilder(com.google.api.MonitoredResourceDescriptor.getDefaultInstance()); } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -842,26 +935,34 @@ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptors */ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptorsBuilder( int index) { - return getResourceDescriptorsFieldBuilder().addBuilder( - index, com.google.api.MonitoredResourceDescriptor.getDefaultInstance()); + return getResourceDescriptorsFieldBuilder() + .addBuilder(index, com.google.api.MonitoredResourceDescriptor.getDefaultInstance()); } /** + * + * *
      * A list of resource descriptors.
      * 
* * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ - public java.util.List - getResourceDescriptorsBuilderList() { + public java.util.List + getResourceDescriptorsBuilderList() { return getResourceDescriptorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder> + com.google.api.MonitoredResourceDescriptor, + com.google.api.MonitoredResourceDescriptor.Builder, + com.google.api.MonitoredResourceDescriptorOrBuilder> getResourceDescriptorsFieldBuilder() { if (resourceDescriptorsBuilder_ == null) { - resourceDescriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder>( + resourceDescriptorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.api.MonitoredResourceDescriptor, + com.google.api.MonitoredResourceDescriptor.Builder, + com.google.api.MonitoredResourceDescriptorOrBuilder>( resourceDescriptors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -873,6 +974,8 @@ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptors private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -880,13 +983,13 @@ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptors
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -895,6 +998,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -902,15 +1007,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -918,6 +1022,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -925,18 +1031,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -944,6 +1054,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -953,6 +1064,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -960,21 +1073,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,41 +1099,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListMonitoredResourceDescriptorsResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListMonitoredResourceDescriptorsResponse) - private static final com.google.logging.v2.ListMonitoredResourceDescriptorsResponse DEFAULT_INSTANCE; + private static final com.google.logging.v2.ListMonitoredResourceDescriptorsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListMonitoredResourceDescriptorsResponse(); } - public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse getDefaultInstance() { + public static com.google.logging.v2.ListMonitoredResourceDescriptorsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMonitoredResourceDescriptorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMonitoredResourceDescriptorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,9 +1147,8 @@ public com.google.protobuf.Parser getP } @java.lang.Override - public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse getDefaultInstanceForType() { + public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java index 4c80ba325..3ff85d3c0 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * 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/logging/v2/logging.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListMonitoredResourceDescriptorsResponseOrBuilder extends +public interface ListMonitoredResourceDescriptorsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListMonitoredResourceDescriptorsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of resource descriptors.
    * 
* * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ - java.util.List - getResourceDescriptorsList(); + java.util.List getResourceDescriptorsList(); /** + * + * *
    * A list of resource descriptors.
    * 
@@ -26,6 +45,8 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder extends */ com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int index); /** + * + * *
    * A list of resource descriptors.
    * 
@@ -34,25 +55,30 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder extends */ int getResourceDescriptorsCount(); /** + * + * *
    * A list of resource descriptors.
    * 
* * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ - java.util.List + java.util.List getResourceDescriptorsOrBuilderList(); /** + * + * *
    * A list of resource descriptors.
    * 
* * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ - com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuilder( - int index); + com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuilder(int index); /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -60,10 +86,13 @@ com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuil
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -71,8 +100,8 @@ com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptorsOrBuil
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java index 68d143c96..20fc99143 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `ListSinks`.
  * 
* * Protobuf type {@code google.logging.v2.ListSinksRequest} */ -public final class ListSinksRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSinksRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListSinksRequest) ListSinksRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSinksRequest.newBuilder() to construct. private ListSinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSinksRequest() { parent_ = ""; pageToken_ = ""; @@ -27,28 +45,32 @@ private ListSinksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSinksRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListSinksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListSinksRequest.class, com.google.logging.v2.ListSinksRequest.Builder.class); + com.google.logging.v2.ListSinksRequest.class, + com.google.logging.v2.ListSinksRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource whose sinks are to be listed:
    *
@@ -58,7 +80,10 @@ protected java.lang.Object newInstance(
    *     "folders/[FOLDER_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 @@ -67,14 +92,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource whose sinks are to be listed:
    *
@@ -84,17 +110,18 @@ public java.lang.String getParent() {
    *     "folders/[FOLDER_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 { @@ -103,9 +130,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -114,6 +144,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -122,14 +153,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. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -138,16 +170,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2 [(.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 { @@ -158,6 +189,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -165,6 +198,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -173,6 +207,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,8 +219,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -211,8 +245,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,19 +255,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListSinksRequest)) { return super.equals(obj); } com.google.logging.v2.ListSinksRequest other = (com.google.logging.v2.ListSinksRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -257,132 +287,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListSinksRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListSinksRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListSinksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListSinksRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListSinksRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListSinksRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListSinksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListSinksRequest 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.logging.v2.ListSinksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.ListSinksRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListSinksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListSinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListSinksRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListSinksRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `ListSinks`.
    * 
* * Protobuf type {@code google.logging.v2.ListSinksRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListSinksRequest) com.google.logging.v2.ListSinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListSinksRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListSinksRequest.class, com.google.logging.v2.ListSinksRequest.Builder.class); + com.google.logging.v2.ListSinksRequest.class, + com.google.logging.v2.ListSinksRequest.Builder.class); } // Construct using com.google.logging.v2.ListSinksRequest.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(); @@ -394,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListSinksRequest_descriptor; } @java.lang.Override @@ -415,8 +449,11 @@ public com.google.logging.v2.ListSinksRequest build() { @java.lang.Override public com.google.logging.v2.ListSinksRequest buildPartial() { - com.google.logging.v2.ListSinksRequest result = new com.google.logging.v2.ListSinksRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.ListSinksRequest result = + new com.google.logging.v2.ListSinksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -438,38 +475,39 @@ private void buildPartial0(com.google.logging.v2.ListSinksRequest 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.logging.v2.ListSinksRequest) { - return mergeFrom((com.google.logging.v2.ListSinksRequest)other); + return mergeFrom((com.google.logging.v2.ListSinksRequest) other); } else { super.mergeFrom(other); return this; @@ -517,27 +555,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -547,10 +589,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -560,14 +605,16 @@ public Builder mergeFrom(
      *     "folders/[FOLDER_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; @@ -576,6 +623,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -585,16 +634,17 @@ public java.lang.String getParent() {
      *     "folders/[FOLDER_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 { @@ -602,6 +652,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -611,19 +663,25 @@ public java.lang.String getParent() {
      *     "folders/[FOLDER_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. The parent resource whose sinks are to be listed:
      *
@@ -633,7 +691,10 @@ public Builder setParent(
      *     "folders/[FOLDER_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() { @@ -643,6 +704,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -652,13 +715,17 @@ public Builder clearParent() {
      *     "folders/[FOLDER_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; @@ -668,6 +735,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -676,13 +745,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2 [(.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; @@ -691,6 +760,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -699,15 +770,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.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 { @@ -715,6 +785,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -723,18 +795,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.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_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -743,6 +819,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -752,6 +829,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -760,12 +839,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2 [(.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_ |= 0x00000002; @@ -773,8 +854,10 @@ public Builder setPageTokenBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -782,6 +865,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -789,6 +873,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -796,6 +882,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -807,6 +894,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -814,6 +903,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -822,9 +912,9 @@ public Builder clearPageSize() { 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); } @@ -834,12 +924,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListSinksRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListSinksRequest) private static final com.google.logging.v2.ListSinksRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListSinksRequest(); } @@ -848,27 +938,27 @@ public static com.google.logging.v2.ListSinksRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.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 +973,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListSinksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java index 14944f244..2099e36af 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListSinksRequestOrBuilder extends +public interface ListSinksRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListSinksRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource whose sinks are to be listed:
    *
@@ -18,11 +36,16 @@ public interface ListSinksRequestOrBuilder extends
    *     "folders/[FOLDER_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. The parent resource whose sinks are to be listed:
    *
@@ -32,13 +55,17 @@ public interface ListSinksRequestOrBuilder extends
    *     "folders/[FOLDER_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. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -47,10 +74,13 @@ public interface ListSinksRequestOrBuilder extends
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -59,12 +89,14 @@ public interface ListSinksRequestOrBuilder extends
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -72,6 +104,7 @@ public interface ListSinksRequestOrBuilder extends
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java index 7066d6f60..f54541057 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * Result returned from `ListSinks`.
  * 
* * Protobuf type {@code google.logging.v2.ListSinksResponse} */ -public final class ListSinksResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSinksResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListSinksResponse) ListSinksResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSinksResponse.newBuilder() to construct. private ListSinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSinksResponse() { sinks_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListSinksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSinksResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListSinksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListSinksResponse.class, com.google.logging.v2.ListSinksResponse.Builder.class); + com.google.logging.v2.ListSinksResponse.class, + com.google.logging.v2.ListSinksResponse.Builder.class); } public static final int SINKS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List sinks_; /** + * + * *
    * A list of sinks.
    * 
@@ -60,6 +82,8 @@ public java.util.List getSinksList() { return sinks_; } /** + * + * *
    * A list of sinks.
    * 
@@ -67,11 +91,12 @@ public java.util.List getSinksList() { * repeated .google.logging.v2.LogSink sinks = 1; */ @java.lang.Override - public java.util.List - getSinksOrBuilderList() { + public java.util.List getSinksOrBuilderList() { return sinks_; } /** + * + * *
    * A list of sinks.
    * 
@@ -83,6 +108,8 @@ public int getSinksCount() { return sinks_.size(); } /** + * + * *
    * A list of sinks.
    * 
@@ -94,6 +121,8 @@ public com.google.logging.v2.LogSink getSinks(int index) { return sinks_.get(index); } /** + * + * *
    * A list of sinks.
    * 
@@ -101,15 +130,17 @@ public com.google.logging.v2.LogSink getSinks(int index) { * repeated .google.logging.v2.LogSink sinks = 1; */ @java.lang.Override - public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder( - int index) { + public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index) { return sinks_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -117,6 +148,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,14 +157,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -140,16 +173,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -158,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < sinks_.size(); i++) { output.writeMessage(1, sinks_.get(i)); } @@ -187,8 +219,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < sinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, sinks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, sinks_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +232,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.logging.v2.ListSinksResponse)) { return super.equals(obj); } com.google.logging.v2.ListSinksResponse other = (com.google.logging.v2.ListSinksResponse) obj; - if (!getSinksList() - .equals(other.getSinksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getSinksList().equals(other.getSinksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,132 +263,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListSinksResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListSinksResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListSinksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListSinksResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListSinksResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListSinksResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListSinksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListSinksResponse 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.logging.v2.ListSinksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListSinksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListSinksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListSinksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListSinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListSinksResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListSinksResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Result returned from `ListSinks`.
    * 
* * Protobuf type {@code google.logging.v2.ListSinksResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListSinksResponse) com.google.logging.v2.ListSinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListSinksResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListSinksResponse.class, com.google.logging.v2.ListSinksResponse.Builder.class); + com.google.logging.v2.ListSinksResponse.class, + com.google.logging.v2.ListSinksResponse.Builder.class); } // Construct using com.google.logging.v2.ListSinksResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListSinksResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListSinksResponse_descriptor; } @java.lang.Override @@ -397,9 +430,12 @@ public com.google.logging.v2.ListSinksResponse build() { @java.lang.Override public com.google.logging.v2.ListSinksResponse buildPartial() { - com.google.logging.v2.ListSinksResponse result = new com.google.logging.v2.ListSinksResponse(this); + com.google.logging.v2.ListSinksResponse result = + new com.google.logging.v2.ListSinksResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,38 +463,39 @@ private void buildPartial0(com.google.logging.v2.ListSinksResponse 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.logging.v2.ListSinksResponse) { - return mergeFrom((com.google.logging.v2.ListSinksResponse)other); + return mergeFrom((com.google.logging.v2.ListSinksResponse) other); } else { super.mergeFrom(other); return this; @@ -485,9 +522,10 @@ public Builder mergeFrom(com.google.logging.v2.ListSinksResponse other) { sinksBuilder_ = null; sinks_ = other.sinks_; bitField0_ = (bitField0_ & ~0x00000001); - sinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSinksFieldBuilder() : null; + sinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSinksFieldBuilder() + : null; } else { sinksBuilder_.addAllMessages(other.sinks_); } @@ -524,30 +562,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.logging.v2.LogSink m = - input.readMessage( - com.google.logging.v2.LogSink.parser(), - extensionRegistry); - if (sinksBuilder_ == null) { - ensureSinksIsMutable(); - sinks_.add(m); - } else { - sinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.logging.v2.LogSink m = + input.readMessage(com.google.logging.v2.LogSink.parser(), extensionRegistry); + if (sinksBuilder_ == null) { + ensureSinksIsMutable(); + sinks_.add(m); + } else { + sinksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +596,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List sinks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSinksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { sinks_ = new java.util.ArrayList(sinks_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder> sinksBuilder_; + com.google.logging.v2.LogSink, + com.google.logging.v2.LogSink.Builder, + com.google.logging.v2.LogSinkOrBuilder> + sinksBuilder_; /** + * + * *
      * A list of sinks.
      * 
@@ -586,6 +632,8 @@ public java.util.List getSinksList() { } } /** + * + * *
      * A list of sinks.
      * 
@@ -600,6 +648,8 @@ public int getSinksCount() { } } /** + * + * *
      * A list of sinks.
      * 
@@ -614,14 +664,15 @@ public com.google.logging.v2.LogSink getSinks(int index) { } } /** + * + * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public Builder setSinks( - int index, com.google.logging.v2.LogSink value) { + public Builder setSinks(int index, com.google.logging.v2.LogSink value) { if (sinksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -635,14 +686,15 @@ public Builder setSinks( return this; } /** + * + * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public Builder setSinks( - int index, com.google.logging.v2.LogSink.Builder builderForValue) { + public Builder setSinks(int index, com.google.logging.v2.LogSink.Builder builderForValue) { if (sinksBuilder_ == null) { ensureSinksIsMutable(); sinks_.set(index, builderForValue.build()); @@ -653,6 +705,8 @@ public Builder setSinks( return this; } /** + * + * *
      * A list of sinks.
      * 
@@ -673,14 +727,15 @@ public Builder addSinks(com.google.logging.v2.LogSink value) { return this; } /** + * + * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public Builder addSinks( - int index, com.google.logging.v2.LogSink value) { + public Builder addSinks(int index, com.google.logging.v2.LogSink value) { if (sinksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -694,14 +749,15 @@ public Builder addSinks( return this; } /** + * + * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public Builder addSinks( - com.google.logging.v2.LogSink.Builder builderForValue) { + public Builder addSinks(com.google.logging.v2.LogSink.Builder builderForValue) { if (sinksBuilder_ == null) { ensureSinksIsMutable(); sinks_.add(builderForValue.build()); @@ -712,14 +768,15 @@ public Builder addSinks( return this; } /** + * + * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public Builder addSinks( - int index, com.google.logging.v2.LogSink.Builder builderForValue) { + public Builder addSinks(int index, com.google.logging.v2.LogSink.Builder builderForValue) { if (sinksBuilder_ == null) { ensureSinksIsMutable(); sinks_.add(index, builderForValue.build()); @@ -730,18 +787,18 @@ public Builder addSinks( return this; } /** + * + * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public Builder addAllSinks( - java.lang.Iterable values) { + public Builder addAllSinks(java.lang.Iterable values) { if (sinksBuilder_ == null) { ensureSinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sinks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sinks_); onChanged(); } else { sinksBuilder_.addAllMessages(values); @@ -749,6 +806,8 @@ public Builder addAllSinks( return this; } /** + * + * *
      * A list of sinks.
      * 
@@ -766,6 +825,8 @@ public Builder clearSinks() { return this; } /** + * + * *
      * A list of sinks.
      * 
@@ -783,39 +844,44 @@ public Builder removeSinks(int index) { return this; } /** + * + * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public com.google.logging.v2.LogSink.Builder getSinksBuilder( - int index) { + public com.google.logging.v2.LogSink.Builder getSinksBuilder(int index) { return getSinksFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder( - int index) { + public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index) { if (sinksBuilder_ == null) { - return sinks_.get(index); } else { + return sinks_.get(index); + } else { return sinksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public java.util.List - getSinksOrBuilderList() { + public java.util.List + getSinksOrBuilderList() { if (sinksBuilder_ != null) { return sinksBuilder_.getMessageOrBuilderList(); } else { @@ -823,6 +889,8 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder( } } /** + * + * *
      * A list of sinks.
      * 
@@ -830,42 +898,46 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder( * repeated .google.logging.v2.LogSink sinks = 1; */ public com.google.logging.v2.LogSink.Builder addSinksBuilder() { - return getSinksFieldBuilder().addBuilder( - com.google.logging.v2.LogSink.getDefaultInstance()); + return getSinksFieldBuilder().addBuilder(com.google.logging.v2.LogSink.getDefaultInstance()); } /** + * + * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public com.google.logging.v2.LogSink.Builder addSinksBuilder( - int index) { - return getSinksFieldBuilder().addBuilder( - index, com.google.logging.v2.LogSink.getDefaultInstance()); + public com.google.logging.v2.LogSink.Builder addSinksBuilder(int index) { + return getSinksFieldBuilder() + .addBuilder(index, com.google.logging.v2.LogSink.getDefaultInstance()); } /** + * + * *
      * A list of sinks.
      * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - public java.util.List - getSinksBuilderList() { + public java.util.List getSinksBuilderList() { return getSinksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder> + com.google.logging.v2.LogSink, + com.google.logging.v2.LogSink.Builder, + com.google.logging.v2.LogSinkOrBuilder> getSinksFieldBuilder() { if (sinksBuilder_ == null) { - sinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder>( - sinks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + sinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.LogSink, + com.google.logging.v2.LogSink.Builder, + com.google.logging.v2.LogSinkOrBuilder>( + sinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); sinks_ = null; } return sinksBuilder_; @@ -873,6 +945,8 @@ public com.google.logging.v2.LogSink.Builder addSinksBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -880,13 +954,13 @@ public com.google.logging.v2.LogSink.Builder addSinksBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -895,6 +969,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -902,15 +978,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -918,6 +993,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -925,18 +1002,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -944,6 +1025,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -953,6 +1035,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -960,21 +1044,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,12 +1070,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListSinksResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListSinksResponse) private static final com.google.logging.v2.ListSinksResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListSinksResponse(); } @@ -998,27 +1084,27 @@ public static com.google.logging.v2.ListSinksResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1119,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListSinksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java index 501db2018..d41eb3f6d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * 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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListSinksResponseOrBuilder extends +public interface ListSinksResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListSinksResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of sinks.
    * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - java.util.List - getSinksList(); + java.util.List getSinksList(); /** + * + * *
    * A list of sinks.
    * 
@@ -26,6 +45,8 @@ public interface ListSinksResponseOrBuilder extends */ com.google.logging.v2.LogSink getSinks(int index); /** + * + * *
    * A list of sinks.
    * 
@@ -34,25 +55,29 @@ public interface ListSinksResponseOrBuilder extends */ int getSinksCount(); /** + * + * *
    * A list of sinks.
    * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - java.util.List - getSinksOrBuilderList(); + java.util.List getSinksOrBuilderList(); /** + * + * *
    * A list of sinks.
    * 
* * repeated .google.logging.v2.LogSink sinks = 1; */ - com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder( - int index); + com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index); /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -60,10 +85,13 @@ com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -71,8 +99,8 @@ com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java index 66fd4ccf4..7c9bfa5d9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `ListViews`.
  * 
* * Protobuf type {@code google.logging.v2.ListViewsRequest} */ -public final class ListViewsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListViewsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListViewsRequest) ListViewsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListViewsRequest.newBuilder() to construct. private ListViewsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListViewsRequest() { parent_ = ""; pageToken_ = ""; @@ -27,28 +45,32 @@ private ListViewsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListViewsRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListViewsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListViewsRequest.class, com.google.logging.v2.ListViewsRequest.Builder.class); + com.google.logging.v2.ListViewsRequest.class, + com.google.logging.v2.ListViewsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The bucket whose views are to be listed:
    *
@@ -56,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -64,14 +87,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The bucket whose views are to be listed:
    *
@@ -79,16 +103,15 @@ public java.lang.String getParent() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,9 +120,12 @@ public java.lang.String getParent() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -108,6 +134,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -116,14 +143,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. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -132,16 +160,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 2 [(.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 { @@ -152,6 +179,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** + * + * *
    * Optional. The maximum number of results to return from this request.
    *
@@ -160,6 +189,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -168,6 +198,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +210,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -206,8 +236,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -217,19 +246,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.ListViewsRequest)) { return super.equals(obj); } com.google.logging.v2.ListViewsRequest other = (com.google.logging.v2.ListViewsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getPageSize() - != other.getPageSize()) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -252,132 +278,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListViewsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListViewsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListViewsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListViewsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListViewsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListViewsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListViewsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListViewsRequest 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.logging.v2.ListViewsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.ListViewsRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListViewsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListViewsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListViewsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListViewsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `ListViews`.
    * 
* * Protobuf type {@code google.logging.v2.ListViewsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListViewsRequest) com.google.logging.v2.ListViewsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListViewsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListViewsRequest.class, com.google.logging.v2.ListViewsRequest.Builder.class); + com.google.logging.v2.ListViewsRequest.class, + com.google.logging.v2.ListViewsRequest.Builder.class); } // Construct using com.google.logging.v2.ListViewsRequest.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(); @@ -389,9 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListViewsRequest_descriptor; } @java.lang.Override @@ -410,8 +440,11 @@ public com.google.logging.v2.ListViewsRequest build() { @java.lang.Override public com.google.logging.v2.ListViewsRequest buildPartial() { - com.google.logging.v2.ListViewsRequest result = new com.google.logging.v2.ListViewsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.ListViewsRequest result = + new com.google.logging.v2.ListViewsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -433,38 +466,39 @@ private void buildPartial0(com.google.logging.v2.ListViewsRequest 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.logging.v2.ListViewsRequest) { - return mergeFrom((com.google.logging.v2.ListViewsRequest)other); + return mergeFrom((com.google.logging.v2.ListViewsRequest) other); } else { super.mergeFrom(other); return this; @@ -512,27 +546,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -542,10 +580,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The bucket whose views are to be listed:
      *
@@ -553,13 +594,13 @@ public Builder mergeFrom(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -568,6 +609,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The bucket whose views are to be listed:
      *
@@ -575,15 +618,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -591,6 +633,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The bucket whose views are to be listed:
      *
@@ -598,18 +642,22 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The bucket whose views are to be listed:
      *
@@ -617,6 +665,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -626,6 +675,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The bucket whose views are to be listed:
      *
@@ -633,12 +684,14 @@ public Builder clearParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -648,6 +701,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -656,13 +711,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2 [(.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; @@ -671,6 +726,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -679,15 +736,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.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 { @@ -695,6 +751,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -703,18 +761,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 2 [(.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_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -723,6 +785,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -732,6 +795,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -740,12 +805,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 2 [(.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_ |= 0x00000002; @@ -753,8 +820,10 @@ public Builder setPageTokenBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return from this request.
      *
@@ -763,6 +832,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -770,6 +840,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      *
@@ -778,6 +850,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -789,6 +862,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      *
@@ -797,6 +872,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -805,9 +881,9 @@ public Builder clearPageSize() { 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); } @@ -817,12 +893,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListViewsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListViewsRequest) private static final com.google.logging.v2.ListViewsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListViewsRequest(); } @@ -831,27 +907,27 @@ public static com.google.logging.v2.ListViewsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListViewsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListViewsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -866,6 +942,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListViewsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java index 822ada548..c93d0dc54 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListViewsRequestOrBuilder extends +public interface ListViewsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListViewsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The bucket whose views are to be listed:
    *
@@ -16,10 +34,13 @@ public interface ListViewsRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The bucket whose views are to be listed:
    *
@@ -27,12 +48,14 @@ public interface ListViewsRequestOrBuilder extends
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -41,10 +64,13 @@ public interface ListViewsRequestOrBuilder extends
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -53,12 +79,14 @@ public interface ListViewsRequestOrBuilder extends
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. The maximum number of results to return from this request.
    *
@@ -67,6 +95,7 @@ public interface ListViewsRequestOrBuilder extends
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java index 78cfa104a..499a90169 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * The response from ListViews.
  * 
* * Protobuf type {@code google.logging.v2.ListViewsResponse} */ -public final class ListViewsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListViewsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.ListViewsResponse) ListViewsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListViewsResponse.newBuilder() to construct. private ListViewsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListViewsResponse() { views_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,28 +45,32 @@ private ListViewsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListViewsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListViewsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListViewsResponse.class, com.google.logging.v2.ListViewsResponse.Builder.class); + com.google.logging.v2.ListViewsResponse.class, + com.google.logging.v2.ListViewsResponse.Builder.class); } public static final int VIEWS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List views_; /** + * + * *
    * A list of views.
    * 
@@ -60,6 +82,8 @@ public java.util.List getViewsList() { return views_; } /** + * + * *
    * A list of views.
    * 
@@ -67,11 +91,12 @@ public java.util.List getViewsList() { * repeated .google.logging.v2.LogView views = 1; */ @java.lang.Override - public java.util.List - getViewsOrBuilderList() { + public java.util.List getViewsOrBuilderList() { return views_; } /** + * + * *
    * A list of views.
    * 
@@ -83,6 +108,8 @@ public int getViewsCount() { return views_.size(); } /** + * + * *
    * A list of views.
    * 
@@ -94,6 +121,8 @@ public com.google.logging.v2.LogView getViews(int index) { return views_.get(index); } /** + * + * *
    * A list of views.
    * 
@@ -101,15 +130,17 @@ public com.google.logging.v2.LogView getViews(int index) { * repeated .google.logging.v2.LogView views = 1; */ @java.lang.Override - public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder( - int index) { + public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(int index) { return views_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -117,6 +148,7 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,14 +157,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -140,16 +173,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -158,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < views_.size(); i++) { output.writeMessage(1, views_.get(i)); } @@ -187,8 +219,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < views_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, views_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, views_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +232,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.logging.v2.ListViewsResponse)) { return super.equals(obj); } com.google.logging.v2.ListViewsResponse other = (com.google.logging.v2.ListViewsResponse) obj; - if (!getViewsList() - .equals(other.getViewsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getViewsList().equals(other.getViewsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,132 +263,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.ListViewsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.ListViewsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListViewsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListViewsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListViewsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListViewsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.ListViewsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.ListViewsResponse 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.logging.v2.ListViewsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.ListViewsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.ListViewsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.ListViewsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.ListViewsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.ListViewsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.ListViewsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response from ListViews.
    * 
* * Protobuf type {@code google.logging.v2.ListViewsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.ListViewsResponse) com.google.logging.v2.ListViewsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListViewsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.ListViewsResponse.class, com.google.logging.v2.ListViewsResponse.Builder.class); + com.google.logging.v2.ListViewsResponse.class, + com.google.logging.v2.ListViewsResponse.Builder.class); } // Construct using com.google.logging.v2.ListViewsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_ListViewsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListViewsResponse_descriptor; } @java.lang.Override @@ -397,9 +430,12 @@ public com.google.logging.v2.ListViewsResponse build() { @java.lang.Override public com.google.logging.v2.ListViewsResponse buildPartial() { - com.google.logging.v2.ListViewsResponse result = new com.google.logging.v2.ListViewsResponse(this); + com.google.logging.v2.ListViewsResponse result = + new com.google.logging.v2.ListViewsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -427,38 +463,39 @@ private void buildPartial0(com.google.logging.v2.ListViewsResponse 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.logging.v2.ListViewsResponse) { - return mergeFrom((com.google.logging.v2.ListViewsResponse)other); + return mergeFrom((com.google.logging.v2.ListViewsResponse) other); } else { super.mergeFrom(other); return this; @@ -485,9 +522,10 @@ public Builder mergeFrom(com.google.logging.v2.ListViewsResponse other) { viewsBuilder_ = null; views_ = other.views_; bitField0_ = (bitField0_ & ~0x00000001); - viewsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getViewsFieldBuilder() : null; + viewsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getViewsFieldBuilder() + : null; } else { viewsBuilder_.addAllMessages(other.views_); } @@ -524,30 +562,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.logging.v2.LogView m = - input.readMessage( - com.google.logging.v2.LogView.parser(), - extensionRegistry); - if (viewsBuilder_ == null) { - ensureViewsIsMutable(); - views_.add(m); - } else { - viewsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.logging.v2.LogView m = + input.readMessage(com.google.logging.v2.LogView.parser(), extensionRegistry); + if (viewsBuilder_ == null) { + ensureViewsIsMutable(); + views_.add(m); + } else { + viewsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,21 +596,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List views_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureViewsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { views_ = new java.util.ArrayList(views_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder> viewsBuilder_; + com.google.logging.v2.LogView, + com.google.logging.v2.LogView.Builder, + com.google.logging.v2.LogViewOrBuilder> + viewsBuilder_; /** + * + * *
      * A list of views.
      * 
@@ -586,6 +632,8 @@ public java.util.List getViewsList() { } } /** + * + * *
      * A list of views.
      * 
@@ -600,6 +648,8 @@ public int getViewsCount() { } } /** + * + * *
      * A list of views.
      * 
@@ -614,14 +664,15 @@ public com.google.logging.v2.LogView getViews(int index) { } } /** + * + * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public Builder setViews( - int index, com.google.logging.v2.LogView value) { + public Builder setViews(int index, com.google.logging.v2.LogView value) { if (viewsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -635,14 +686,15 @@ public Builder setViews( return this; } /** + * + * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public Builder setViews( - int index, com.google.logging.v2.LogView.Builder builderForValue) { + public Builder setViews(int index, com.google.logging.v2.LogView.Builder builderForValue) { if (viewsBuilder_ == null) { ensureViewsIsMutable(); views_.set(index, builderForValue.build()); @@ -653,6 +705,8 @@ public Builder setViews( return this; } /** + * + * *
      * A list of views.
      * 
@@ -673,14 +727,15 @@ public Builder addViews(com.google.logging.v2.LogView value) { return this; } /** + * + * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public Builder addViews( - int index, com.google.logging.v2.LogView value) { + public Builder addViews(int index, com.google.logging.v2.LogView value) { if (viewsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -694,14 +749,15 @@ public Builder addViews( return this; } /** + * + * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public Builder addViews( - com.google.logging.v2.LogView.Builder builderForValue) { + public Builder addViews(com.google.logging.v2.LogView.Builder builderForValue) { if (viewsBuilder_ == null) { ensureViewsIsMutable(); views_.add(builderForValue.build()); @@ -712,14 +768,15 @@ public Builder addViews( return this; } /** + * + * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public Builder addViews( - int index, com.google.logging.v2.LogView.Builder builderForValue) { + public Builder addViews(int index, com.google.logging.v2.LogView.Builder builderForValue) { if (viewsBuilder_ == null) { ensureViewsIsMutable(); views_.add(index, builderForValue.build()); @@ -730,18 +787,18 @@ public Builder addViews( return this; } /** + * + * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public Builder addAllViews( - java.lang.Iterable values) { + public Builder addAllViews(java.lang.Iterable values) { if (viewsBuilder_ == null) { ensureViewsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, views_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, views_); onChanged(); } else { viewsBuilder_.addAllMessages(values); @@ -749,6 +806,8 @@ public Builder addAllViews( return this; } /** + * + * *
      * A list of views.
      * 
@@ -766,6 +825,8 @@ public Builder clearViews() { return this; } /** + * + * *
      * A list of views.
      * 
@@ -783,39 +844,44 @@ public Builder removeViews(int index) { return this; } /** + * + * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public com.google.logging.v2.LogView.Builder getViewsBuilder( - int index) { + public com.google.logging.v2.LogView.Builder getViewsBuilder(int index) { return getViewsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder( - int index) { + public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(int index) { if (viewsBuilder_ == null) { - return views_.get(index); } else { + return views_.get(index); + } else { return viewsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public java.util.List - getViewsOrBuilderList() { + public java.util.List + getViewsOrBuilderList() { if (viewsBuilder_ != null) { return viewsBuilder_.getMessageOrBuilderList(); } else { @@ -823,6 +889,8 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder( } } /** + * + * *
      * A list of views.
      * 
@@ -830,42 +898,46 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder( * repeated .google.logging.v2.LogView views = 1; */ public com.google.logging.v2.LogView.Builder addViewsBuilder() { - return getViewsFieldBuilder().addBuilder( - com.google.logging.v2.LogView.getDefaultInstance()); + return getViewsFieldBuilder().addBuilder(com.google.logging.v2.LogView.getDefaultInstance()); } /** + * + * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public com.google.logging.v2.LogView.Builder addViewsBuilder( - int index) { - return getViewsFieldBuilder().addBuilder( - index, com.google.logging.v2.LogView.getDefaultInstance()); + public com.google.logging.v2.LogView.Builder addViewsBuilder(int index) { + return getViewsFieldBuilder() + .addBuilder(index, com.google.logging.v2.LogView.getDefaultInstance()); } /** + * + * *
      * A list of views.
      * 
* * repeated .google.logging.v2.LogView views = 1; */ - public java.util.List - getViewsBuilderList() { + public java.util.List getViewsBuilderList() { return getViewsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder> + com.google.logging.v2.LogView, + com.google.logging.v2.LogView.Builder, + com.google.logging.v2.LogViewOrBuilder> getViewsFieldBuilder() { if (viewsBuilder_ == null) { - viewsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder>( - views_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + viewsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.LogView, + com.google.logging.v2.LogView.Builder, + com.google.logging.v2.LogViewOrBuilder>( + views_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); views_ = null; } return viewsBuilder_; @@ -873,6 +945,8 @@ public com.google.logging.v2.LogView.Builder addViewsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -880,13 +954,13 @@ public com.google.logging.v2.LogView.Builder addViewsBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -895,6 +969,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -902,15 +978,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -918,6 +993,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -925,18 +1002,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -944,6 +1025,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -953,6 +1035,8 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -960,21 +1044,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -984,12 +1070,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.ListViewsResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.ListViewsResponse) private static final com.google.logging.v2.ListViewsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.ListViewsResponse(); } @@ -998,27 +1084,27 @@ public static com.google.logging.v2.ListViewsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListViewsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListViewsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1119,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListViewsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java index 79cb7ab64..aeed70569 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java @@ -1,23 +1,42 @@ +/* + * 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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface ListViewsResponseOrBuilder extends +public interface ListViewsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.ListViewsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of views.
    * 
* * repeated .google.logging.v2.LogView views = 1; */ - java.util.List - getViewsList(); + java.util.List getViewsList(); /** + * + * *
    * A list of views.
    * 
@@ -26,6 +45,8 @@ public interface ListViewsResponseOrBuilder extends */ com.google.logging.v2.LogView getViews(int index); /** + * + * *
    * A list of views.
    * 
@@ -34,25 +55,29 @@ public interface ListViewsResponseOrBuilder extends */ int getViewsCount(); /** + * + * *
    * A list of views.
    * 
* * repeated .google.logging.v2.LogView views = 1; */ - java.util.List - getViewsOrBuilderList(); + java.util.List getViewsOrBuilderList(); /** + * + * *
    * A list of views.
    * 
* * repeated .google.logging.v2.LogView views = 1; */ - com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder( - int index); + com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(int index); /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -60,10 +85,13 @@ com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -71,8 +99,8 @@ com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java index 5fadf6985..67db016f2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.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/logging/v2/logging_config.proto @@ -5,53 +20,59 @@ package com.google.logging.v2; /** + * + * *
  * Cloud Logging specific location metadata.
  * 
* * Protobuf type {@code google.logging.v2.LocationMetadata} */ -public final class LocationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.LocationMetadata) LocationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocationMetadata.newBuilder() to construct. private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LocationMetadata() { - } + + private LocationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocationMetadata(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.LocationMetadata.class, com.google.logging.v2.LocationMetadata.Builder.class); + com.google.logging.v2.LocationMetadata.class, + com.google.logging.v2.LocationMetadata.Builder.class); } public static final int LOG_ANALYTICS_ENABLED_FIELD_NUMBER = 1; private boolean logAnalyticsEnabled_ = false; /** + * + * *
    * Indicates whether or not Log Analytics features are supported in the given
    * location.
    * 
* * bool log_analytics_enabled = 1; + * * @return The logAnalyticsEnabled. */ @java.lang.Override @@ -60,6 +81,7 @@ public boolean getLogAnalyticsEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -71,8 +93,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 (logAnalyticsEnabled_ != false) { output.writeBool(1, logAnalyticsEnabled_); } @@ -86,8 +107,7 @@ public int getSerializedSize() { size = 0; if (logAnalyticsEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, logAnalyticsEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, logAnalyticsEnabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -97,15 +117,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LocationMetadata)) { return super.equals(obj); } com.google.logging.v2.LocationMetadata other = (com.google.logging.v2.LocationMetadata) obj; - if (getLogAnalyticsEnabled() - != other.getLogAnalyticsEnabled()) return false; + if (getLogAnalyticsEnabled() != other.getLogAnalyticsEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -118,139 +137,142 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOG_ANALYTICS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLogAnalyticsEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogAnalyticsEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.logging.v2.LocationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.LocationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LocationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LocationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LocationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LocationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LocationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LocationMetadata 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.logging.v2.LocationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.LocationMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LocationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.LocationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.LocationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.LocationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Cloud Logging specific location metadata.
    * 
* * Protobuf type {@code google.logging.v2.LocationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.LocationMetadata) com.google.logging.v2.LocationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LocationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LocationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.LocationMetadata.class, com.google.logging.v2.LocationMetadata.Builder.class); + com.google.logging.v2.LocationMetadata.class, + com.google.logging.v2.LocationMetadata.Builder.class); } // Construct using com.google.logging.v2.LocationMetadata.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(); @@ -260,9 +282,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LocationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LocationMetadata_descriptor; } @java.lang.Override @@ -281,8 +303,11 @@ public com.google.logging.v2.LocationMetadata build() { @java.lang.Override public com.google.logging.v2.LocationMetadata buildPartial() { - com.google.logging.v2.LocationMetadata result = new com.google.logging.v2.LocationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.LocationMetadata result = + new com.google.logging.v2.LocationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -298,38 +323,39 @@ private void buildPartial0(com.google.logging.v2.LocationMetadata 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.logging.v2.LocationMetadata) { - return mergeFrom((com.google.logging.v2.LocationMetadata)other); + return mergeFrom((com.google.logging.v2.LocationMetadata) other); } else { super.mergeFrom(other); return this; @@ -367,17 +393,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - logAnalyticsEnabled_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + logAnalyticsEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -387,16 +415,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean logAnalyticsEnabled_ ; + private boolean logAnalyticsEnabled_; /** + * + * *
      * Indicates whether or not Log Analytics features are supported in the given
      * location.
      * 
* * bool log_analytics_enabled = 1; + * * @return The logAnalyticsEnabled. */ @java.lang.Override @@ -404,12 +436,15 @@ public boolean getLogAnalyticsEnabled() { return logAnalyticsEnabled_; } /** + * + * *
      * Indicates whether or not Log Analytics features are supported in the given
      * location.
      * 
* * bool log_analytics_enabled = 1; + * * @param value The logAnalyticsEnabled to set. * @return This builder for chaining. */ @@ -421,12 +456,15 @@ public Builder setLogAnalyticsEnabled(boolean value) { return this; } /** + * + * *
      * Indicates whether or not Log Analytics features are supported in the given
      * location.
      * 
* * bool log_analytics_enabled = 1; + * * @return This builder for chaining. */ public Builder clearLogAnalyticsEnabled() { @@ -435,9 +473,9 @@ public Builder clearLogAnalyticsEnabled() { 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); } @@ -447,12 +485,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.LocationMetadata) } // @@protoc_insertion_point(class_scope:google.logging.v2.LocationMetadata) private static final com.google.logging.v2.LocationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.LocationMetadata(); } @@ -461,27 +499,27 @@ public static com.google.logging.v2.LocationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -496,6 +534,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java new file mode 100644 index 000000000..691dec7a8 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java @@ -0,0 +1,40 @@ +/* + * 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/logging/v2/logging_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public interface LocationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.LocationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Indicates whether or not Log Analytics features are supported in the given
+   * location.
+   * 
+ * + * bool log_analytics_enabled = 1; + * + * @return The logAnalyticsEnabled. + */ + boolean getLogAnalyticsEnabled(); +} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java similarity index 75% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java index 2d74b4602..4515d517f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.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/logging/v2/logging_config.proto @@ -5,55 +20,60 @@ package com.google.logging.v2; /** + * + * *
  * Describes a repository in which log entries are stored.
  * 
* * Protobuf type {@code google.logging.v2.LogBucket} */ -public final class LogBucket extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LogBucket extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.LogBucket) LogBucketOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LogBucket.newBuilder() to construct. private LogBucket(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LogBucket() { name_ = ""; description_ = ""; lifecycleState_ = 0; - restrictedFields_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); indexConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LogBucket(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogBucket_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LogBucket_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogBucket_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LogBucket_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.LogBucket.class, com.google.logging.v2.LogBucket.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource name of the bucket.
    *
@@ -71,6 +91,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -79,14 +100,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the bucket.
    *
@@ -104,16 +126,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -122,14 +143,18 @@ public java.lang.String getName() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Describes this bucket.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -138,29 +163,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; } } /** + * + * *
    * Describes this bucket.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -171,12 +196,16 @@ public java.lang.String getDescription() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The creation timestamp of the bucket. This is not set for any
    * of the default buckets.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -184,12 +213,16 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Output only. The creation timestamp of the bucket. This is not set for any
    * of the default buckets.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -197,12 +230,15 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The creation timestamp of the bucket. This is not set for any
    * of the default buckets.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -212,11 +248,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The last update timestamp of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -224,11 +264,15 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Output only. The last update timestamp of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -236,11 +280,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The last update timestamp of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -250,6 +297,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int RETENTION_DAYS_FIELD_NUMBER = 11; private int retentionDays_ = 0; /** + * + * *
    * Logs will be retained by default for this amount of time, after which they
    * will automatically be deleted. The minimum retention period is 1 day. If
@@ -258,6 +307,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * int32 retention_days = 11; + * * @return The retentionDays. */ @java.lang.Override @@ -268,6 +318,8 @@ public int getRetentionDays() { public static final int LOCKED_FIELD_NUMBER = 9; private boolean locked_ = false; /** + * + * *
    * Whether the bucket is locked.
    *
@@ -276,6 +328,7 @@ public int getRetentionDays() {
    * 
* * bool locked = 9; + * * @return The locked. */ @java.lang.Override @@ -286,32 +339,47 @@ public boolean getLocked() { public static final int LIFECYCLE_STATE_FIELD_NUMBER = 12; private int lifecycleState_ = 0; /** + * + * *
    * Output only. The bucket lifecycle state.
    * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for lifecycleState. */ - @java.lang.Override public int getLifecycleStateValue() { + @java.lang.Override + public int getLifecycleStateValue() { return lifecycleState_; } /** + * + * *
    * Output only. The bucket lifecycle state.
    * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lifecycleState. */ - @java.lang.Override public com.google.logging.v2.LifecycleState getLifecycleState() { - com.google.logging.v2.LifecycleState result = com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); + @java.lang.Override + public com.google.logging.v2.LifecycleState getLifecycleState() { + com.google.logging.v2.LifecycleState result = + com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; } public static final int ANALYTICS_ENABLED_FIELD_NUMBER = 14; private boolean analyticsEnabled_ = false; /** + * + * *
    * Whether log analytics is enabled for this bucket.
    *
@@ -319,6 +387,7 @@ public boolean getLocked() {
    * 
* * bool analytics_enabled = 14; + * * @return The analyticsEnabled. */ @java.lang.Override @@ -327,10 +396,13 @@ public boolean getAnalyticsEnabled() { } public static final int RESTRICTED_FIELDS_FIELD_NUMBER = 15; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList restrictedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -342,13 +414,15 @@ public boolean getAnalyticsEnabled() {
    * 
* * repeated string restricted_fields = 15; + * * @return A list containing the restrictedFields. */ - public com.google.protobuf.ProtocolStringList - getRestrictedFieldsList() { + public com.google.protobuf.ProtocolStringList getRestrictedFieldsList() { return restrictedFields_; } /** + * + * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -360,12 +434,15 @@ public boolean getAnalyticsEnabled() {
    * 
* * repeated string restricted_fields = 15; + * * @return The count of restrictedFields. */ public int getRestrictedFieldsCount() { return restrictedFields_.size(); } /** + * + * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -377,6 +454,7 @@ public int getRestrictedFieldsCount() {
    * 
* * repeated string restricted_fields = 15; + * * @param index The index of the element to return. * @return The restrictedFields at the given index. */ @@ -384,6 +462,8 @@ public java.lang.String getRestrictedFields(int index) { return restrictedFields_.get(index); } /** + * + * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -395,18 +475,21 @@ public java.lang.String getRestrictedFields(int index) {
    * 
* * repeated string restricted_fields = 15; + * * @param index The index of the value to return. * @return The bytes of the restrictedFields at the given index. */ - public com.google.protobuf.ByteString - getRestrictedFieldsBytes(int index) { + public com.google.protobuf.ByteString getRestrictedFieldsBytes(int index) { return restrictedFields_.getByteString(index); } public static final int INDEX_CONFIGS_FIELD_NUMBER = 17; + @SuppressWarnings("serial") private java.util.List indexConfigs_; /** + * + * *
    * A list of indexed fields and related configuration data.
    * 
@@ -418,6 +501,8 @@ public java.util.List getIndexConfigsList() { return indexConfigs_; } /** + * + * *
    * A list of indexed fields and related configuration data.
    * 
@@ -425,11 +510,13 @@ public java.util.List getIndexConfigsList() { * repeated .google.logging.v2.IndexConfig index_configs = 17; */ @java.lang.Override - public java.util.List + public java.util.List getIndexConfigsOrBuilderList() { return indexConfigs_; } /** + * + * *
    * A list of indexed fields and related configuration data.
    * 
@@ -441,6 +528,8 @@ public int getIndexConfigsCount() { return indexConfigs_.size(); } /** + * + * *
    * A list of indexed fields and related configuration data.
    * 
@@ -452,6 +541,8 @@ public com.google.logging.v2.IndexConfig getIndexConfigs(int index) { return indexConfigs_.get(index); } /** + * + * *
    * A list of indexed fields and related configuration data.
    * 
@@ -459,14 +550,15 @@ public com.google.logging.v2.IndexConfig getIndexConfigs(int index) { * repeated .google.logging.v2.IndexConfig index_configs = 17; */ @java.lang.Override - public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder( - int index) { + public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int index) { return indexConfigs_.get(index); } public static final int CMEK_SETTINGS_FIELD_NUMBER = 19; private com.google.logging.v2.CmekSettings cmekSettings_; /** + * + * *
    * The CMEK settings of the log bucket. If present, new log entries written to
    * this log bucket are encrypted using the CMEK key provided in this
@@ -476,6 +568,7 @@ public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(
    * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; + * * @return Whether the cmekSettings field is set. */ @java.lang.Override @@ -483,6 +576,8 @@ public boolean hasCmekSettings() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * The CMEK settings of the log bucket. If present, new log entries written to
    * this log bucket are encrypted using the CMEK key provided in this
@@ -492,13 +587,18 @@ public boolean hasCmekSettings() {
    * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; + * * @return The cmekSettings. */ @java.lang.Override public com.google.logging.v2.CmekSettings getCmekSettings() { - return cmekSettings_ == null ? com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_; + return cmekSettings_ == null + ? com.google.logging.v2.CmekSettings.getDefaultInstance() + : cmekSettings_; } /** + * + * *
    * The CMEK settings of the log bucket. If present, new log entries written to
    * this log bucket are encrypted using the CMEK key provided in this
@@ -511,10 +611,13 @@ public com.google.logging.v2.CmekSettings getCmekSettings() {
    */
   @java.lang.Override
   public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() {
-    return cmekSettings_ == null ? com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_;
+    return cmekSettings_ == null
+        ? com.google.logging.v2.CmekSettings.getDefaultInstance()
+        : cmekSettings_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -526,8 +629,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_);
     }
@@ -546,7 +648,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (retentionDays_ != 0) {
       output.writeInt32(11, retentionDays_);
     }
-    if (lifecycleState_ != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
+    if (lifecycleState_
+        != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(12, lifecycleState_);
     }
     if (analyticsEnabled_ != false) {
@@ -577,28 +680,23 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getUpdateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime());
     }
     if (locked_ != false) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBoolSize(9, locked_);
+      size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, locked_);
     }
     if (retentionDays_ != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt32Size(11, retentionDays_);
+      size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, retentionDays_);
     }
-    if (lifecycleState_ != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(12, lifecycleState_);
+    if (lifecycleState_
+        != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, lifecycleState_);
     }
     if (analyticsEnabled_ != false) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBoolSize(14, analyticsEnabled_);
+      size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, analyticsEnabled_);
     }
     {
       int dataSize = 0;
@@ -609,12 +707,10 @@ public int getSerializedSize() {
       size += 1 * getRestrictedFieldsList().size();
     }
     for (int i = 0; i < indexConfigs_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(17, indexConfigs_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, indexConfigs_.get(i));
     }
     if (((bitField0_ & 0x00000004) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(19, getCmekSettings());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getCmekSettings());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -624,42 +720,32 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.logging.v2.LogBucket)) {
       return super.equals(obj);
     }
     com.google.logging.v2.LogBucket other = (com.google.logging.v2.LogBucket) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
     if (hasCreateTime() != other.hasCreateTime()) return false;
     if (hasCreateTime()) {
-      if (!getCreateTime()
-          .equals(other.getCreateTime())) return false;
+      if (!getCreateTime().equals(other.getCreateTime())) 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 (getRetentionDays()
-        != other.getRetentionDays()) return false;
-    if (getLocked()
-        != other.getLocked()) return false;
+    if (getRetentionDays() != other.getRetentionDays()) return false;
+    if (getLocked() != other.getLocked()) return false;
     if (lifecycleState_ != other.lifecycleState_) return false;
-    if (getAnalyticsEnabled()
-        != other.getAnalyticsEnabled()) return false;
-    if (!getRestrictedFieldsList()
-        .equals(other.getRestrictedFieldsList())) return false;
-    if (!getIndexConfigsList()
-        .equals(other.getIndexConfigsList())) return false;
+    if (getAnalyticsEnabled() != other.getAnalyticsEnabled()) return false;
+    if (!getRestrictedFieldsList().equals(other.getRestrictedFieldsList())) return false;
+    if (!getIndexConfigsList().equals(other.getIndexConfigsList())) return false;
     if (hasCmekSettings() != other.hasCmekSettings()) return false;
     if (hasCmekSettings()) {
-      if (!getCmekSettings()
-          .equals(other.getCmekSettings())) return false;
+      if (!getCmekSettings().equals(other.getCmekSettings())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -687,13 +773,11 @@ public int hashCode() {
     hash = (37 * hash) + RETENTION_DAYS_FIELD_NUMBER;
     hash = (53 * hash) + getRetentionDays();
     hash = (37 * hash) + LOCKED_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-        getLocked());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocked());
     hash = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER;
     hash = (53 * hash) + lifecycleState_;
     hash = (37 * hash) + ANALYTICS_ENABLED_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-        getAnalyticsEnabled());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAnalyticsEnabled());
     if (getRestrictedFieldsCount() > 0) {
       hash = (37 * hash) + RESTRICTED_FIELDS_FIELD_NUMBER;
       hash = (53 * hash) + getRestrictedFieldsList().hashCode();
@@ -711,118 +795,123 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.logging.v2.LogBucket parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.logging.v2.LogBucket parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.LogBucket parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.logging.v2.LogBucket parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.logging.v2.LogBucket parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.LogBucket parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.LogBucket parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.LogBucket parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.LogBucket 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.logging.v2.LogBucket parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   public static com.google.logging.v2.LogBucket parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.logging.v2.LogBucket parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.logging.v2.LogBucket parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.LogBucket parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.logging.v2.LogBucket prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Describes a repository in which log entries are stored.
    * 
* * Protobuf type {@code google.logging.v2.LogBucket} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.LogBucket) com.google.logging.v2.LogBucketOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogBucket_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LogBucket_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogBucket_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LogBucket_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.LogBucket.class, com.google.logging.v2.LogBucket.Builder.class); } @@ -832,20 +921,20 @@ 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) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getIndexConfigsFieldBuilder(); getCmekSettingsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -866,8 +955,7 @@ public Builder clear() { locked_ = false; lifecycleState_ = 0; analyticsEnabled_ = false; - restrictedFields_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + restrictedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (indexConfigsBuilder_ == null) { indexConfigs_ = java.util.Collections.emptyList(); } else { @@ -884,9 +972,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogBucket_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LogBucket_descriptor; } @java.lang.Override @@ -907,7 +995,9 @@ public com.google.logging.v2.LogBucket build() { public com.google.logging.v2.LogBucket buildPartial() { com.google.logging.v2.LogBucket result = new com.google.logging.v2.LogBucket(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -934,15 +1024,11 @@ private void buildPartial0(com.google.logging.v2.LogBucket result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.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; } if (((from_bitField0_ & 0x00000010) != 0)) { @@ -962,9 +1048,8 @@ private void buildPartial0(com.google.logging.v2.LogBucket result) { result.restrictedFields_ = restrictedFields_; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.cmekSettings_ = cmekSettingsBuilder_ == null - ? cmekSettings_ - : cmekSettingsBuilder_.build(); + result.cmekSettings_ = + cmekSettingsBuilder_ == null ? cmekSettings_ : cmekSettingsBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; @@ -974,38 +1059,39 @@ private void buildPartial0(com.google.logging.v2.LogBucket 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.logging.v2.LogBucket) { - return mergeFrom((com.google.logging.v2.LogBucket)other); + return mergeFrom((com.google.logging.v2.LogBucket) other); } else { super.mergeFrom(other); return this; @@ -1070,9 +1156,10 @@ public Builder mergeFrom(com.google.logging.v2.LogBucket other) { indexConfigsBuilder_ = null; indexConfigs_ = other.indexConfigs_; bitField0_ = (bitField0_ & ~0x00000200); - indexConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getIndexConfigsFieldBuilder() : null; + indexConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIndexConfigsFieldBuilder() + : null; } else { indexConfigsBuilder_.addAllMessages(other.indexConfigs_); } @@ -1107,82 +1194,87 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 72: { - locked_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 72 - case 88: { - retentionDays_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 88 - case 96: { - lifecycleState_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 96 - case 112: { - analyticsEnabled_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 112 - case 122: { - java.lang.String s = input.readStringRequireUtf8(); - ensureRestrictedFieldsIsMutable(); - restrictedFields_.add(s); - break; - } // case 122 - case 138: { - com.google.logging.v2.IndexConfig m = - input.readMessage( - com.google.logging.v2.IndexConfig.parser(), - extensionRegistry); - if (indexConfigsBuilder_ == null) { - ensureIndexConfigsIsMutable(); - indexConfigs_.add(m); - } else { - indexConfigsBuilder_.addMessage(m); - } - break; - } // case 138 - case 154: { - input.readMessage( - getCmekSettingsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 154 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 72: + { + locked_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 72 + case 88: + { + retentionDays_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 88 + case 96: + { + lifecycleState_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 96 + case 112: + { + analyticsEnabled_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 112 + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRestrictedFieldsIsMutable(); + restrictedFields_.add(s); + break; + } // case 122 + case 138: + { + com.google.logging.v2.IndexConfig m = + input.readMessage( + com.google.logging.v2.IndexConfig.parser(), extensionRegistry); + if (indexConfigsBuilder_ == null) { + ensureIndexConfigsIsMutable(); + indexConfigs_.add(m); + } else { + indexConfigsBuilder_.addMessage(m); + } + break; + } // case 138 + case 154: + { + input.readMessage(getCmekSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 154 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1192,10 +1284,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the bucket.
      *
@@ -1213,13 +1308,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1228,6 +1323,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the bucket.
      *
@@ -1245,15 +1342,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1261,6 +1357,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the bucket.
      *
@@ -1278,18 +1376,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the bucket.
      *
@@ -1307,6 +1409,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1316,6 +1419,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the bucket.
      *
@@ -1333,12 +1438,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1348,18 +1455,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Describes this bucket.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1368,20 +1477,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Describes this bucket.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1389,28 +1499,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Describes this bucket.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Describes this bucket.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1420,17 +1537,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Describes this bucket.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -1440,42 +1561,61 @@ public Builder setDescriptionBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1491,15 +1631,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1510,18 +1653,22 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1536,12 +1683,16 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1554,12 +1705,16 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1567,38 +1722,50 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The creation timestamp of the bucket. This is not set for any
      * of the default buckets.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1606,39 +1773,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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 last update timestamp of the bucket.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.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 last update timestamp of the bucket.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1654,14 +1840,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.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 { @@ -1672,17 +1861,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.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; @@ -1697,11 +1890,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1714,11 +1911,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1726,43 +1927,57 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The last update timestamp of the bucket.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.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 last update timestamp of the bucket.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.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_; } - private int retentionDays_ ; + private int retentionDays_; /** + * + * *
      * Logs will be retained by default for this amount of time, after which they
      * will automatically be deleted. The minimum retention period is 1 day. If
@@ -1771,6 +1986,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * int32 retention_days = 11; + * * @return The retentionDays. */ @java.lang.Override @@ -1778,6 +1994,8 @@ public int getRetentionDays() { return retentionDays_; } /** + * + * *
      * Logs will be retained by default for this amount of time, after which they
      * will automatically be deleted. The minimum retention period is 1 day. If
@@ -1786,6 +2004,7 @@ public int getRetentionDays() {
      * 
* * int32 retention_days = 11; + * * @param value The retentionDays to set. * @return This builder for chaining. */ @@ -1797,6 +2016,8 @@ public Builder setRetentionDays(int value) { return this; } /** + * + * *
      * Logs will be retained by default for this amount of time, after which they
      * will automatically be deleted. The minimum retention period is 1 day. If
@@ -1805,6 +2026,7 @@ public Builder setRetentionDays(int value) {
      * 
* * int32 retention_days = 11; + * * @return This builder for chaining. */ public Builder clearRetentionDays() { @@ -1814,8 +2036,10 @@ public Builder clearRetentionDays() { return this; } - private boolean locked_ ; + private boolean locked_; /** + * + * *
      * Whether the bucket is locked.
      *
@@ -1824,6 +2048,7 @@ public Builder clearRetentionDays() {
      * 
* * bool locked = 9; + * * @return The locked. */ @java.lang.Override @@ -1831,6 +2056,8 @@ public boolean getLocked() { return locked_; } /** + * + * *
      * Whether the bucket is locked.
      *
@@ -1839,6 +2066,7 @@ public boolean getLocked() {
      * 
* * bool locked = 9; + * * @param value The locked to set. * @return This builder for chaining. */ @@ -1850,6 +2078,8 @@ public Builder setLocked(boolean value) { return this; } /** + * + * *
      * Whether the bucket is locked.
      *
@@ -1858,6 +2088,7 @@ public Builder setLocked(boolean value) {
      * 
* * bool locked = 9; + * * @return This builder for chaining. */ public Builder clearLocked() { @@ -1869,22 +2100,33 @@ public Builder clearLocked() { private int lifecycleState_ = 0; /** + * + * *
      * Output only. The bucket lifecycle state.
      * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for lifecycleState. */ - @java.lang.Override public int getLifecycleStateValue() { + @java.lang.Override + public int getLifecycleStateValue() { return lifecycleState_; } /** + * + * *
      * Output only. The bucket lifecycle state.
      * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for lifecycleState to set. * @return This builder for chaining. */ @@ -1895,24 +2137,35 @@ public Builder setLifecycleStateValue(int value) { return this; } /** + * + * *
      * Output only. The bucket lifecycle state.
      * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lifecycleState. */ @java.lang.Override public com.google.logging.v2.LifecycleState getLifecycleState() { - com.google.logging.v2.LifecycleState result = com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); + com.google.logging.v2.LifecycleState result = + com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The bucket lifecycle state.
      * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The lifecycleState to set. * @return This builder for chaining. */ @@ -1926,11 +2179,16 @@ public Builder setLifecycleState(com.google.logging.v2.LifecycleState value) { return this; } /** + * + * *
      * Output only. The bucket lifecycle state.
      * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearLifecycleState() { @@ -1940,8 +2198,10 @@ public Builder clearLifecycleState() { return this; } - private boolean analyticsEnabled_ ; + private boolean analyticsEnabled_; /** + * + * *
      * Whether log analytics is enabled for this bucket.
      *
@@ -1949,6 +2209,7 @@ public Builder clearLifecycleState() {
      * 
* * bool analytics_enabled = 14; + * * @return The analyticsEnabled. */ @java.lang.Override @@ -1956,6 +2217,8 @@ public boolean getAnalyticsEnabled() { return analyticsEnabled_; } /** + * + * *
      * Whether log analytics is enabled for this bucket.
      *
@@ -1963,6 +2226,7 @@ public boolean getAnalyticsEnabled() {
      * 
* * bool analytics_enabled = 14; + * * @param value The analyticsEnabled to set. * @return This builder for chaining. */ @@ -1974,6 +2238,8 @@ public Builder setAnalyticsEnabled(boolean value) { return this; } /** + * + * *
      * Whether log analytics is enabled for this bucket.
      *
@@ -1981,6 +2247,7 @@ public Builder setAnalyticsEnabled(boolean value) {
      * 
* * bool analytics_enabled = 14; + * * @return This builder for chaining. */ public Builder clearAnalyticsEnabled() { @@ -1992,6 +2259,7 @@ public Builder clearAnalyticsEnabled() { private com.google.protobuf.LazyStringArrayList restrictedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRestrictedFieldsIsMutable() { if (!restrictedFields_.isModifiable()) { restrictedFields_ = new com.google.protobuf.LazyStringArrayList(restrictedFields_); @@ -1999,6 +2267,8 @@ private void ensureRestrictedFieldsIsMutable() { bitField0_ |= 0x00000100; } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2010,14 +2280,16 @@ private void ensureRestrictedFieldsIsMutable() {
      * 
* * repeated string restricted_fields = 15; + * * @return A list containing the restrictedFields. */ - public com.google.protobuf.ProtocolStringList - getRestrictedFieldsList() { + public com.google.protobuf.ProtocolStringList getRestrictedFieldsList() { restrictedFields_.makeImmutable(); return restrictedFields_; } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2029,12 +2301,15 @@ private void ensureRestrictedFieldsIsMutable() {
      * 
* * repeated string restricted_fields = 15; + * * @return The count of restrictedFields. */ public int getRestrictedFieldsCount() { return restrictedFields_.size(); } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2046,6 +2321,7 @@ public int getRestrictedFieldsCount() {
      * 
* * repeated string restricted_fields = 15; + * * @param index The index of the element to return. * @return The restrictedFields at the given index. */ @@ -2053,6 +2329,8 @@ public java.lang.String getRestrictedFields(int index) { return restrictedFields_.get(index); } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2064,14 +2342,16 @@ public java.lang.String getRestrictedFields(int index) {
      * 
* * repeated string restricted_fields = 15; + * * @param index The index of the value to return. * @return The bytes of the restrictedFields at the given index. */ - public com.google.protobuf.ByteString - getRestrictedFieldsBytes(int index) { + public com.google.protobuf.ByteString getRestrictedFieldsBytes(int index) { return restrictedFields_.getByteString(index); } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2083,13 +2363,15 @@ public java.lang.String getRestrictedFields(int index) {
      * 
* * repeated string restricted_fields = 15; + * * @param index The index to set the value at. * @param value The restrictedFields to set. * @return This builder for chaining. */ - public Builder setRestrictedFields( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRestrictedFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureRestrictedFieldsIsMutable(); restrictedFields_.set(index, value); bitField0_ |= 0x00000100; @@ -2097,6 +2379,8 @@ public Builder setRestrictedFields( return this; } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2108,12 +2392,14 @@ public Builder setRestrictedFields(
      * 
* * repeated string restricted_fields = 15; + * * @param value The restrictedFields to add. * @return This builder for chaining. */ - public Builder addRestrictedFields( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addRestrictedFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureRestrictedFieldsIsMutable(); restrictedFields_.add(value); bitField0_ |= 0x00000100; @@ -2121,6 +2407,8 @@ public Builder addRestrictedFields( return this; } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2132,19 +2420,20 @@ public Builder addRestrictedFields(
      * 
* * repeated string restricted_fields = 15; + * * @param values The restrictedFields to add. * @return This builder for chaining. */ - public Builder addAllRestrictedFields( - java.lang.Iterable values) { + public Builder addAllRestrictedFields(java.lang.Iterable values) { ensureRestrictedFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, restrictedFields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restrictedFields_); bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2156,16 +2445,19 @@ public Builder addAllRestrictedFields(
      * 
* * repeated string restricted_fields = 15; + * * @return This builder for chaining. */ public Builder clearRestrictedFields() { - restrictedFields_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100);; + restrictedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; onChanged(); return this; } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2177,12 +2469,14 @@ public Builder clearRestrictedFields() {
      * 
* * repeated string restricted_fields = 15; + * * @param value The bytes of the restrictedFields to add. * @return This builder for chaining. */ - public Builder addRestrictedFieldsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addRestrictedFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureRestrictedFieldsIsMutable(); restrictedFields_.add(value); @@ -2192,18 +2486,24 @@ public Builder addRestrictedFieldsBytes( } private java.util.List indexConfigs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureIndexConfigsIsMutable() { if (!((bitField0_ & 0x00000200) != 0)) { indexConfigs_ = new java.util.ArrayList(indexConfigs_); bitField0_ |= 0x00000200; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.IndexConfig, com.google.logging.v2.IndexConfig.Builder, com.google.logging.v2.IndexConfigOrBuilder> indexConfigsBuilder_; + com.google.logging.v2.IndexConfig, + com.google.logging.v2.IndexConfig.Builder, + com.google.logging.v2.IndexConfigOrBuilder> + indexConfigsBuilder_; /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2218,6 +2518,8 @@ public java.util.List getIndexConfigsList() { } } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2232,6 +2534,8 @@ public int getIndexConfigsCount() { } } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2246,14 +2550,15 @@ public com.google.logging.v2.IndexConfig getIndexConfigs(int index) { } } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public Builder setIndexConfigs( - int index, com.google.logging.v2.IndexConfig value) { + public Builder setIndexConfigs(int index, com.google.logging.v2.IndexConfig value) { if (indexConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2267,6 +2572,8 @@ public Builder setIndexConfigs( return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2285,6 +2592,8 @@ public Builder setIndexConfigs( return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2305,14 +2614,15 @@ public Builder addIndexConfigs(com.google.logging.v2.IndexConfig value) { return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public Builder addIndexConfigs( - int index, com.google.logging.v2.IndexConfig value) { + public Builder addIndexConfigs(int index, com.google.logging.v2.IndexConfig value) { if (indexConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2326,14 +2636,15 @@ public Builder addIndexConfigs( return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public Builder addIndexConfigs( - com.google.logging.v2.IndexConfig.Builder builderForValue) { + public Builder addIndexConfigs(com.google.logging.v2.IndexConfig.Builder builderForValue) { if (indexConfigsBuilder_ == null) { ensureIndexConfigsIsMutable(); indexConfigs_.add(builderForValue.build()); @@ -2344,6 +2655,8 @@ public Builder addIndexConfigs( return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2362,6 +2675,8 @@ public Builder addIndexConfigs( return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2372,8 +2687,7 @@ public Builder addAllIndexConfigs( java.lang.Iterable values) { if (indexConfigsBuilder_ == null) { ensureIndexConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, indexConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexConfigs_); onChanged(); } else { indexConfigsBuilder_.addAllMessages(values); @@ -2381,6 +2695,8 @@ public Builder addAllIndexConfigs( return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2398,6 +2714,8 @@ public Builder clearIndexConfigs() { return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2415,39 +2733,44 @@ public Builder removeIndexConfigs(int index) { return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public com.google.logging.v2.IndexConfig.Builder getIndexConfigsBuilder( - int index) { + public com.google.logging.v2.IndexConfig.Builder getIndexConfigsBuilder(int index) { return getIndexConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder( - int index) { + public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int index) { if (indexConfigsBuilder_ == null) { - return indexConfigs_.get(index); } else { + return indexConfigs_.get(index); + } else { return indexConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public java.util.List - getIndexConfigsOrBuilderList() { + public java.util.List + getIndexConfigsOrBuilderList() { if (indexConfigsBuilder_ != null) { return indexConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -2455,6 +2778,8 @@ public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder( } } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2462,42 +2787,47 @@ public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder( * repeated .google.logging.v2.IndexConfig index_configs = 17; */ public com.google.logging.v2.IndexConfig.Builder addIndexConfigsBuilder() { - return getIndexConfigsFieldBuilder().addBuilder( - com.google.logging.v2.IndexConfig.getDefaultInstance()); + return getIndexConfigsFieldBuilder() + .addBuilder(com.google.logging.v2.IndexConfig.getDefaultInstance()); } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public com.google.logging.v2.IndexConfig.Builder addIndexConfigsBuilder( - int index) { - return getIndexConfigsFieldBuilder().addBuilder( - index, com.google.logging.v2.IndexConfig.getDefaultInstance()); + public com.google.logging.v2.IndexConfig.Builder addIndexConfigsBuilder(int index) { + return getIndexConfigsFieldBuilder() + .addBuilder(index, com.google.logging.v2.IndexConfig.getDefaultInstance()); } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - public java.util.List - getIndexConfigsBuilderList() { + public java.util.List getIndexConfigsBuilderList() { return getIndexConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.IndexConfig, com.google.logging.v2.IndexConfig.Builder, com.google.logging.v2.IndexConfigOrBuilder> + com.google.logging.v2.IndexConfig, + com.google.logging.v2.IndexConfig.Builder, + com.google.logging.v2.IndexConfigOrBuilder> getIndexConfigsFieldBuilder() { if (indexConfigsBuilder_ == null) { - indexConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.IndexConfig, com.google.logging.v2.IndexConfig.Builder, com.google.logging.v2.IndexConfigOrBuilder>( - indexConfigs_, - ((bitField0_ & 0x00000200) != 0), - getParentForChildren(), - isClean()); + indexConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.IndexConfig, + com.google.logging.v2.IndexConfig.Builder, + com.google.logging.v2.IndexConfigOrBuilder>( + indexConfigs_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); indexConfigs_ = null; } return indexConfigsBuilder_; @@ -2505,8 +2835,13 @@ public com.google.logging.v2.IndexConfig.Builder addIndexConfigsBuilder( private com.google.logging.v2.CmekSettings cmekSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CmekSettings, com.google.logging.v2.CmekSettings.Builder, com.google.logging.v2.CmekSettingsOrBuilder> cmekSettingsBuilder_; + com.google.logging.v2.CmekSettings, + com.google.logging.v2.CmekSettings.Builder, + com.google.logging.v2.CmekSettingsOrBuilder> + cmekSettingsBuilder_; /** + * + * *
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2516,12 +2851,15 @@ public com.google.logging.v2.IndexConfig.Builder addIndexConfigsBuilder(
      * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; + * * @return Whether the cmekSettings field is set. */ public boolean hasCmekSettings() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2531,16 +2869,21 @@ public boolean hasCmekSettings() {
      * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; + * * @return The cmekSettings. */ public com.google.logging.v2.CmekSettings getCmekSettings() { if (cmekSettingsBuilder_ == null) { - return cmekSettings_ == null ? com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_; + return cmekSettings_ == null + ? com.google.logging.v2.CmekSettings.getDefaultInstance() + : cmekSettings_; } else { return cmekSettingsBuilder_.getMessage(); } } /** + * + * *
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2565,6 +2908,8 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2575,8 +2920,7 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) {
      *
      * .google.logging.v2.CmekSettings cmek_settings = 19;
      */
-    public Builder setCmekSettings(
-        com.google.logging.v2.CmekSettings.Builder builderForValue) {
+    public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builderForValue) {
       if (cmekSettingsBuilder_ == null) {
         cmekSettings_ = builderForValue.build();
       } else {
@@ -2587,6 +2931,8 @@ public Builder setCmekSettings(
       return this;
     }
     /**
+     *
+     *
      * 
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2599,9 +2945,9 @@ public Builder setCmekSettings(
      */
     public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) {
       if (cmekSettingsBuilder_ == null) {
-        if (((bitField0_ & 0x00000400) != 0) &&
-          cmekSettings_ != null &&
-          cmekSettings_ != com.google.logging.v2.CmekSettings.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000400) != 0)
+            && cmekSettings_ != null
+            && cmekSettings_ != com.google.logging.v2.CmekSettings.getDefaultInstance()) {
           getCmekSettingsBuilder().mergeFrom(value);
         } else {
           cmekSettings_ = value;
@@ -2616,6 +2962,8 @@ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2637,6 +2985,8 @@ public Builder clearCmekSettings() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2653,6 +3003,8 @@ public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() {
       return getCmekSettingsFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2667,11 +3019,14 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() {
       if (cmekSettingsBuilder_ != null) {
         return cmekSettingsBuilder_.getMessageOrBuilder();
       } else {
-        return cmekSettings_ == null ?
-            com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_;
+        return cmekSettings_ == null
+            ? com.google.logging.v2.CmekSettings.getDefaultInstance()
+            : cmekSettings_;
       }
     }
     /**
+     *
+     *
      * 
      * The CMEK settings of the log bucket. If present, new log entries written to
      * this log bucket are encrypted using the CMEK key provided in this
@@ -2683,21 +3038,24 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() {
      * .google.logging.v2.CmekSettings cmek_settings = 19;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.logging.v2.CmekSettings, com.google.logging.v2.CmekSettings.Builder, com.google.logging.v2.CmekSettingsOrBuilder> 
+            com.google.logging.v2.CmekSettings,
+            com.google.logging.v2.CmekSettings.Builder,
+            com.google.logging.v2.CmekSettingsOrBuilder>
         getCmekSettingsFieldBuilder() {
       if (cmekSettingsBuilder_ == null) {
-        cmekSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.logging.v2.CmekSettings, com.google.logging.v2.CmekSettings.Builder, com.google.logging.v2.CmekSettingsOrBuilder>(
-                getCmekSettings(),
-                getParentForChildren(),
-                isClean());
+        cmekSettingsBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.logging.v2.CmekSettings,
+                com.google.logging.v2.CmekSettings.Builder,
+                com.google.logging.v2.CmekSettingsOrBuilder>(
+                getCmekSettings(), getParentForChildren(), isClean());
         cmekSettings_ = null;
       }
       return cmekSettingsBuilder_;
     }
+
     @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);
     }
 
@@ -2707,12 +3065,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.logging.v2.LogBucket)
   }
 
   // @@protoc_insertion_point(class_scope:google.logging.v2.LogBucket)
   private static final com.google.logging.v2.LogBucket DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.logging.v2.LogBucket();
   }
@@ -2721,27 +3079,27 @@ public static com.google.logging.v2.LogBucket getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public LogBucket parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public LogBucket parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2756,6 +3114,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.logging.v2.LogBucket getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java
similarity index 100%
rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java
rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java
similarity index 83%
rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java
rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java
index 36b572204..0ed2b91a3 100644
--- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.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/logging/v2/logging_config.proto
 
 // Protobuf Java Version: 3.25.3
 package com.google.logging.v2;
 
-public interface LogBucketOrBuilder extends
+public interface LogBucketOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.logging.v2.LogBucket)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Output only. The resource name of the bucket.
    *
@@ -26,10 +44,13 @@ public interface LogBucketOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the bucket.
    *
@@ -47,89 +68,118 @@ public interface LogBucketOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Describes this bucket.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Describes this bucket.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The creation timestamp of the bucket. This is not set for any
    * of the default buckets.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The creation timestamp of the bucket. This is not set for any
    * of the default buckets.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The creation timestamp of the bucket. This is not set for any
    * of the default buckets.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The last update timestamp of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The last update timestamp of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The last update timestamp of the bucket.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Logs will be retained by default for this amount of time, after which they
    * will automatically be deleted. The minimum retention period is 1 day. If
@@ -138,11 +188,14 @@ public interface LogBucketOrBuilder extends
    * 
* * int32 retention_days = 11; + * * @return The retentionDays. */ int getRetentionDays(); /** + * + * *
    * Whether the bucket is locked.
    *
@@ -151,30 +204,43 @@ public interface LogBucketOrBuilder extends
    * 
* * bool locked = 9; + * * @return The locked. */ boolean getLocked(); /** + * + * *
    * Output only. The bucket lifecycle state.
    * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for lifecycleState. */ int getLifecycleStateValue(); /** + * + * *
    * Output only. The bucket lifecycle state.
    * 
* - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lifecycleState. */ com.google.logging.v2.LifecycleState getLifecycleState(); /** + * + * *
    * Whether log analytics is enabled for this bucket.
    *
@@ -182,11 +248,14 @@ public interface LogBucketOrBuilder extends
    * 
* * bool analytics_enabled = 14; + * * @return The analyticsEnabled. */ boolean getAnalyticsEnabled(); /** + * + * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -198,11 +267,13 @@ public interface LogBucketOrBuilder extends
    * 
* * repeated string restricted_fields = 15; + * * @return A list containing the restrictedFields. */ - java.util.List - getRestrictedFieldsList(); + java.util.List getRestrictedFieldsList(); /** + * + * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -214,10 +285,13 @@ public interface LogBucketOrBuilder extends
    * 
* * repeated string restricted_fields = 15; + * * @return The count of restrictedFields. */ int getRestrictedFieldsCount(); /** + * + * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -229,11 +303,14 @@ public interface LogBucketOrBuilder extends
    * 
* * repeated string restricted_fields = 15; + * * @param index The index of the element to return. * @return The restrictedFields at the given index. */ java.lang.String getRestrictedFields(int index); /** + * + * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -245,22 +322,25 @@ public interface LogBucketOrBuilder extends
    * 
* * repeated string restricted_fields = 15; + * * @param index The index of the value to return. * @return The bytes of the restrictedFields at the given index. */ - com.google.protobuf.ByteString - getRestrictedFieldsBytes(int index); + com.google.protobuf.ByteString getRestrictedFieldsBytes(int index); /** + * + * *
    * A list of indexed fields and related configuration data.
    * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - java.util.List - getIndexConfigsList(); + java.util.List getIndexConfigsList(); /** + * + * *
    * A list of indexed fields and related configuration data.
    * 
@@ -269,6 +349,8 @@ public interface LogBucketOrBuilder extends */ com.google.logging.v2.IndexConfig getIndexConfigs(int index); /** + * + * *
    * A list of indexed fields and related configuration data.
    * 
@@ -277,25 +359,30 @@ public interface LogBucketOrBuilder extends */ int getIndexConfigsCount(); /** + * + * *
    * A list of indexed fields and related configuration data.
    * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - java.util.List + java.util.List getIndexConfigsOrBuilderList(); /** + * + * *
    * A list of indexed fields and related configuration data.
    * 
* * repeated .google.logging.v2.IndexConfig index_configs = 17; */ - com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder( - int index); + com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int index); /** + * + * *
    * The CMEK settings of the log bucket. If present, new log entries written to
    * this log bucket are encrypted using the CMEK key provided in this
@@ -305,10 +392,13 @@ com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(
    * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; + * * @return Whether the cmekSettings field is set. */ boolean hasCmekSettings(); /** + * + * *
    * The CMEK settings of the log bucket. If present, new log entries written to
    * this log bucket are encrypted using the CMEK key provided in this
@@ -318,10 +408,13 @@ com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(
    * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; + * * @return The cmekSettings. */ com.google.logging.v2.CmekSettings getCmekSettings(); /** + * + * *
    * The CMEK settings of the log bucket. If present, new log entries written to
    * this log bucket are encrypted using the CMEK key provided in this
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java
similarity index 76%
rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java
rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java
index 34d9f2e7a..b73812613 100644
--- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.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/logging/v2/log_entry.proto
 
@@ -5,21 +20,24 @@
 package com.google.logging.v2;
 
 /**
+ *
+ *
  * 
  * An individual entry in a log.
  * 
* * Protobuf type {@code google.logging.v2.LogEntry} */ -public final class LogEntry extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LogEntry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.LogEntry) LogEntryOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LogEntry.newBuilder() to construct. private LogEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LogEntry() { logName_ = ""; severity_ = 0; @@ -30,14 +48,13 @@ private LogEntry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LogEntry(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LogEntryProto + .internal_static_google_logging_v2_LogEntry_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -48,30 +65,35 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 11: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntry_fieldAccessorTable + return com.google.logging.v2.LogEntryProto + .internal_static_google_logging_v2_LogEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.LogEntry.class, com.google.logging.v2.LogEntry.Builder.class); } private int bitField0_; private int payloadCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object payload_; + public enum PayloadCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PROTO_PAYLOAD(2), TEXT_PAYLOAD(3), JSON_PAYLOAD(6), PAYLOAD_NOT_SET(0); private final int value; + private PayloadCase(int value) { this.value = value; } @@ -87,28 +109,35 @@ public static PayloadCase valueOf(int value) { public static PayloadCase forNumber(int value) { switch (value) { - case 2: return PROTO_PAYLOAD; - case 3: return TEXT_PAYLOAD; - case 6: return JSON_PAYLOAD; - case 0: return PAYLOAD_NOT_SET; - default: return null; + case 2: + return PROTO_PAYLOAD; + case 3: + return TEXT_PAYLOAD; + case 6: + return JSON_PAYLOAD; + case 0: + return PAYLOAD_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); } public static final int LOG_NAME_FIELD_NUMBER = 12; + @SuppressWarnings("serial") private volatile java.lang.Object logName_ = ""; /** + * + * *
    * Required. The resource name of the log to which this log entry belongs:
    *
@@ -136,6 +165,7 @@ public int getNumber() {
    * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; + * * @return The logName. */ @java.lang.Override @@ -144,14 +174,15 @@ public java.lang.String getLogName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logName_ = s; return s; } } /** + * + * *
    * Required. The resource name of the log to which this log entry belongs:
    *
@@ -179,16 +210,15 @@ public java.lang.String getLogName() {
    * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for logName. */ @java.lang.Override - public com.google.protobuf.ByteString - getLogNameBytes() { + public com.google.protobuf.ByteString getLogNameBytes() { java.lang.Object ref = logName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); logName_ = b; return b; } else { @@ -199,6 +229,8 @@ public java.lang.String getLogName() { public static final int RESOURCE_FIELD_NUMBER = 8; private com.google.api.MonitoredResource resource_; /** + * + * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -207,7 +239,9 @@ public java.lang.String getLogName() {
    * the error.
    * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ @java.lang.Override @@ -215,6 +249,8 @@ public boolean hasResource() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -223,7 +259,9 @@ public boolean hasResource() {
    * the error.
    * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ @java.lang.Override @@ -231,6 +269,8 @@ public com.google.api.MonitoredResource getResource() { return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; } /** + * + * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -239,7 +279,8 @@ public com.google.api.MonitoredResource getResource() {
    * the error.
    * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { @@ -248,6 +289,8 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { public static final int PROTO_PAYLOAD_FIELD_NUMBER = 2; /** + * + * *
    * The log entry payload, represented as a protocol buffer. Some Google
    * Cloud Platform services use this field for their log entry payloads.
@@ -260,6 +303,7 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
    * 
* * .google.protobuf.Any proto_payload = 2; + * * @return Whether the protoPayload field is set. */ @java.lang.Override @@ -267,6 +311,8 @@ public boolean hasProtoPayload() { return payloadCase_ == 2; } /** + * + * *
    * The log entry payload, represented as a protocol buffer. Some Google
    * Cloud Platform services use this field for their log entry payloads.
@@ -279,16 +325,19 @@ public boolean hasProtoPayload() {
    * 
* * .google.protobuf.Any proto_payload = 2; + * * @return The protoPayload. */ @java.lang.Override public com.google.protobuf.Any getProtoPayload() { if (payloadCase_ == 2) { - return (com.google.protobuf.Any) payload_; + return (com.google.protobuf.Any) payload_; } return com.google.protobuf.Any.getDefaultInstance(); } /** + * + * *
    * The log entry payload, represented as a protocol buffer. Some Google
    * Cloud Platform services use this field for their log entry payloads.
@@ -305,29 +354,35 @@ public com.google.protobuf.Any getProtoPayload() {
   @java.lang.Override
   public com.google.protobuf.AnyOrBuilder getProtoPayloadOrBuilder() {
     if (payloadCase_ == 2) {
-       return (com.google.protobuf.Any) payload_;
+      return (com.google.protobuf.Any) payload_;
     }
     return com.google.protobuf.Any.getDefaultInstance();
   }
 
   public static final int TEXT_PAYLOAD_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * The log entry payload, represented as a Unicode string (UTF-8).
    * 
* * string text_payload = 3; + * * @return Whether the textPayload field is set. */ public boolean hasTextPayload() { return payloadCase_ == 3; } /** + * + * *
    * The log entry payload, represented as a Unicode string (UTF-8).
    * 
* * string text_payload = 3; + * * @return The textPayload. */ public java.lang.String getTextPayload() { @@ -338,8 +393,7 @@ public java.lang.String getTextPayload() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (payloadCase_ == 3) { payload_ = s; @@ -348,23 +402,24 @@ public java.lang.String getTextPayload() { } } /** + * + * *
    * The log entry payload, represented as a Unicode string (UTF-8).
    * 
* * string text_payload = 3; + * * @return The bytes for textPayload. */ - public com.google.protobuf.ByteString - getTextPayloadBytes() { + public com.google.protobuf.ByteString getTextPayloadBytes() { java.lang.Object ref = ""; if (payloadCase_ == 3) { ref = payload_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (payloadCase_ == 3) { payload_ = b; } @@ -376,12 +431,15 @@ public java.lang.String getTextPayload() { public static final int JSON_PAYLOAD_FIELD_NUMBER = 6; /** + * + * *
    * The log entry payload, represented as a structure that is
    * expressed as a JSON object.
    * 
* * .google.protobuf.Struct json_payload = 6; + * * @return Whether the jsonPayload field is set. */ @java.lang.Override @@ -389,22 +447,27 @@ public boolean hasJsonPayload() { return payloadCase_ == 6; } /** + * + * *
    * The log entry payload, represented as a structure that is
    * expressed as a JSON object.
    * 
* * .google.protobuf.Struct json_payload = 6; + * * @return The jsonPayload. */ @java.lang.Override public com.google.protobuf.Struct getJsonPayload() { if (payloadCase_ == 6) { - return (com.google.protobuf.Struct) payload_; + return (com.google.protobuf.Struct) payload_; } return com.google.protobuf.Struct.getDefaultInstance(); } /** + * + * *
    * The log entry payload, represented as a structure that is
    * expressed as a JSON object.
@@ -415,7 +478,7 @@ public com.google.protobuf.Struct getJsonPayload() {
   @java.lang.Override
   public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
     if (payloadCase_ == 6) {
-       return (com.google.protobuf.Struct) payload_;
+      return (com.google.protobuf.Struct) payload_;
     }
     return com.google.protobuf.Struct.getDefaultInstance();
   }
@@ -423,6 +486,8 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
   public static final int TIMESTAMP_FIELD_NUMBER = 9;
   private com.google.protobuf.Timestamp timestamp_;
   /**
+   *
+   *
    * 
    * Optional. The time the event described by the log entry occurred. This time
    * is used to compute the log entry's age and to enforce the logs retention
@@ -438,7 +503,9 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
    * those time boundaries aren't ingested by Logging.
    * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the timestamp field is set. */ @java.lang.Override @@ -446,6 +513,8 @@ public boolean hasTimestamp() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Optional. The time the event described by the log entry occurred. This time
    * is used to compute the log entry's age and to enforce the logs retention
@@ -461,7 +530,9 @@ public boolean hasTimestamp() {
    * those time boundaries aren't ingested by Logging.
    * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The timestamp. */ @java.lang.Override @@ -469,6 +540,8 @@ public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** + * + * *
    * Optional. The time the event described by the log entry occurred. This time
    * is used to compute the log entry's age and to enforce the logs retention
@@ -484,7 +557,8 @@ public com.google.protobuf.Timestamp getTimestamp() {
    * those time boundaries aren't ingested by Logging.
    * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { @@ -494,11 +568,16 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { public static final int RECEIVE_TIMESTAMP_FIELD_NUMBER = 24; private com.google.protobuf.Timestamp receiveTimestamp_; /** + * + * *
    * Output only. The time the log entry was received by Logging.
    * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the receiveTimestamp field is set. */ @java.lang.Override @@ -506,61 +585,88 @@ public boolean hasReceiveTimestamp() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * Output only. The time the log entry was received by Logging.
    * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The receiveTimestamp. */ @java.lang.Override public com.google.protobuf.Timestamp getReceiveTimestamp() { - return receiveTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : receiveTimestamp_; + return receiveTimestamp_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : receiveTimestamp_; } /** + * + * *
    * Output only. The time the log entry was received by Logging.
    * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder() { - return receiveTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : receiveTimestamp_; + return receiveTimestamp_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : receiveTimestamp_; } public static final int SEVERITY_FIELD_NUMBER = 10; private int severity_ = 0; /** + * + * *
    * Optional. The severity of the log entry. The default value is
    * `LogSeverity.DEFAULT`.
    * 
* - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
    * Optional. The severity of the log entry. The default value is
    * `LogSeverity.DEFAULT`.
    * 
* - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The severity. */ - @java.lang.Override public com.google.logging.type.LogSeverity getSeverity() { - com.google.logging.type.LogSeverity result = com.google.logging.type.LogSeverity.forNumber(severity_); + @java.lang.Override + public com.google.logging.type.LogSeverity getSeverity() { + com.google.logging.type.LogSeverity result = + com.google.logging.type.LogSeverity.forNumber(severity_); return result == null ? com.google.logging.type.LogSeverity.UNRECOGNIZED : result; } public static final int INSERT_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object insertId_ = ""; /** + * + * *
    * Optional. A unique identifier for the log entry. If you provide a value,
    * then Logging considers other log entries in the same project, with the same
@@ -576,6 +682,7 @@ public com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder() {
    * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The insertId. */ @java.lang.Override @@ -584,14 +691,15 @@ public java.lang.String getInsertId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); insertId_ = s; return s; } } /** + * + * *
    * Optional. A unique identifier for the log entry. If you provide a value,
    * then Logging considers other log entries in the same project, with the same
@@ -607,16 +715,15 @@ public java.lang.String getInsertId() {
    * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for insertId. */ @java.lang.Override - public com.google.protobuf.ByteString - getInsertIdBytes() { + public com.google.protobuf.ByteString getInsertIdBytes() { java.lang.Object ref = insertId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); insertId_ = b; return b; } else { @@ -627,12 +734,17 @@ public java.lang.String getInsertId() { public static final int HTTP_REQUEST_FIELD_NUMBER = 7; private com.google.logging.type.HttpRequest httpRequest_; /** + * + * *
    * Optional. Information about the HTTP request associated with this log
    * entry, if applicable.
    * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the httpRequest field is set. */ @java.lang.Override @@ -640,58 +752,73 @@ public boolean hasHttpRequest() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
    * Optional. Information about the HTTP request associated with this log
    * entry, if applicable.
    * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The httpRequest. */ @java.lang.Override public com.google.logging.type.HttpRequest getHttpRequest() { - return httpRequest_ == null ? com.google.logging.type.HttpRequest.getDefaultInstance() : httpRequest_; + return httpRequest_ == null + ? com.google.logging.type.HttpRequest.getDefaultInstance() + : httpRequest_; } /** + * + * *
    * Optional. Information about the HTTP request associated with this log
    * entry, if applicable.
    * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.logging.type.HttpRequestOrBuilder getHttpRequestOrBuilder() { - return httpRequest_ == null ? com.google.logging.type.HttpRequest.getDefaultInstance() : httpRequest_; + return httpRequest_ == null + ? com.google.logging.type.HttpRequest.getDefaultInstance() + : httpRequest_; } public static final int LABELS_FIELD_NUMBER = 11; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.logging.v2.LogEntryProto + .internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -712,20 +839,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -750,6 +878,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -770,17 +900,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -801,11 +933,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -815,12 +947,17 @@ public java.lang.String getLabelsOrThrow(
   public static final int OPERATION_FIELD_NUMBER = 15;
   private com.google.logging.v2.LogEntryOperation operation_;
   /**
+   *
+   *
    * 
    * Optional. Information about an operation associated with the log entry, if
    * applicable.
    * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the operation field is set. */ @java.lang.Override @@ -828,35 +965,51 @@ public boolean hasOperation() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
    * Optional. Information about an operation associated with the log entry, if
    * applicable.
    * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The operation. */ @java.lang.Override public com.google.logging.v2.LogEntryOperation getOperation() { - return operation_ == null ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() : operation_; + return operation_ == null + ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() + : operation_; } /** + * + * *
    * Optional. Information about an operation associated with the log entry, if
    * applicable.
    * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder() { - return operation_ == null ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() : operation_; + return operation_ == null + ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() + : operation_; } public static final int TRACE_FIELD_NUMBER = 22; + @SuppressWarnings("serial") private volatile java.lang.Object trace_ = ""; /** + * + * *
    * Optional. The REST resource name of the trace being written to
    * [Cloud Trace](https://cloud.google.com/trace) in
@@ -870,6 +1023,7 @@ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder()
    * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The trace. */ @java.lang.Override @@ -878,14 +1032,15 @@ public java.lang.String getTrace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trace_ = s; return s; } } /** + * + * *
    * Optional. The REST resource name of the trace being written to
    * [Cloud Trace](https://cloud.google.com/trace) in
@@ -899,16 +1054,15 @@ public java.lang.String getTrace() {
    * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for trace. */ @java.lang.Override - public com.google.protobuf.ByteString - getTraceBytes() { + public com.google.protobuf.ByteString getTraceBytes() { java.lang.Object ref = trace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trace_ = b; return b; } else { @@ -917,9 +1071,12 @@ public java.lang.String getTrace() { } public static final int SPAN_ID_FIELD_NUMBER = 27; + @SuppressWarnings("serial") private volatile java.lang.Object spanId_ = ""; /** + * + * *
    * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
    * associated with the current operation in which the log is being written.
@@ -954,6 +1111,7 @@ public java.lang.String getTrace() {
    * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spanId. */ @java.lang.Override @@ -962,14 +1120,15 @@ public java.lang.String getSpanId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spanId_ = s; return s; } } /** + * + * *
    * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
    * associated with the current operation in which the log is being written.
@@ -1004,16 +1163,15 @@ public java.lang.String getSpanId() {
    * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for spanId. */ @java.lang.Override - public com.google.protobuf.ByteString - getSpanIdBytes() { + public com.google.protobuf.ByteString getSpanIdBytes() { java.lang.Object ref = spanId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spanId_ = b; return b; } else { @@ -1024,6 +1182,8 @@ public java.lang.String getSpanId() { public static final int TRACE_SAMPLED_FIELD_NUMBER = 30; private boolean traceSampled_ = false; /** + * + * *
    * Optional. The sampling decision of the trace associated with the log entry.
    *
@@ -1035,6 +1195,7 @@ public java.lang.String getSpanId() {
    * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The traceSampled. */ @java.lang.Override @@ -1045,12 +1206,17 @@ public boolean getTraceSampled() { public static final int SOURCE_LOCATION_FIELD_NUMBER = 23; private com.google.logging.v2.LogEntrySourceLocation sourceLocation_; /** + * + * *
    * Optional. Source code location information associated with the log entry,
    * if any.
    * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sourceLocation field is set. */ @java.lang.Override @@ -1058,40 +1224,56 @@ public boolean hasSourceLocation() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
    * Optional. Source code location information associated with the log entry,
    * if any.
    * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sourceLocation. */ @java.lang.Override public com.google.logging.v2.LogEntrySourceLocation getSourceLocation() { - return sourceLocation_ == null ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() : sourceLocation_; + return sourceLocation_ == null + ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() + : sourceLocation_; } /** + * + * *
    * Optional. Source code location information associated with the log entry,
    * if any.
    * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder() { - return sourceLocation_ == null ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() : sourceLocation_; + return sourceLocation_ == null + ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() + : sourceLocation_; } public static final int SPLIT_FIELD_NUMBER = 35; private com.google.logging.v2.LogSplit split_; /** + * + * *
    * Optional. Information indicating this LogEntry is part of a sequence of
    * multiple log entries split from a single LogEntry.
    * 
* * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the split field is set. */ @java.lang.Override @@ -1099,12 +1281,15 @@ public boolean hasSplit() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
    * Optional. Information indicating this LogEntry is part of a sequence of
    * multiple log entries split from a single LogEntry.
    * 
* * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The split. */ @java.lang.Override @@ -1112,6 +1297,8 @@ public com.google.logging.v2.LogSplit getSplit() { return split_ == null ? com.google.logging.v2.LogSplit.getDefaultInstance() : split_; } /** + * + * *
    * Optional. Information indicating this LogEntry is part of a sequence of
    * multiple log entries split from a single LogEntry.
@@ -1125,6 +1312,7 @@ public com.google.logging.v2.LogSplitOrBuilder getSplitOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1136,8 +1324,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 (payloadCase_ == 2) {
       output.writeMessage(2, (com.google.protobuf.Any) payload_);
     }
@@ -1162,12 +1349,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (severity_ != com.google.logging.type.LogSeverity.DEFAULT.getNumber()) {
       output.writeEnum(10, severity_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        11);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11);
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 12, logName_);
     }
@@ -1202,8 +1385,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (payloadCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.protobuf.Any) payload_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.protobuf.Any) payload_);
     }
     if (payloadCase_ == 3) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, payload_);
@@ -1212,63 +1396,55 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, insertId_);
     }
     if (payloadCase_ == 6) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, (com.google.protobuf.Struct) payload_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              6, (com.google.protobuf.Struct) payload_);
     }
     if (((bitField0_ & 0x00000008) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getHttpRequest());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getHttpRequest());
     }
     if (((bitField0_ & 0x00000001) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getResource());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getResource());
     }
     if (((bitField0_ & 0x00000002) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getTimestamp());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getTimestamp());
     }
     if (severity_ != com.google.logging.type.LogSeverity.DEFAULT.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(10, severity_);
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(11, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, severity_);
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__);
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, logName_);
     }
     if (((bitField0_ & 0x00000010) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(15, getOperation());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getOperation());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trace_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, trace_);
     }
     if (((bitField0_ & 0x00000020) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(23, getSourceLocation());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSourceLocation());
     }
     if (((bitField0_ & 0x00000004) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(24, getReceiveTimestamp());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getReceiveTimestamp());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(spanId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(27, spanId_);
     }
     if (traceSampled_ != false) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBoolSize(30, traceSampled_);
+      size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, traceSampled_);
     }
     if (((bitField0_ & 0x00000040) != 0)) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(35, getSplit());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, getSplit());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1278,74 +1454,58 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.logging.v2.LogEntry)) {
       return super.equals(obj);
     }
     com.google.logging.v2.LogEntry other = (com.google.logging.v2.LogEntry) obj;
 
-    if (!getLogName()
-        .equals(other.getLogName())) return false;
+    if (!getLogName().equals(other.getLogName())) return false;
     if (hasResource() != other.hasResource()) return false;
     if (hasResource()) {
-      if (!getResource()
-          .equals(other.getResource())) return false;
+      if (!getResource().equals(other.getResource())) return false;
     }
     if (hasTimestamp() != other.hasTimestamp()) return false;
     if (hasTimestamp()) {
-      if (!getTimestamp()
-          .equals(other.getTimestamp())) return false;
+      if (!getTimestamp().equals(other.getTimestamp())) return false;
     }
     if (hasReceiveTimestamp() != other.hasReceiveTimestamp()) return false;
     if (hasReceiveTimestamp()) {
-      if (!getReceiveTimestamp()
-          .equals(other.getReceiveTimestamp())) return false;
+      if (!getReceiveTimestamp().equals(other.getReceiveTimestamp())) return false;
     }
     if (severity_ != other.severity_) return false;
-    if (!getInsertId()
-        .equals(other.getInsertId())) return false;
+    if (!getInsertId().equals(other.getInsertId())) return false;
     if (hasHttpRequest() != other.hasHttpRequest()) return false;
     if (hasHttpRequest()) {
-      if (!getHttpRequest()
-          .equals(other.getHttpRequest())) return false;
+      if (!getHttpRequest().equals(other.getHttpRequest())) return false;
     }
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (hasOperation() != other.hasOperation()) return false;
     if (hasOperation()) {
-      if (!getOperation()
-          .equals(other.getOperation())) return false;
-    }
-    if (!getTrace()
-        .equals(other.getTrace())) return false;
-    if (!getSpanId()
-        .equals(other.getSpanId())) return false;
-    if (getTraceSampled()
-        != other.getTraceSampled()) return false;
+      if (!getOperation().equals(other.getOperation())) return false;
+    }
+    if (!getTrace().equals(other.getTrace())) return false;
+    if (!getSpanId().equals(other.getSpanId())) return false;
+    if (getTraceSampled() != other.getTraceSampled()) return false;
     if (hasSourceLocation() != other.hasSourceLocation()) return false;
     if (hasSourceLocation()) {
-      if (!getSourceLocation()
-          .equals(other.getSourceLocation())) return false;
+      if (!getSourceLocation().equals(other.getSourceLocation())) return false;
     }
     if (hasSplit() != other.hasSplit()) return false;
     if (hasSplit()) {
-      if (!getSplit()
-          .equals(other.getSplit())) return false;
+      if (!getSplit().equals(other.getSplit())) return false;
     }
     if (!getPayloadCase().equals(other.getPayloadCase())) return false;
     switch (payloadCase_) {
       case 2:
-        if (!getProtoPayload()
-            .equals(other.getProtoPayload())) return false;
+        if (!getProtoPayload().equals(other.getProtoPayload())) return false;
         break;
       case 3:
-        if (!getTextPayload()
-            .equals(other.getTextPayload())) return false;
+        if (!getTextPayload().equals(other.getTextPayload())) return false;
         break;
       case 6:
-        if (!getJsonPayload()
-            .equals(other.getJsonPayload())) return false;
+        if (!getJsonPayload().equals(other.getJsonPayload())) return false;
         break;
       case 0:
       default:
@@ -1396,8 +1556,7 @@ public int hashCode() {
     hash = (37 * hash) + SPAN_ID_FIELD_NUMBER;
     hash = (53 * hash) + getSpanId().hashCode();
     hash = (37 * hash) + TRACE_SAMPLED_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-        getTraceSampled());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTraceSampled());
     if (hasSourceLocation()) {
       hash = (37 * hash) + SOURCE_LOCATION_FIELD_NUMBER;
       hash = (53 * hash) + getSourceLocation().hashCode();
@@ -1427,112 +1586,116 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.logging.v2.LogEntry parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.logging.v2.LogEntry parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.LogEntry parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.logging.v2.LogEntry parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.logging.v2.LogEntry parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.LogEntry parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.LogEntry parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.LogEntry parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.LogEntry 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.logging.v2.LogEntry parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   public static com.google.logging.v2.LogEntry parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.logging.v2.LogEntry parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.logging.v2.LogEntry parseFrom(
-      com.google.protobuf.CodedInputStream input)
+
+  public static com.google.logging.v2.LogEntry parseFrom(com.google.protobuf.CodedInputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.LogEntry parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.logging.v2.LogEntry prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * An individual entry in a log.
    * 
* * Protobuf type {@code google.logging.v2.LogEntry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.LogEntry) com.google.logging.v2.LogEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LogEntryProto + .internal_static_google_logging_v2_LogEntry_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -1542,10 +1705,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 11: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -1553,14 +1716,15 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi case 11: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntry_fieldAccessorTable + return com.google.logging.v2.LogEntryProto + .internal_static_google_logging_v2_LogEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.LogEntry.class, com.google.logging.v2.LogEntry.Builder.class); } @@ -1570,14 +1734,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) { getResourceFieldBuilder(); getTimestampFieldBuilder(); getReceiveTimestampFieldBuilder(); @@ -1587,6 +1750,7 @@ private void maybeForceBuilderInitialization() { getSplitFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1645,9 +1809,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LogEntryProto + .internal_static_google_logging_v2_LogEntry_descriptor; } @java.lang.Override @@ -1667,7 +1831,9 @@ public com.google.logging.v2.LogEntry build() { @java.lang.Override public com.google.logging.v2.LogEntry buildPartial() { com.google.logging.v2.LogEntry result = new com.google.logging.v2.LogEntry(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1680,21 +1846,16 @@ private void buildPartial0(com.google.logging.v2.LogEntry result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.resource_ = resourceBuilder_ == null - ? resource_ - : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.timestamp_ = timestampBuilder_ == null - ? timestamp_ - : timestampBuilder_.build(); + result.timestamp_ = timestampBuilder_ == null ? timestamp_ : timestampBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.receiveTimestamp_ = receiveTimestampBuilder_ == null - ? receiveTimestamp_ - : receiveTimestampBuilder_.build(); + result.receiveTimestamp_ = + receiveTimestampBuilder_ == null ? receiveTimestamp_ : receiveTimestampBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000080) != 0)) { @@ -1704,9 +1865,8 @@ private void buildPartial0(com.google.logging.v2.LogEntry result) { result.insertId_ = insertId_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.httpRequest_ = httpRequestBuilder_ == null - ? httpRequest_ - : httpRequestBuilder_.build(); + result.httpRequest_ = + httpRequestBuilder_ == null ? httpRequest_ : httpRequestBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000400) != 0)) { @@ -1714,9 +1874,7 @@ private void buildPartial0(com.google.logging.v2.LogEntry result) { result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000800) != 0)) { - result.operation_ = operationBuilder_ == null - ? operation_ - : operationBuilder_.build(); + result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00001000) != 0)) { @@ -1729,15 +1887,12 @@ private void buildPartial0(com.google.logging.v2.LogEntry result) { result.traceSampled_ = traceSampled_; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.sourceLocation_ = sourceLocationBuilder_ == null - ? sourceLocation_ - : sourceLocationBuilder_.build(); + result.sourceLocation_ = + sourceLocationBuilder_ == null ? sourceLocation_ : sourceLocationBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.split_ = splitBuilder_ == null - ? split_ - : splitBuilder_.build(); + result.split_ = splitBuilder_ == null ? split_ : splitBuilder_.build(); to_bitField0_ |= 0x00000040; } result.bitField0_ |= to_bitField0_; @@ -1746,12 +1901,10 @@ private void buildPartial0(com.google.logging.v2.LogEntry result) { private void buildPartialOneofs(com.google.logging.v2.LogEntry result) { result.payloadCase_ = payloadCase_; result.payload_ = this.payload_; - if (payloadCase_ == 2 && - protoPayloadBuilder_ != null) { + if (payloadCase_ == 2 && protoPayloadBuilder_ != null) { result.payload_ = protoPayloadBuilder_.build(); } - if (payloadCase_ == 6 && - jsonPayloadBuilder_ != null) { + if (payloadCase_ == 6 && jsonPayloadBuilder_ != null) { result.payload_ = jsonPayloadBuilder_.build(); } } @@ -1760,38 +1913,39 @@ private void buildPartialOneofs(com.google.logging.v2.LogEntry 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.logging.v2.LogEntry) { - return mergeFrom((com.google.logging.v2.LogEntry)other); + return mergeFrom((com.google.logging.v2.LogEntry) other); } else { super.mergeFrom(other); return this; @@ -1825,8 +1979,7 @@ public Builder mergeFrom(com.google.logging.v2.LogEntry other) { if (other.hasHttpRequest()) { mergeHttpRequest(other.getHttpRequest()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000400; if (other.hasOperation()) { mergeOperation(other.getOperation()); @@ -1851,23 +2004,27 @@ public Builder mergeFrom(com.google.logging.v2.LogEntry other) { mergeSplit(other.getSplit()); } switch (other.getPayloadCase()) { - case PROTO_PAYLOAD: { - mergeProtoPayload(other.getProtoPayload()); - break; - } - case TEXT_PAYLOAD: { - payloadCase_ = 3; - payload_ = other.payload_; - onChanged(); - break; - } - case JSON_PAYLOAD: { - mergeJsonPayload(other.getJsonPayload()); - break; - } - case PAYLOAD_NOT_SET: { - break; - } + case PROTO_PAYLOAD: + { + mergeProtoPayload(other.getProtoPayload()); + break; + } + case TEXT_PAYLOAD: + { + payloadCase_ = 3; + payload_ = other.payload_; + onChanged(); + break; + } + case JSON_PAYLOAD: + { + mergeJsonPayload(other.getJsonPayload()); + break; + } + case PAYLOAD_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1895,120 +2052,123 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getProtoPayloadFieldBuilder().getBuilder(), - extensionRegistry); - payloadCase_ = 2; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - payloadCase_ = 3; - payload_ = s; - break; - } // case 26 - case 34: { - insertId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 34 - case 50: { - input.readMessage( - getJsonPayloadFieldBuilder().getBuilder(), - extensionRegistry); - payloadCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getHttpRequestFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 58 - case 66: { - input.readMessage( - getResourceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 66 - case 74: { - input.readMessage( - getTimestampFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 74 - case 80: { - severity_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 80 - case 90: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: { - logName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 98 - case 122: { - input.readMessage( - getOperationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 122 - case 178: { - trace_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 178 - case 186: { - input.readMessage( - getSourceLocationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 186 - case 194: { - input.readMessage( - getReceiveTimestampFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 194 - case 218: { - spanId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; - break; - } // case 218 - case 240: { - traceSampled_ = input.readBool(); - bitField0_ |= 0x00004000; - break; - } // case 240 - case 282: { - input.readMessage( - getSplitFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 282 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage(getProtoPayloadFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 2; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + payloadCase_ = 3; + payload_ = s; + break; + } // case 26 + case 34: + { + insertId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 34 + case 50: + { + input.readMessage(getJsonPayloadFieldBuilder().getBuilder(), extensionRegistry); + payloadCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getHttpRequestFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 58 + case 66: + { + input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 66 + case 74: + { + input.readMessage(getTimestampFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 74 + case 80: + { + severity_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 80 + case 90: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + logName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 98 + case 122: + { + input.readMessage(getOperationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 122 + case 178: + { + trace_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 178 + case 186: + { + input.readMessage(getSourceLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 186 + case 194: + { + input.readMessage( + getReceiveTimestampFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 194 + case 218: + { + spanId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 218 + case 240: + { + traceSampled_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 240 + case 282: + { + input.readMessage(getSplitFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 282 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2018,12 +2178,12 @@ public Builder mergeFrom( } // finally return this; } + private int payloadCase_ = 0; private java.lang.Object payload_; - public PayloadCase - getPayloadCase() { - return PayloadCase.forNumber( - payloadCase_); + + public PayloadCase getPayloadCase() { + return PayloadCase.forNumber(payloadCase_); } public Builder clearPayload() { @@ -2037,6 +2197,8 @@ public Builder clearPayload() { private java.lang.Object logName_ = ""; /** + * + * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2064,13 +2226,13 @@ public Builder clearPayload() {
      * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; + * * @return The logName. */ public java.lang.String getLogName() { java.lang.Object ref = logName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logName_ = s; return s; @@ -2079,6 +2241,8 @@ public java.lang.String getLogName() { } } /** + * + * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2106,15 +2270,14 @@ public java.lang.String getLogName() {
      * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for logName. */ - public com.google.protobuf.ByteString - getLogNameBytes() { + public com.google.protobuf.ByteString getLogNameBytes() { java.lang.Object ref = logName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); logName_ = b; return b; } else { @@ -2122,6 +2285,8 @@ public java.lang.String getLogName() { } } /** + * + * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2149,18 +2314,22 @@ public java.lang.String getLogName() {
      * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The logName to set. * @return This builder for chaining. */ - public Builder setLogName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLogName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } logName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2188,6 +2357,7 @@ public Builder setLogName(
      * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLogName() { @@ -2197,6 +2367,8 @@ public Builder clearLogName() { return this; } /** + * + * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2224,12 +2396,14 @@ public Builder clearLogName() {
      * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for logName to set. * @return This builder for chaining. */ - public Builder setLogNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLogNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); logName_ = value; bitField0_ |= 0x00000001; @@ -2239,8 +2413,13 @@ public Builder setLogNameBytes( private com.google.api.MonitoredResource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> resourceBuilder_; + com.google.api.MonitoredResource, + com.google.api.MonitoredResource.Builder, + com.google.api.MonitoredResourceOrBuilder> + resourceBuilder_; /** + * + * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2249,13 +2428,17 @@ public Builder setLogNameBytes(
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2264,17 +2447,23 @@ public boolean hasResource() {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ public com.google.api.MonitoredResource getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.api.MonitoredResource.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2283,7 +2472,8 @@ public com.google.api.MonitoredResource getResource() {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResource(com.google.api.MonitoredResource value) { if (resourceBuilder_ == null) { @@ -2299,6 +2489,8 @@ public Builder setResource(com.google.api.MonitoredResource value) { return this; } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2307,10 +2499,10 @@ public Builder setResource(com.google.api.MonitoredResource value) {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setResource( - com.google.api.MonitoredResource.Builder builderForValue) { + public Builder setResource(com.google.api.MonitoredResource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); } else { @@ -2321,6 +2513,8 @@ public Builder setResource( return this; } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2329,13 +2523,14 @@ public Builder setResource(
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeResource(com.google.api.MonitoredResource value) { if (resourceBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - resource_ != null && - resource_ != com.google.api.MonitoredResource.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && resource_ != null + && resource_ != com.google.api.MonitoredResource.getDefaultInstance()) { getResourceBuilder().mergeFrom(value); } else { resource_ = value; @@ -2350,6 +2545,8 @@ public Builder mergeResource(com.google.api.MonitoredResource value) { return this; } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2358,7 +2555,8 @@ public Builder mergeResource(com.google.api.MonitoredResource value) {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000002); @@ -2371,6 +2569,8 @@ public Builder clearResource() { return this; } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2379,7 +2579,8 @@ public Builder clearResource() {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.api.MonitoredResource.Builder getResourceBuilder() { bitField0_ |= 0x00000002; @@ -2387,6 +2588,8 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() { return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2395,17 +2598,21 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.api.MonitoredResource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.api.MonitoredResource.getDefaultInstance() + : resource_; } } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2414,25 +2621,34 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
      * the error.
      * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> + com.google.api.MonitoredResource, + com.google.api.MonitoredResource.Builder, + com.google.api.MonitoredResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.MonitoredResource, + com.google.api.MonitoredResource.Builder, + com.google.api.MonitoredResourceOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> protoPayloadBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + protoPayloadBuilder_; /** + * + * *
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2445,6 +2661,7 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
      * 
* * .google.protobuf.Any proto_payload = 2; + * * @return Whether the protoPayload field is set. */ @java.lang.Override @@ -2452,7 +2669,9 @@ public boolean hasProtoPayload() { return payloadCase_ == 2; } /** - *
+     *
+     *
+     * 
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
      *
@@ -2464,6 +2683,7 @@ public boolean hasProtoPayload() {
      * 
* * .google.protobuf.Any proto_payload = 2; + * * @return The protoPayload. */ @java.lang.Override @@ -2481,6 +2701,8 @@ public com.google.protobuf.Any getProtoPayload() { } } /** + * + * *
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2508,6 +2730,8 @@ public Builder setProtoPayload(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2521,8 +2745,7 @@ public Builder setProtoPayload(com.google.protobuf.Any value) {
      *
      * .google.protobuf.Any proto_payload = 2;
      */
-    public Builder setProtoPayload(
-        com.google.protobuf.Any.Builder builderForValue) {
+    public Builder setProtoPayload(com.google.protobuf.Any.Builder builderForValue) {
       if (protoPayloadBuilder_ == null) {
         payload_ = builderForValue.build();
         onChanged();
@@ -2533,6 +2756,8 @@ public Builder setProtoPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2548,10 +2773,11 @@ public Builder setProtoPayload(
      */
     public Builder mergeProtoPayload(com.google.protobuf.Any value) {
       if (protoPayloadBuilder_ == null) {
-        if (payloadCase_ == 2 &&
-            payload_ != com.google.protobuf.Any.getDefaultInstance()) {
-          payload_ = com.google.protobuf.Any.newBuilder((com.google.protobuf.Any) payload_)
-              .mergeFrom(value).buildPartial();
+        if (payloadCase_ == 2 && payload_ != com.google.protobuf.Any.getDefaultInstance()) {
+          payload_ =
+              com.google.protobuf.Any.newBuilder((com.google.protobuf.Any) payload_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           payload_ = value;
         }
@@ -2567,6 +2793,8 @@ public Builder mergeProtoPayload(com.google.protobuf.Any value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2597,6 +2825,8 @@ public Builder clearProtoPayload() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2614,6 +2844,8 @@ public com.google.protobuf.Any.Builder getProtoPayloadBuilder() {
       return getProtoPayloadFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2639,6 +2871,8 @@ public com.google.protobuf.AnyOrBuilder getProtoPayloadOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2653,17 +2887,20 @@ public com.google.protobuf.AnyOrBuilder getProtoPayloadOrBuilder() {
      * .google.protobuf.Any proto_payload = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> 
+            com.google.protobuf.Any,
+            com.google.protobuf.Any.Builder,
+            com.google.protobuf.AnyOrBuilder>
         getProtoPayloadFieldBuilder() {
       if (protoPayloadBuilder_ == null) {
         if (!(payloadCase_ == 2)) {
           payload_ = com.google.protobuf.Any.getDefaultInstance();
         }
-        protoPayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
-                (com.google.protobuf.Any) payload_,
-                getParentForChildren(),
-                isClean());
+        protoPayloadBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Any,
+                com.google.protobuf.Any.Builder,
+                com.google.protobuf.AnyOrBuilder>(
+                (com.google.protobuf.Any) payload_, getParentForChildren(), isClean());
         payload_ = null;
       }
       payloadCase_ = 2;
@@ -2672,11 +2909,14 @@ public com.google.protobuf.AnyOrBuilder getProtoPayloadOrBuilder() {
     }
 
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a Unicode string (UTF-8).
      * 
* * string text_payload = 3; + * * @return Whether the textPayload field is set. */ @java.lang.Override @@ -2684,11 +2924,14 @@ public boolean hasTextPayload() { return payloadCase_ == 3; } /** + * + * *
      * The log entry payload, represented as a Unicode string (UTF-8).
      * 
* * string text_payload = 3; + * * @return The textPayload. */ @java.lang.Override @@ -2698,8 +2941,7 @@ public java.lang.String getTextPayload() { ref = payload_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (payloadCase_ == 3) { payload_ = s; @@ -2710,24 +2952,25 @@ public java.lang.String getTextPayload() { } } /** + * + * *
      * The log entry payload, represented as a Unicode string (UTF-8).
      * 
* * string text_payload = 3; + * * @return The bytes for textPayload. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextPayloadBytes() { + public com.google.protobuf.ByteString getTextPayloadBytes() { java.lang.Object ref = ""; if (payloadCase_ == 3) { ref = payload_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (payloadCase_ == 3) { payload_ = b; } @@ -2737,28 +2980,35 @@ public java.lang.String getTextPayload() { } } /** + * + * *
      * The log entry payload, represented as a Unicode string (UTF-8).
      * 
* * string text_payload = 3; + * * @param value The textPayload to set. * @return This builder for chaining. */ - public Builder setTextPayload( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTextPayload(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } payloadCase_ = 3; payload_ = value; onChanged(); return this; } /** + * + * *
      * The log entry payload, represented as a Unicode string (UTF-8).
      * 
* * string text_payload = 3; + * * @return This builder for chaining. */ public Builder clearTextPayload() { @@ -2770,17 +3020,21 @@ public Builder clearTextPayload() { return this; } /** + * + * *
      * The log entry payload, represented as a Unicode string (UTF-8).
      * 
* * string text_payload = 3; + * * @param value The bytes for textPayload to set. * @return This builder for chaining. */ - public Builder setTextPayloadBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTextPayloadBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); payloadCase_ = 3; payload_ = value; @@ -2789,14 +3043,20 @@ public Builder setTextPayloadBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> jsonPayloadBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + jsonPayloadBuilder_; /** + * + * *
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
      * 
* * .google.protobuf.Struct json_payload = 6; + * * @return Whether the jsonPayload field is set. */ @java.lang.Override @@ -2804,12 +3064,15 @@ public boolean hasJsonPayload() { return payloadCase_ == 6; } /** + * + * *
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
      * 
* * .google.protobuf.Struct json_payload = 6; + * * @return The jsonPayload. */ @java.lang.Override @@ -2827,6 +3090,8 @@ public com.google.protobuf.Struct getJsonPayload() { } } /** + * + * *
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2848,6 +3113,8 @@ public Builder setJsonPayload(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2855,8 +3122,7 @@ public Builder setJsonPayload(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct json_payload = 6;
      */
-    public Builder setJsonPayload(
-        com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setJsonPayload(com.google.protobuf.Struct.Builder builderForValue) {
       if (jsonPayloadBuilder_ == null) {
         payload_ = builderForValue.build();
         onChanged();
@@ -2867,6 +3133,8 @@ public Builder setJsonPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2876,10 +3144,11 @@ public Builder setJsonPayload(
      */
     public Builder mergeJsonPayload(com.google.protobuf.Struct value) {
       if (jsonPayloadBuilder_ == null) {
-        if (payloadCase_ == 6 &&
-            payload_ != com.google.protobuf.Struct.getDefaultInstance()) {
-          payload_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) payload_)
-              .mergeFrom(value).buildPartial();
+        if (payloadCase_ == 6 && payload_ != com.google.protobuf.Struct.getDefaultInstance()) {
+          payload_ =
+              com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) payload_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           payload_ = value;
         }
@@ -2895,6 +3164,8 @@ public Builder mergeJsonPayload(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2919,6 +3190,8 @@ public Builder clearJsonPayload() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2930,6 +3203,8 @@ public com.google.protobuf.Struct.Builder getJsonPayloadBuilder() {
       return getJsonPayloadFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2949,6 +3224,8 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2957,17 +3234,20 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
      * .google.protobuf.Struct json_payload = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
+            com.google.protobuf.Struct,
+            com.google.protobuf.Struct.Builder,
+            com.google.protobuf.StructOrBuilder>
         getJsonPayloadFieldBuilder() {
       if (jsonPayloadBuilder_ == null) {
         if (!(payloadCase_ == 6)) {
           payload_ = com.google.protobuf.Struct.getDefaultInstance();
         }
-        jsonPayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
-                (com.google.protobuf.Struct) payload_,
-                getParentForChildren(),
-                isClean());
+        jsonPayloadBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Struct,
+                com.google.protobuf.Struct.Builder,
+                com.google.protobuf.StructOrBuilder>(
+                (com.google.protobuf.Struct) payload_, getParentForChildren(), isClean());
         payload_ = null;
       }
       payloadCase_ = 6;
@@ -2977,8 +3257,13 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
 
     private com.google.protobuf.Timestamp timestamp_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        timestampBuilder_;
     /**
+     *
+     *
      * 
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -2994,13 +3279,17 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3016,7 +3305,9 @@ public boolean hasTimestamp() {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The timestamp. */ public com.google.protobuf.Timestamp getTimestamp() { @@ -3027,6 +3318,8 @@ public com.google.protobuf.Timestamp getTimestamp() { } } /** + * + * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3042,7 +3335,8 @@ public com.google.protobuf.Timestamp getTimestamp() {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { @@ -3058,6 +3352,8 @@ public Builder setTimestamp(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3073,10 +3369,10 @@ public Builder setTimestamp(com.google.protobuf.Timestamp value) {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setTimestamp( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); } else { @@ -3087,6 +3383,8 @@ public Builder setTimestamp( return this; } /** + * + * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3102,13 +3400,14 @@ public Builder setTimestamp(
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - timestamp_ != null && - timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && timestamp_ != null + && timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getTimestampBuilder().mergeFrom(value); } else { timestamp_ = value; @@ -3123,6 +3422,8 @@ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3138,7 +3439,8 @@ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3151,6 +3453,8 @@ public Builder clearTimestamp() { return this; } /** + * + * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3166,7 +3470,8 @@ public Builder clearTimestamp() {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { bitField0_ |= 0x00000020; @@ -3174,6 +3479,8 @@ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { return getTimestampFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3189,17 +3496,19 @@ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { - return timestamp_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** + * + * *
      * Optional. The time the event described by the log entry occurred. This time
      * is used to compute the log entry's age and to enforce the logs retention
@@ -3215,17 +3524,21 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
      * those time boundaries aren't ingested by Logging.
      * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { - timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getTimestamp(), - getParentForChildren(), - isClean()); + timestampBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; @@ -3233,39 +3546,58 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { private com.google.protobuf.Timestamp receiveTimestamp_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> receiveTimestampBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + receiveTimestampBuilder_; /** + * + * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the receiveTimestamp field is set. */ public boolean hasReceiveTimestamp() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The receiveTimestamp. */ public com.google.protobuf.Timestamp getReceiveTimestamp() { if (receiveTimestampBuilder_ == null) { - return receiveTimestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : receiveTimestamp_; + return receiveTimestamp_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : receiveTimestamp_; } else { return receiveTimestampBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setReceiveTimestamp(com.google.protobuf.Timestamp value) { if (receiveTimestampBuilder_ == null) { @@ -3281,14 +3613,17 @@ public Builder setReceiveTimestamp(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setReceiveTimestamp( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReceiveTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) { if (receiveTimestampBuilder_ == null) { receiveTimestamp_ = builderForValue.build(); } else { @@ -3299,17 +3634,21 @@ public Builder setReceiveTimestamp( return this; } /** + * + * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeReceiveTimestamp(com.google.protobuf.Timestamp value) { if (receiveTimestampBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - receiveTimestamp_ != null && - receiveTimestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && receiveTimestamp_ != null + && receiveTimestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getReceiveTimestampBuilder().mergeFrom(value); } else { receiveTimestamp_ = value; @@ -3324,11 +3663,15 @@ public Builder mergeReceiveTimestamp(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearReceiveTimestamp() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3341,11 +3684,15 @@ public Builder clearReceiveTimestamp() { return this; } /** + * + * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getReceiveTimestampBuilder() { bitField0_ |= 0x00000040; @@ -3353,36 +3700,48 @@ public com.google.protobuf.Timestamp.Builder getReceiveTimestampBuilder() { return getReceiveTimestampFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder() { if (receiveTimestampBuilder_ != null) { return receiveTimestampBuilder_.getMessageOrBuilder(); } else { - return receiveTimestamp_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : receiveTimestamp_; + return receiveTimestamp_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : receiveTimestamp_; } } /** + * + * *
      * Output only. The time the log entry was received by Logging.
      * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.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> getReceiveTimestampFieldBuilder() { if (receiveTimestampBuilder_ == null) { - receiveTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReceiveTimestamp(), - getParentForChildren(), - isClean()); + receiveTimestampBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReceiveTimestamp(), getParentForChildren(), isClean()); receiveTimestamp_ = null; } return receiveTimestampBuilder_; @@ -3390,24 +3749,35 @@ public com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder() { private int severity_ = 0; /** + * + * *
      * Optional. The severity of the log entry. The default value is
      * `LogSeverity.DEFAULT`.
      * 
* - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for severity. */ - @java.lang.Override public int getSeverityValue() { + @java.lang.Override + public int getSeverityValue() { return severity_; } /** + * + * *
      * Optional. The severity of the log entry. The default value is
      * `LogSeverity.DEFAULT`.
      * 
* - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for severity to set. * @return This builder for chaining. */ @@ -3418,26 +3788,37 @@ public Builder setSeverityValue(int value) { return this; } /** + * + * *
      * Optional. The severity of the log entry. The default value is
      * `LogSeverity.DEFAULT`.
      * 
* - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The severity. */ @java.lang.Override public com.google.logging.type.LogSeverity getSeverity() { - com.google.logging.type.LogSeverity result = com.google.logging.type.LogSeverity.forNumber(severity_); + com.google.logging.type.LogSeverity result = + com.google.logging.type.LogSeverity.forNumber(severity_); return result == null ? com.google.logging.type.LogSeverity.UNRECOGNIZED : result; } /** + * + * *
      * Optional. The severity of the log entry. The default value is
      * `LogSeverity.DEFAULT`.
      * 
* - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The severity to set. * @return This builder for chaining. */ @@ -3451,12 +3832,17 @@ public Builder setSeverity(com.google.logging.type.LogSeverity value) { return this; } /** + * + * *
      * Optional. The severity of the log entry. The default value is
      * `LogSeverity.DEFAULT`.
      * 
* - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearSeverity() { @@ -3468,6 +3854,8 @@ public Builder clearSeverity() { private java.lang.Object insertId_ = ""; /** + * + * *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
@@ -3483,13 +3871,13 @@ public Builder clearSeverity() {
      * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The insertId. */ public java.lang.String getInsertId() { java.lang.Object ref = insertId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); insertId_ = s; return s; @@ -3498,6 +3886,8 @@ public java.lang.String getInsertId() { } } /** + * + * *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
@@ -3513,15 +3903,14 @@ public java.lang.String getInsertId() {
      * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for insertId. */ - public com.google.protobuf.ByteString - getInsertIdBytes() { + public com.google.protobuf.ByteString getInsertIdBytes() { java.lang.Object ref = insertId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); insertId_ = b; return b; } else { @@ -3529,6 +3918,8 @@ public java.lang.String getInsertId() { } } /** + * + * *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
@@ -3544,18 +3935,22 @@ public java.lang.String getInsertId() {
      * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The insertId to set. * @return This builder for chaining. */ - public Builder setInsertId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInsertId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } insertId_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
@@ -3571,6 +3966,7 @@ public Builder setInsertId(
      * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearInsertId() { @@ -3580,6 +3976,8 @@ public Builder clearInsertId() { return this; } /** + * + * *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
@@ -3595,12 +3993,14 @@ public Builder clearInsertId() {
      * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for insertId to set. * @return This builder for chaining. */ - public Builder setInsertIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setInsertIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); insertId_ = value; bitField0_ |= 0x00000100; @@ -3610,42 +4010,61 @@ public Builder setInsertIdBytes( private com.google.logging.type.HttpRequest httpRequest_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.type.HttpRequest, com.google.logging.type.HttpRequest.Builder, com.google.logging.type.HttpRequestOrBuilder> httpRequestBuilder_; + com.google.logging.type.HttpRequest, + com.google.logging.type.HttpRequest.Builder, + com.google.logging.type.HttpRequestOrBuilder> + httpRequestBuilder_; /** + * + * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the httpRequest field is set. */ public boolean hasHttpRequest() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The httpRequest. */ public com.google.logging.type.HttpRequest getHttpRequest() { if (httpRequestBuilder_ == null) { - return httpRequest_ == null ? com.google.logging.type.HttpRequest.getDefaultInstance() : httpRequest_; + return httpRequest_ == null + ? com.google.logging.type.HttpRequest.getDefaultInstance() + : httpRequest_; } else { return httpRequestBuilder_.getMessage(); } } /** + * + * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setHttpRequest(com.google.logging.type.HttpRequest value) { if (httpRequestBuilder_ == null) { @@ -3661,15 +4080,18 @@ public Builder setHttpRequest(com.google.logging.type.HttpRequest value) { return this; } /** + * + * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setHttpRequest( - com.google.logging.type.HttpRequest.Builder builderForValue) { + public Builder setHttpRequest(com.google.logging.type.HttpRequest.Builder builderForValue) { if (httpRequestBuilder_ == null) { httpRequest_ = builderForValue.build(); } else { @@ -3680,18 +4102,22 @@ public Builder setHttpRequest( return this; } /** + * + * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeHttpRequest(com.google.logging.type.HttpRequest value) { if (httpRequestBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - httpRequest_ != null && - httpRequest_ != com.google.logging.type.HttpRequest.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && httpRequest_ != null + && httpRequest_ != com.google.logging.type.HttpRequest.getDefaultInstance()) { getHttpRequestBuilder().mergeFrom(value); } else { httpRequest_ = value; @@ -3706,12 +4132,16 @@ public Builder mergeHttpRequest(com.google.logging.type.HttpRequest value) { return this; } /** + * + * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearHttpRequest() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3724,12 +4154,16 @@ public Builder clearHttpRequest() { return this; } /** + * + * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.logging.type.HttpRequest.Builder getHttpRequestBuilder() { bitField0_ |= 0x00000200; @@ -3737,58 +4171,68 @@ public com.google.logging.type.HttpRequest.Builder getHttpRequestBuilder() { return getHttpRequestFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.logging.type.HttpRequestOrBuilder getHttpRequestOrBuilder() { if (httpRequestBuilder_ != null) { return httpRequestBuilder_.getMessageOrBuilder(); } else { - return httpRequest_ == null ? - com.google.logging.type.HttpRequest.getDefaultInstance() : httpRequest_; + return httpRequest_ == null + ? com.google.logging.type.HttpRequest.getDefaultInstance() + : httpRequest_; } } /** + * + * *
      * Optional. Information about the HTTP request associated with this log
      * entry, if applicable.
      * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.type.HttpRequest, com.google.logging.type.HttpRequest.Builder, com.google.logging.type.HttpRequestOrBuilder> + com.google.logging.type.HttpRequest, + com.google.logging.type.HttpRequest.Builder, + com.google.logging.type.HttpRequestOrBuilder> getHttpRequestFieldBuilder() { if (httpRequestBuilder_ == null) { - httpRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.type.HttpRequest, com.google.logging.type.HttpRequest.Builder, com.google.logging.type.HttpRequestOrBuilder>( - getHttpRequest(), - getParentForChildren(), - isClean()); + httpRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.type.HttpRequest, + com.google.logging.type.HttpRequest.Builder, + com.google.logging.type.HttpRequestOrBuilder>( + getHttpRequest(), getParentForChildren(), isClean()); httpRequest_ = null; } return httpRequestBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3797,10 +4241,13 @@ public com.google.logging.type.HttpRequestOrBuilder getHttpRequestOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. A map of key, value pairs that provides additional information
      * about the log entry. The labels can be user-defined or system-defined.
@@ -3821,20 +4268,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. A map of key, value pairs that provides additional information
      * about the log entry. The labels can be user-defined or system-defined.
@@ -3859,6 +4307,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. A map of key, value pairs that provides additional information
      * about the log entry. The labels can be user-defined or system-defined.
@@ -3879,17 +4329,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. A map of key, value pairs that provides additional information
      * about the log entry. The labels can be user-defined or system-defined.
@@ -3910,23 +4362,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000400);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. A map of key, value pairs that provides additional information
      * about the log entry. The labels can be user-defined or system-defined.
@@ -3946,23 +4400,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000400;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. A map of key, value pairs that provides additional information
      * about the log entry. The labels can be user-defined or system-defined.
@@ -3982,17 +4435,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000400;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. A map of key, value pairs that provides additional information
      * about the log entry. The labels can be user-defined or system-defined.
@@ -4012,52 +4468,69 @@ public Builder putLabels(
      *
      * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000400;
       return this;
     }
 
     private com.google.logging.v2.LogEntryOperation operation_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.logging.v2.LogEntryOperation, com.google.logging.v2.LogEntryOperation.Builder, com.google.logging.v2.LogEntryOperationOrBuilder> operationBuilder_;
+            com.google.logging.v2.LogEntryOperation,
+            com.google.logging.v2.LogEntryOperation.Builder,
+            com.google.logging.v2.LogEntryOperationOrBuilder>
+        operationBuilder_;
     /**
+     *
+     *
      * 
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the operation field is set. */ public boolean hasOperation() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The operation. */ public com.google.logging.v2.LogEntryOperation getOperation() { if (operationBuilder_ == null) { - return operation_ == null ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() : operation_; + return operation_ == null + ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() + : operation_; } else { return operationBuilder_.getMessage(); } } /** + * + * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOperation(com.google.logging.v2.LogEntryOperation value) { if (operationBuilder_ == null) { @@ -4073,15 +4546,18 @@ public Builder setOperation(com.google.logging.v2.LogEntryOperation value) { return this; } /** + * + * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setOperation( - com.google.logging.v2.LogEntryOperation.Builder builderForValue) { + public Builder setOperation(com.google.logging.v2.LogEntryOperation.Builder builderForValue) { if (operationBuilder_ == null) { operation_ = builderForValue.build(); } else { @@ -4092,18 +4568,22 @@ public Builder setOperation( return this; } /** + * + * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeOperation(com.google.logging.v2.LogEntryOperation value) { if (operationBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) && - operation_ != null && - operation_ != com.google.logging.v2.LogEntryOperation.getDefaultInstance()) { + if (((bitField0_ & 0x00000800) != 0) + && operation_ != null + && operation_ != com.google.logging.v2.LogEntryOperation.getDefaultInstance()) { getOperationBuilder().mergeFrom(value); } else { operation_ = value; @@ -4118,12 +4598,16 @@ public Builder mergeOperation(com.google.logging.v2.LogEntryOperation value) { return this; } /** + * + * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOperation() { bitField0_ = (bitField0_ & ~0x00000800); @@ -4136,12 +4620,16 @@ public Builder clearOperation() { return this; } /** + * + * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.logging.v2.LogEntryOperation.Builder getOperationBuilder() { bitField0_ |= 0x00000800; @@ -4149,38 +4637,50 @@ public com.google.logging.v2.LogEntryOperation.Builder getOperationBuilder() { return getOperationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder() { if (operationBuilder_ != null) { return operationBuilder_.getMessageOrBuilder(); } else { - return operation_ == null ? - com.google.logging.v2.LogEntryOperation.getDefaultInstance() : operation_; + return operation_ == null + ? com.google.logging.v2.LogEntryOperation.getDefaultInstance() + : operation_; } } /** + * + * *
      * Optional. Information about an operation associated with the log entry, if
      * applicable.
      * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogEntryOperation, com.google.logging.v2.LogEntryOperation.Builder, com.google.logging.v2.LogEntryOperationOrBuilder> + com.google.logging.v2.LogEntryOperation, + com.google.logging.v2.LogEntryOperation.Builder, + com.google.logging.v2.LogEntryOperationOrBuilder> getOperationFieldBuilder() { if (operationBuilder_ == null) { - operationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogEntryOperation, com.google.logging.v2.LogEntryOperation.Builder, com.google.logging.v2.LogEntryOperationOrBuilder>( - getOperation(), - getParentForChildren(), - isClean()); + operationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogEntryOperation, + com.google.logging.v2.LogEntryOperation.Builder, + com.google.logging.v2.LogEntryOperationOrBuilder>( + getOperation(), getParentForChildren(), isClean()); operation_ = null; } return operationBuilder_; @@ -4188,6 +4688,8 @@ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder() private java.lang.Object trace_ = ""; /** + * + * *
      * Optional. The REST resource name of the trace being written to
      * [Cloud Trace](https://cloud.google.com/trace) in
@@ -4201,13 +4703,13 @@ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder()
      * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The trace. */ public java.lang.String getTrace() { java.lang.Object ref = trace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); trace_ = s; return s; @@ -4216,6 +4718,8 @@ public java.lang.String getTrace() { } } /** + * + * *
      * Optional. The REST resource name of the trace being written to
      * [Cloud Trace](https://cloud.google.com/trace) in
@@ -4229,15 +4733,14 @@ public java.lang.String getTrace() {
      * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for trace. */ - public com.google.protobuf.ByteString - getTraceBytes() { + public com.google.protobuf.ByteString getTraceBytes() { java.lang.Object ref = trace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); trace_ = b; return b; } else { @@ -4245,6 +4748,8 @@ public java.lang.String getTrace() { } } /** + * + * *
      * Optional. The REST resource name of the trace being written to
      * [Cloud Trace](https://cloud.google.com/trace) in
@@ -4258,18 +4763,22 @@ public java.lang.String getTrace() {
      * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The trace to set. * @return This builder for chaining. */ - public Builder setTrace( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTrace(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } trace_ = value; bitField0_ |= 0x00001000; onChanged(); return this; } /** + * + * *
      * Optional. The REST resource name of the trace being written to
      * [Cloud Trace](https://cloud.google.com/trace) in
@@ -4283,6 +4792,7 @@ public Builder setTrace(
      * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTrace() { @@ -4292,6 +4802,8 @@ public Builder clearTrace() { return this; } /** + * + * *
      * Optional. The REST resource name of the trace being written to
      * [Cloud Trace](https://cloud.google.com/trace) in
@@ -4305,12 +4817,14 @@ public Builder clearTrace() {
      * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for trace to set. * @return This builder for chaining. */ - public Builder setTraceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTraceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); trace_ = value; bitField0_ |= 0x00001000; @@ -4320,6 +4834,8 @@ public Builder setTraceBytes( private java.lang.Object spanId_ = ""; /** + * + * *
      * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
      * associated with the current operation in which the log is being written.
@@ -4354,13 +4870,13 @@ public Builder setTraceBytes(
      * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spanId. */ public java.lang.String getSpanId() { java.lang.Object ref = spanId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); spanId_ = s; return s; @@ -4369,6 +4885,8 @@ public java.lang.String getSpanId() { } } /** + * + * *
      * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
      * associated with the current operation in which the log is being written.
@@ -4403,15 +4921,14 @@ public java.lang.String getSpanId() {
      * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for spanId. */ - public com.google.protobuf.ByteString - getSpanIdBytes() { + public com.google.protobuf.ByteString getSpanIdBytes() { java.lang.Object ref = spanId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); spanId_ = b; return b; } else { @@ -4419,6 +4936,8 @@ public java.lang.String getSpanId() { } } /** + * + * *
      * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
      * associated with the current operation in which the log is being written.
@@ -4453,18 +4972,22 @@ public java.lang.String getSpanId() {
      * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The spanId to set. * @return This builder for chaining. */ - public Builder setSpanId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpanId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } spanId_ = value; bitField0_ |= 0x00002000; onChanged(); return this; } /** + * + * *
      * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
      * associated with the current operation in which the log is being written.
@@ -4499,6 +5022,7 @@ public Builder setSpanId(
      * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSpanId() { @@ -4508,6 +5032,8 @@ public Builder clearSpanId() { return this; } /** + * + * *
      * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
      * associated with the current operation in which the log is being written.
@@ -4542,12 +5068,14 @@ public Builder clearSpanId() {
      * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for spanId to set. * @return This builder for chaining. */ - public Builder setSpanIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSpanIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); spanId_ = value; bitField0_ |= 0x00002000; @@ -4555,8 +5083,10 @@ public Builder setSpanIdBytes( return this; } - private boolean traceSampled_ ; + private boolean traceSampled_; /** + * + * *
      * Optional. The sampling decision of the trace associated with the log entry.
      *
@@ -4568,6 +5098,7 @@ public Builder setSpanIdBytes(
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The traceSampled. */ @java.lang.Override @@ -4575,6 +5106,8 @@ public boolean getTraceSampled() { return traceSampled_; } /** + * + * *
      * Optional. The sampling decision of the trace associated with the log entry.
      *
@@ -4586,6 +5119,7 @@ public boolean getTraceSampled() {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The traceSampled to set. * @return This builder for chaining. */ @@ -4597,6 +5131,8 @@ public Builder setTraceSampled(boolean value) { return this; } /** + * + * *
      * Optional. The sampling decision of the trace associated with the log entry.
      *
@@ -4608,6 +5144,7 @@ public Builder setTraceSampled(boolean value) {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTraceSampled() { @@ -4619,42 +5156,61 @@ public Builder clearTraceSampled() { private com.google.logging.v2.LogEntrySourceLocation sourceLocation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogEntrySourceLocation, com.google.logging.v2.LogEntrySourceLocation.Builder, com.google.logging.v2.LogEntrySourceLocationOrBuilder> sourceLocationBuilder_; + com.google.logging.v2.LogEntrySourceLocation, + com.google.logging.v2.LogEntrySourceLocation.Builder, + com.google.logging.v2.LogEntrySourceLocationOrBuilder> + sourceLocationBuilder_; /** + * + * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sourceLocation field is set. */ public boolean hasSourceLocation() { return ((bitField0_ & 0x00008000) != 0); } /** + * + * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sourceLocation. */ public com.google.logging.v2.LogEntrySourceLocation getSourceLocation() { if (sourceLocationBuilder_ == null) { - return sourceLocation_ == null ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() : sourceLocation_; + return sourceLocation_ == null + ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() + : sourceLocation_; } else { return sourceLocationBuilder_.getMessage(); } } /** + * + * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSourceLocation(com.google.logging.v2.LogEntrySourceLocation value) { if (sourceLocationBuilder_ == null) { @@ -4670,12 +5226,16 @@ public Builder setSourceLocation(com.google.logging.v2.LogEntrySourceLocation va return this; } /** + * + * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSourceLocation( com.google.logging.v2.LogEntrySourceLocation.Builder builderForValue) { @@ -4689,18 +5249,23 @@ public Builder setSourceLocation( return this; } /** + * + * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSourceLocation(com.google.logging.v2.LogEntrySourceLocation value) { if (sourceLocationBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) && - sourceLocation_ != null && - sourceLocation_ != com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance()) { + if (((bitField0_ & 0x00008000) != 0) + && sourceLocation_ != null + && sourceLocation_ + != com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance()) { getSourceLocationBuilder().mergeFrom(value); } else { sourceLocation_ = value; @@ -4715,12 +5280,16 @@ public Builder mergeSourceLocation(com.google.logging.v2.LogEntrySourceLocation return this; } /** + * + * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSourceLocation() { bitField0_ = (bitField0_ & ~0x00008000); @@ -4733,12 +5302,16 @@ public Builder clearSourceLocation() { return this; } /** + * + * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.logging.v2.LogEntrySourceLocation.Builder getSourceLocationBuilder() { bitField0_ |= 0x00008000; @@ -4746,38 +5319,50 @@ public com.google.logging.v2.LogEntrySourceLocation.Builder getSourceLocationBui return getSourceLocationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder() { if (sourceLocationBuilder_ != null) { return sourceLocationBuilder_.getMessageOrBuilder(); } else { - return sourceLocation_ == null ? - com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() : sourceLocation_; + return sourceLocation_ == null + ? com.google.logging.v2.LogEntrySourceLocation.getDefaultInstance() + : sourceLocation_; } } /** + * + * *
      * Optional. Source code location information associated with the log entry,
      * if any.
      * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogEntrySourceLocation, com.google.logging.v2.LogEntrySourceLocation.Builder, com.google.logging.v2.LogEntrySourceLocationOrBuilder> + com.google.logging.v2.LogEntrySourceLocation, + com.google.logging.v2.LogEntrySourceLocation.Builder, + com.google.logging.v2.LogEntrySourceLocationOrBuilder> getSourceLocationFieldBuilder() { if (sourceLocationBuilder_ == null) { - sourceLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogEntrySourceLocation, com.google.logging.v2.LogEntrySourceLocation.Builder, com.google.logging.v2.LogEntrySourceLocationOrBuilder>( - getSourceLocation(), - getParentForChildren(), - isClean()); + sourceLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogEntrySourceLocation, + com.google.logging.v2.LogEntrySourceLocation.Builder, + com.google.logging.v2.LogEntrySourceLocationOrBuilder>( + getSourceLocation(), getParentForChildren(), isClean()); sourceLocation_ = null; } return sourceLocationBuilder_; @@ -4785,26 +5370,37 @@ public com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOr private com.google.logging.v2.LogSplit split_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogSplit, com.google.logging.v2.LogSplit.Builder, com.google.logging.v2.LogSplitOrBuilder> splitBuilder_; + com.google.logging.v2.LogSplit, + com.google.logging.v2.LogSplit.Builder, + com.google.logging.v2.LogSplitOrBuilder> + splitBuilder_; /** + * + * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the split field is set. */ public boolean hasSplit() { return ((bitField0_ & 0x00010000) != 0); } /** + * + * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The split. */ public com.google.logging.v2.LogSplit getSplit() { @@ -4815,12 +5411,15 @@ public com.google.logging.v2.LogSplit getSplit() { } } /** + * + * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSplit(com.google.logging.v2.LogSplit value) { if (splitBuilder_ == null) { @@ -4836,15 +5435,17 @@ public Builder setSplit(com.google.logging.v2.LogSplit value) { return this; } /** + * + * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSplit( - com.google.logging.v2.LogSplit.Builder builderForValue) { + public Builder setSplit(com.google.logging.v2.LogSplit.Builder builderForValue) { if (splitBuilder_ == null) { split_ = builderForValue.build(); } else { @@ -4855,18 +5456,21 @@ public Builder setSplit( return this; } /** + * + * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSplit(com.google.logging.v2.LogSplit value) { if (splitBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) && - split_ != null && - split_ != com.google.logging.v2.LogSplit.getDefaultInstance()) { + if (((bitField0_ & 0x00010000) != 0) + && split_ != null + && split_ != com.google.logging.v2.LogSplit.getDefaultInstance()) { getSplitBuilder().mergeFrom(value); } else { split_ = value; @@ -4881,12 +5485,15 @@ public Builder mergeSplit(com.google.logging.v2.LogSplit value) { return this; } /** + * + * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSplit() { bitField0_ = (bitField0_ & ~0x00010000); @@ -4899,12 +5506,15 @@ public Builder clearSplit() { return this; } /** + * + * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.logging.v2.LogSplit.Builder getSplitBuilder() { bitField0_ |= 0x00010000; @@ -4912,45 +5522,53 @@ public com.google.logging.v2.LogSplit.Builder getSplitBuilder() { return getSplitFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.logging.v2.LogSplitOrBuilder getSplitOrBuilder() { if (splitBuilder_ != null) { return splitBuilder_.getMessageOrBuilder(); } else { - return split_ == null ? - com.google.logging.v2.LogSplit.getDefaultInstance() : split_; + return split_ == null ? com.google.logging.v2.LogSplit.getDefaultInstance() : split_; } } /** + * + * *
      * Optional. Information indicating this LogEntry is part of a sequence of
      * multiple log entries split from a single LogEntry.
      * 
* - * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogSplit, com.google.logging.v2.LogSplit.Builder, com.google.logging.v2.LogSplitOrBuilder> + com.google.logging.v2.LogSplit, + com.google.logging.v2.LogSplit.Builder, + com.google.logging.v2.LogSplitOrBuilder> getSplitFieldBuilder() { if (splitBuilder_ == null) { - splitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogSplit, com.google.logging.v2.LogSplit.Builder, com.google.logging.v2.LogSplitOrBuilder>( - getSplit(), - getParentForChildren(), - isClean()); + splitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogSplit, + com.google.logging.v2.LogSplit.Builder, + com.google.logging.v2.LogSplitOrBuilder>( + getSplit(), getParentForChildren(), isClean()); split_ = null; } return splitBuilder_; } + @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); } @@ -4960,12 +5578,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.LogEntry) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogEntry) private static final com.google.logging.v2.LogEntry DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.LogEntry(); } @@ -4974,27 +5592,27 @@ public static com.google.logging.v2.LogEntry getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5009,6 +5627,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java index 4d021d46a..5a2c3c473 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.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/logging/v2/log_entry.proto @@ -5,6 +20,8 @@ package com.google.logging.v2; /** + * + * *
  * Additional information about a potentially long-running operation with which
  * a log entry is associated.
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.logging.v2.LogEntryOperation}
  */
-public final class LogEntryOperation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LogEntryOperation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.LogEntryOperation)
     LogEntryOperationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LogEntryOperation.newBuilder() to construct.
   private LogEntryOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LogEntryOperation() {
     id_ = "";
     producer_ = "";
@@ -28,34 +46,39 @@ private LogEntryOperation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogEntryOperation();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntryOperation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.logging.v2.LogEntryProto
+        .internal_static_google_logging_v2_LogEntryOperation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable
+    return com.google.logging.v2.LogEntryProto
+        .internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.LogEntryOperation.class, com.google.logging.v2.LogEntryOperation.Builder.class);
+            com.google.logging.v2.LogEntryOperation.class,
+            com.google.logging.v2.LogEntryOperation.Builder.class);
   }
 
   public static final int ID_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object id_ = "";
   /**
+   *
+   *
    * 
    * Optional. An arbitrary operation identifier. Log entries with the same
    * identifier are assumed to be part of the same operation.
    * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The id. */ @java.lang.Override @@ -64,30 +87,30 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
    * Optional. An arbitrary operation identifier. Log entries with the same
    * identifier are assumed to be part of the same operation.
    * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -96,9 +119,12 @@ public java.lang.String getId() { } public static final int PRODUCER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object producer_ = ""; /** + * + * *
    * Optional. An arbitrary producer identifier. The combination of `id` and
    * `producer` must be globally unique. Examples for `producer`:
@@ -106,6 +132,7 @@ public java.lang.String getId() {
    * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The producer. */ @java.lang.Override @@ -114,14 +141,15 @@ public java.lang.String getProducer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); producer_ = s; return s; } } /** + * + * *
    * Optional. An arbitrary producer identifier. The combination of `id` and
    * `producer` must be globally unique. Examples for `producer`:
@@ -129,16 +157,15 @@ public java.lang.String getProducer() {
    * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for producer. */ @java.lang.Override - public com.google.protobuf.ByteString - getProducerBytes() { + public com.google.protobuf.ByteString getProducerBytes() { java.lang.Object ref = producer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); producer_ = b; return b; } else { @@ -149,11 +176,14 @@ public java.lang.String getProducer() { public static final int FIRST_FIELD_NUMBER = 3; private boolean first_ = false; /** + * + * *
    * Optional. Set this to True if this is the first log entry in the operation.
    * 
* * bool first = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The first. */ @java.lang.Override @@ -164,11 +194,14 @@ public boolean getFirst() { public static final int LAST_FIELD_NUMBER = 4; private boolean last_ = false; /** + * + * *
    * Optional. Set this to True if this is the last log entry in the operation.
    * 
* * bool last = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The last. */ @java.lang.Override @@ -177,6 +210,7 @@ public boolean getLast() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,8 +222,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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -218,12 +251,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producer_); } if (first_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, first_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, first_); } if (last_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, last_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, last_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -233,21 +264,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LogEntryOperation)) { return super.equals(obj); } com.google.logging.v2.LogEntryOperation other = (com.google.logging.v2.LogEntryOperation) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getProducer() - .equals(other.getProducer())) return false; - if (getFirst() - != other.getFirst()) return false; - if (getLast() - != other.getLast()) return false; + if (!getId().equals(other.getId())) return false; + if (!getProducer().equals(other.getProducer())) return false; + if (getFirst() != other.getFirst()) return false; + if (getLast() != other.getLast()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,109 +291,112 @@ public int hashCode() { hash = (37 * hash) + PRODUCER_FIELD_NUMBER; hash = (53 * hash) + getProducer().hashCode(); hash = (37 * hash) + FIRST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFirst()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFirst()); hash = (37 * hash) + LAST_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLast()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLast()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.logging.v2.LogEntryOperation parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.LogEntryOperation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogEntryOperation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogEntryOperation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogEntryOperation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogEntryOperation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogEntryOperation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogEntryOperation 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.logging.v2.LogEntryOperation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.LogEntryOperation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.LogEntryOperation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LogEntryOperation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.LogEntryOperation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.LogEntryOperation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.LogEntryOperation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Additional information about a potentially long-running operation with which
    * a log entry is associated.
@@ -374,33 +404,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.LogEntryOperation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.LogEntryOperation)
       com.google.logging.v2.LogEntryOperationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntryOperation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LogEntryProto
+          .internal_static_google_logging_v2_LogEntryOperation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable
+      return com.google.logging.v2.LogEntryProto
+          .internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.LogEntryOperation.class, com.google.logging.v2.LogEntryOperation.Builder.class);
+              com.google.logging.v2.LogEntryOperation.class,
+              com.google.logging.v2.LogEntryOperation.Builder.class);
     }
 
     // Construct using com.google.logging.v2.LogEntryOperation.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();
@@ -413,9 +442,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntryOperation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.logging.v2.LogEntryProto
+          .internal_static_google_logging_v2_LogEntryOperation_descriptor;
     }
 
     @java.lang.Override
@@ -434,8 +463,11 @@ public com.google.logging.v2.LogEntryOperation build() {
 
     @java.lang.Override
     public com.google.logging.v2.LogEntryOperation buildPartial() {
-      com.google.logging.v2.LogEntryOperation result = new com.google.logging.v2.LogEntryOperation(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.logging.v2.LogEntryOperation result =
+          new com.google.logging.v2.LogEntryOperation(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -460,38 +492,39 @@ private void buildPartial0(com.google.logging.v2.LogEntryOperation 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.logging.v2.LogEntryOperation) {
-        return mergeFrom((com.google.logging.v2.LogEntryOperation)other);
+        return mergeFrom((com.google.logging.v2.LogEntryOperation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -542,32 +575,37 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              id_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              producer_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 24: {
-              first_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 32: {
-              last_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                id_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                producer_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 24:
+              {
+                first_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 32:
+              {
+                last_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -577,23 +615,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object id_ = "";
     /**
+     *
+     *
      * 
      * Optional. An arbitrary operation identifier. Log entries with the same
      * identifier are assumed to be part of the same operation.
      * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -602,21 +643,22 @@ public java.lang.String getId() { } } /** + * + * *
      * Optional. An arbitrary operation identifier. Log entries with the same
      * identifier are assumed to be part of the same operation.
      * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -624,30 +666,37 @@ public java.lang.String getId() { } } /** + * + * *
      * Optional. An arbitrary operation identifier. Log entries with the same
      * identifier are assumed to be part of the same operation.
      * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. An arbitrary operation identifier. Log entries with the same
      * identifier are assumed to be part of the same operation.
      * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearId() { @@ -657,18 +706,22 @@ public Builder clearId() { return this; } /** + * + * *
      * Optional. An arbitrary operation identifier. Log entries with the same
      * identifier are assumed to be part of the same operation.
      * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; @@ -678,6 +731,8 @@ public Builder setIdBytes( private java.lang.Object producer_ = ""; /** + * + * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -685,13 +740,13 @@ public Builder setIdBytes(
      * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The producer. */ public java.lang.String getProducer() { java.lang.Object ref = producer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); producer_ = s; return s; @@ -700,6 +755,8 @@ public java.lang.String getProducer() { } } /** + * + * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -707,15 +764,14 @@ public java.lang.String getProducer() {
      * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for producer. */ - public com.google.protobuf.ByteString - getProducerBytes() { + public com.google.protobuf.ByteString getProducerBytes() { java.lang.Object ref = producer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); producer_ = b; return b; } else { @@ -723,6 +779,8 @@ public java.lang.String getProducer() { } } /** + * + * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -730,18 +788,22 @@ public java.lang.String getProducer() {
      * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The producer to set. * @return This builder for chaining. */ - public Builder setProducer( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProducer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } producer_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -749,6 +811,7 @@ public Builder setProducer(
      * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearProducer() { @@ -758,6 +821,8 @@ public Builder clearProducer() { return this; } /** + * + * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -765,12 +830,14 @@ public Builder clearProducer() {
      * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for producer to set. * @return This builder for chaining. */ - public Builder setProducerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProducerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); producer_ = value; bitField0_ |= 0x00000002; @@ -778,13 +845,16 @@ public Builder setProducerBytes( return this; } - private boolean first_ ; + private boolean first_; /** + * + * *
      * Optional. Set this to True if this is the first log entry in the operation.
      * 
* * bool first = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The first. */ @java.lang.Override @@ -792,11 +862,14 @@ public boolean getFirst() { return first_; } /** + * + * *
      * Optional. Set this to True if this is the first log entry in the operation.
      * 
* * bool first = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The first to set. * @return This builder for chaining. */ @@ -808,11 +881,14 @@ public Builder setFirst(boolean value) { return this; } /** + * + * *
      * Optional. Set this to True if this is the first log entry in the operation.
      * 
* * bool first = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFirst() { @@ -822,13 +898,16 @@ public Builder clearFirst() { return this; } - private boolean last_ ; + private boolean last_; /** + * + * *
      * Optional. Set this to True if this is the last log entry in the operation.
      * 
* * bool last = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The last. */ @java.lang.Override @@ -836,11 +915,14 @@ public boolean getLast() { return last_; } /** + * + * *
      * Optional. Set this to True if this is the last log entry in the operation.
      * 
* * bool last = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The last to set. * @return This builder for chaining. */ @@ -852,11 +934,14 @@ public Builder setLast(boolean value) { return this; } /** + * + * *
      * Optional. Set this to True if this is the last log entry in the operation.
      * 
* * bool last = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLast() { @@ -865,9 +950,9 @@ public Builder clearLast() { 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); } @@ -877,12 +962,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.LogEntryOperation) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogEntryOperation) private static final com.google.logging.v2.LogEntryOperation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.LogEntryOperation(); } @@ -891,27 +976,27 @@ public static com.google.logging.v2.LogEntryOperation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogEntryOperation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogEntryOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -926,6 +1011,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogEntryOperation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java similarity index 71% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java index 49c3137d9..04f00900a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java @@ -1,36 +1,59 @@ +/* + * 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/logging/v2/log_entry.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogEntryOperationOrBuilder extends +public interface LogEntryOperationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogEntryOperation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. An arbitrary operation identifier. Log entries with the same
    * identifier are assumed to be part of the same operation.
    * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * Optional. An arbitrary operation identifier. Log entries with the same
    * identifier are assumed to be part of the same operation.
    * 
* * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * Optional. An arbitrary producer identifier. The combination of `id` and
    * `producer` must be globally unique. Examples for `producer`:
@@ -38,10 +61,13 @@ public interface LogEntryOperationOrBuilder extends
    * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The producer. */ java.lang.String getProducer(); /** + * + * *
    * Optional. An arbitrary producer identifier. The combination of `id` and
    * `producer` must be globally unique. Examples for `producer`:
@@ -49,27 +75,33 @@ public interface LogEntryOperationOrBuilder extends
    * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for producer. */ - com.google.protobuf.ByteString - getProducerBytes(); + com.google.protobuf.ByteString getProducerBytes(); /** + * + * *
    * Optional. Set this to True if this is the first log entry in the operation.
    * 
* * bool first = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The first. */ boolean getFirst(); /** + * + * *
    * Optional. Set this to True if this is the last log entry in the operation.
    * 
* * bool last = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The last. */ boolean getLast(); diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java similarity index 87% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java index 70646a9b5..a8464004e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.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/logging/v2/log_entry.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogEntryOrBuilder extends +public interface LogEntryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogEntry) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the log to which this log entry belongs:
    *
@@ -36,10 +54,13 @@ public interface LogEntryOrBuilder extends
    * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; + * * @return The logName. */ java.lang.String getLogName(); /** + * + * *
    * Required. The resource name of the log to which this log entry belongs:
    *
@@ -67,12 +88,14 @@ public interface LogEntryOrBuilder extends
    * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for logName. */ - com.google.protobuf.ByteString - getLogNameBytes(); + com.google.protobuf.ByteString getLogNameBytes(); /** + * + * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -81,11 +104,15 @@ public interface LogEntryOrBuilder extends
    * the error.
    * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -94,11 +121,15 @@ public interface LogEntryOrBuilder extends
    * the error.
    * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ com.google.api.MonitoredResource getResource(); /** + * + * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -107,11 +138,14 @@ public interface LogEntryOrBuilder extends
    * the error.
    * 
* - * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * .google.api.MonitoredResource resource = 8 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder(); /** + * + * *
    * The log entry payload, represented as a protocol buffer. Some Google
    * Cloud Platform services use this field for their log entry payloads.
@@ -124,10 +158,13 @@ public interface LogEntryOrBuilder extends
    * 
* * .google.protobuf.Any proto_payload = 2; + * * @return Whether the protoPayload field is set. */ boolean hasProtoPayload(); /** + * + * *
    * The log entry payload, represented as a protocol buffer. Some Google
    * Cloud Platform services use this field for their log entry payloads.
@@ -140,10 +177,13 @@ public interface LogEntryOrBuilder extends
    * 
* * .google.protobuf.Any proto_payload = 2; + * * @return The protoPayload. */ com.google.protobuf.Any getProtoPayload(); /** + * + * *
    * The log entry payload, represented as a protocol buffer. Some Google
    * Cloud Platform services use this field for their log entry payloads.
@@ -160,55 +200,71 @@ public interface LogEntryOrBuilder extends
   com.google.protobuf.AnyOrBuilder getProtoPayloadOrBuilder();
 
   /**
+   *
+   *
    * 
    * The log entry payload, represented as a Unicode string (UTF-8).
    * 
* * string text_payload = 3; + * * @return Whether the textPayload field is set. */ boolean hasTextPayload(); /** + * + * *
    * The log entry payload, represented as a Unicode string (UTF-8).
    * 
* * string text_payload = 3; + * * @return The textPayload. */ java.lang.String getTextPayload(); /** + * + * *
    * The log entry payload, represented as a Unicode string (UTF-8).
    * 
* * string text_payload = 3; + * * @return The bytes for textPayload. */ - com.google.protobuf.ByteString - getTextPayloadBytes(); + com.google.protobuf.ByteString getTextPayloadBytes(); /** + * + * *
    * The log entry payload, represented as a structure that is
    * expressed as a JSON object.
    * 
* * .google.protobuf.Struct json_payload = 6; + * * @return Whether the jsonPayload field is set. */ boolean hasJsonPayload(); /** + * + * *
    * The log entry payload, represented as a structure that is
    * expressed as a JSON object.
    * 
* * .google.protobuf.Struct json_payload = 6; + * * @return The jsonPayload. */ com.google.protobuf.Struct getJsonPayload(); /** + * + * *
    * The log entry payload, represented as a structure that is
    * expressed as a JSON object.
@@ -219,6 +275,8 @@ public interface LogEntryOrBuilder extends
   com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder();
 
   /**
+   *
+   *
    * 
    * Optional. The time the event described by the log entry occurred. This time
    * is used to compute the log entry's age and to enforce the logs retention
@@ -234,11 +292,15 @@ public interface LogEntryOrBuilder extends
    * those time boundaries aren't ingested by Logging.
    * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the timestamp field is set. */ boolean hasTimestamp(); /** + * + * *
    * Optional. The time the event described by the log entry occurred. This time
    * is used to compute the log entry's age and to enforce the logs retention
@@ -254,11 +316,15 @@ public interface LogEntryOrBuilder extends
    * those time boundaries aren't ingested by Logging.
    * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The timestamp. */ com.google.protobuf.Timestamp getTimestamp(); /** + * + * *
    * Optional. The time the event described by the log entry occurred. This time
    * is used to compute the log entry's age and to enforce the logs retention
@@ -274,59 +340,84 @@ public interface LogEntryOrBuilder extends
    * those time boundaries aren't ingested by Logging.
    * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); /** + * + * *
    * Output only. The time the log entry was received by Logging.
    * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the receiveTimestamp field is set. */ boolean hasReceiveTimestamp(); /** + * + * *
    * Output only. The time the log entry was received by Logging.
    * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The receiveTimestamp. */ com.google.protobuf.Timestamp getReceiveTimestamp(); /** + * + * *
    * Output only. The time the log entry was received by Logging.
    * 
* - * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp receive_timestamp = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder(); /** + * + * *
    * Optional. The severity of the log entry. The default value is
    * `LogSeverity.DEFAULT`.
    * 
* - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for severity. */ int getSeverityValue(); /** + * + * *
    * Optional. The severity of the log entry. The default value is
    * `LogSeverity.DEFAULT`.
    * 
* - * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The severity. */ com.google.logging.type.LogSeverity getSeverity(); /** + * + * *
    * Optional. A unique identifier for the log entry. If you provide a value,
    * then Logging considers other log entries in the same project, with the same
@@ -342,10 +433,13 @@ public interface LogEntryOrBuilder extends
    * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The insertId. */ java.lang.String getInsertId(); /** + * + * *
    * Optional. A unique identifier for the log entry. If you provide a value,
    * then Logging considers other log entries in the same project, with the same
@@ -361,42 +455,58 @@ public interface LogEntryOrBuilder extends
    * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for insertId. */ - com.google.protobuf.ByteString - getInsertIdBytes(); + com.google.protobuf.ByteString getInsertIdBytes(); /** + * + * *
    * Optional. Information about the HTTP request associated with this log
    * entry, if applicable.
    * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the httpRequest field is set. */ boolean hasHttpRequest(); /** + * + * *
    * Optional. Information about the HTTP request associated with this log
    * entry, if applicable.
    * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The httpRequest. */ com.google.logging.type.HttpRequest getHttpRequest(); /** + * + * *
    * Optional. Information about the HTTP request associated with this log
    * entry, if applicable.
    * 
* - * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.type.HttpRequest http_request = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.logging.type.HttpRequestOrBuilder getHttpRequestOrBuilder(); /** + * + * *
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -418,6 +528,8 @@ public interface LogEntryOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -437,15 +549,13 @@ public interface LogEntryOrBuilder extends
    *
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -465,9 +575,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -488,11 +599,13 @@ boolean containsLabels(
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -512,40 +625,55 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. Information about an operation associated with the log entry, if
    * applicable.
    * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the operation field is set. */ boolean hasOperation(); /** + * + * *
    * Optional. Information about an operation associated with the log entry, if
    * applicable.
    * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The operation. */ com.google.logging.v2.LogEntryOperation getOperation(); /** + * + * *
    * Optional. Information about an operation associated with the log entry, if
    * applicable.
    * 
* - * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntryOperation operation = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder(); /** + * + * *
    * Optional. The REST resource name of the trace being written to
    * [Cloud Trace](https://cloud.google.com/trace) in
@@ -559,10 +687,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The trace. */ java.lang.String getTrace(); /** + * + * *
    * Optional. The REST resource name of the trace being written to
    * [Cloud Trace](https://cloud.google.com/trace) in
@@ -576,12 +707,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for trace. */ - com.google.protobuf.ByteString - getTraceBytes(); + com.google.protobuf.ByteString getTraceBytes(); /** + * + * *
    * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
    * associated with the current operation in which the log is being written.
@@ -616,10 +749,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spanId. */ java.lang.String getSpanId(); /** + * + * *
    * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
    * associated with the current operation in which the log is being written.
@@ -654,12 +790,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for spanId. */ - com.google.protobuf.ByteString - getSpanIdBytes(); + com.google.protobuf.ByteString getSpanIdBytes(); /** + * + * *
    * Optional. The sampling decision of the trace associated with the log entry.
    *
@@ -671,61 +809,84 @@ java.lang.String getLabelsOrThrow(
    * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The traceSampled. */ boolean getTraceSampled(); /** + * + * *
    * Optional. Source code location information associated with the log entry,
    * if any.
    * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sourceLocation field is set. */ boolean hasSourceLocation(); /** + * + * *
    * Optional. Source code location information associated with the log entry,
    * if any.
    * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sourceLocation. */ com.google.logging.v2.LogEntrySourceLocation getSourceLocation(); /** + * + * *
    * Optional. Source code location information associated with the log entry,
    * if any.
    * 
* - * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.LogEntrySourceLocation source_location = 23 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder(); /** + * + * *
    * Optional. Information indicating this LogEntry is part of a sequence of
    * multiple log entries split from a single LogEntry.
    * 
* * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * * @return Whether the split field is set. */ boolean hasSplit(); /** + * + * *
    * Optional. Information indicating this LogEntry is part of a sequence of
    * multiple log entries split from a single LogEntry.
    * 
* * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The split. */ com.google.logging.v2.LogSplit getSplit(); /** + * + * *
    * Optional. Information indicating this LogEntry is part of a sequence of
    * multiple log entries split from a single LogEntry.
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java
new file mode 100644
index 000000000..bf08bd435
--- /dev/null
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java
@@ -0,0 +1,193 @@
+/*
+ * 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/logging/v2/log_entry.proto
+
+// Protobuf Java Version: 3.25.3
+package com.google.logging.v2;
+
+public final class LogEntryProto {
+  private LogEntryProto() {}
+
+  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_logging_v2_LogEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_logging_v2_LogEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_logging_v2_LogEntry_LabelsEntry_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_logging_v2_LogEntryOperation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_logging_v2_LogEntrySourceLocation_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_logging_v2_LogSplit_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_logging_v2_LogSplit_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n!google/logging/v2/log_entry.proto\022\021goo"
+          + "gle.logging.v2\032\037google/api/field_behavio"
+          + "r.proto\032#google/api/monitored_resource.p"
+          + "roto\032\031google/api/resource.proto\032&google/"
+          + "logging/type/http_request.proto\032&google/"
+          + "logging/type/log_severity.proto\032\031google/"
+          + "protobuf/any.proto\032\034google/protobuf/stru"
+          + "ct.proto\032\037google/protobuf/timestamp.prot"
+          + "o\"\203\010\n\010LogEntry\022\025\n\010log_name\030\014 \001(\tB\003\340A\002\0224\n"
+          + "\010resource\030\010 \001(\0132\035.google.api.MonitoredRe"
+          + "sourceB\003\340A\002\022-\n\rproto_payload\030\002 \001(\0132\024.goo"
+          + "gle.protobuf.AnyH\000\022\026\n\014text_payload\030\003 \001(\t"
+          + "H\000\022/\n\014json_payload\030\006 \001(\0132\027.google.protob"
+          + "uf.StructH\000\0222\n\ttimestamp\030\t \001(\0132\032.google."
+          + "protobuf.TimestampB\003\340A\001\022:\n\021receive_times"
+          + "tamp\030\030 \001(\0132\032.google.protobuf.TimestampB\003"
+          + "\340A\003\0227\n\010severity\030\n \001(\0162 .google.logging.t"
+          + "ype.LogSeverityB\003\340A\001\022\026\n\tinsert_id\030\004 \001(\tB"
+          + "\003\340A\001\022;\n\014http_request\030\007 \001(\0132 .google.logg"
+          + "ing.type.HttpRequestB\003\340A\001\022<\n\006labels\030\013 \003("
+          + "\0132\'.google.logging.v2.LogEntry.LabelsEnt"
+          + "ryB\003\340A\001\022<\n\toperation\030\017 \001(\0132$.google.logg"
+          + "ing.v2.LogEntryOperationB\003\340A\001\022\022\n\005trace\030\026"
+          + " \001(\tB\003\340A\001\022\024\n\007span_id\030\033 \001(\tB\003\340A\001\022\032\n\rtrace"
+          + "_sampled\030\036 \001(\010B\003\340A\001\022G\n\017source_location\030\027"
+          + " \001(\0132).google.logging.v2.LogEntrySourceL"
+          + "ocationB\003\340A\001\022/\n\005split\030# \001(\0132\033.google.log"
+          + "ging.v2.LogSplitB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003"
+          + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\275\001\352A\271\001\n\032log"
+          + "ging.googleapis.com/Log\022\035projects/{proje"
+          + "ct}/logs/{log}\022\'organizations/{organizat"
+          + "ion}/logs/{log}\022\033folders/{folder}/logs/{"
+          + "log}\022,billingAccounts/{billing_account}/"
+          + "logs/{log}\032\010log_nameB\t\n\007payload\"b\n\021LogEn"
+          + "tryOperation\022\017\n\002id\030\001 \001(\tB\003\340A\001\022\025\n\010produce"
+          + "r\030\002 \001(\tB\003\340A\001\022\022\n\005first\030\003 \001(\010B\003\340A\001\022\021\n\004last"
+          + "\030\004 \001(\010B\003\340A\001\"U\n\026LogEntrySourceLocation\022\021\n"
+          + "\004file\030\001 \001(\tB\003\340A\001\022\021\n\004line\030\002 \001(\003B\003\340A\001\022\025\n\010f"
+          + "unction\030\003 \001(\tB\003\340A\001\"<\n\010LogSplit\022\013\n\003uid\030\001 "
+          + "\001(\t\022\r\n\005index\030\002 \001(\005\022\024\n\014total_splits\030\003 \001(\005"
+          + "B\263\001\n\025com.google.logging.v2B\rLogEntryProt"
+          + "oP\001Z5cloud.google.com/go/logging/apiv2/l"
+          + "oggingpb;loggingpb\370\001\001\252\002\027Google.Cloud.Log"
+          + "ging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032Goog"
+          + "le::Cloud::Logging::V2b\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.MonitoredResourceProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.logging.type.HttpRequestProto.getDescriptor(),
+              com.google.logging.type.LogSeverityProto.getDescriptor(),
+              com.google.protobuf.AnyProto.getDescriptor(),
+              com.google.protobuf.StructProto.getDescriptor(),
+              com.google.protobuf.TimestampProto.getDescriptor(),
+            });
+    internal_static_google_logging_v2_LogEntry_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_logging_v2_LogEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_logging_v2_LogEntry_descriptor,
+            new java.lang.String[] {
+              "LogName",
+              "Resource",
+              "ProtoPayload",
+              "TextPayload",
+              "JsonPayload",
+              "Timestamp",
+              "ReceiveTimestamp",
+              "Severity",
+              "InsertId",
+              "HttpRequest",
+              "Labels",
+              "Operation",
+              "Trace",
+              "SpanId",
+              "TraceSampled",
+              "SourceLocation",
+              "Split",
+              "Payload",
+            });
+    internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor =
+        internal_static_google_logging_v2_LogEntry_descriptor.getNestedTypes().get(0);
+    internal_static_google_logging_v2_LogEntry_LabelsEntry_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor,
+            new java.lang.String[] {
+              "Key", "Value",
+            });
+    internal_static_google_logging_v2_LogEntryOperation_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_logging_v2_LogEntryOperation_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_logging_v2_LogEntryOperation_descriptor,
+            new java.lang.String[] {
+              "Id", "Producer", "First", "Last",
+            });
+    internal_static_google_logging_v2_LogEntrySourceLocation_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_logging_v2_LogEntrySourceLocation_descriptor,
+            new java.lang.String[] {
+              "File", "Line", "Function",
+            });
+    internal_static_google_logging_v2_LogSplit_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_logging_v2_LogSplit_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_logging_v2_LogSplit_descriptor,
+            new java.lang.String[] {
+              "Uid", "Index", "TotalSplits",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.ResourceProto.resource);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.MonitoredResourceProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.logging.type.HttpRequestProto.getDescriptor();
+    com.google.logging.type.LogSeverityProto.getDescriptor();
+    com.google.protobuf.AnyProto.getDescriptor();
+    com.google.protobuf.StructProto.getDescriptor();
+    com.google.protobuf.TimestampProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java
similarity index 72%
rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java
rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java
index f146f11d2..657cdf5be 100644
--- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.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/logging/v2/log_entry.proto
 
@@ -5,6 +20,8 @@
 package com.google.logging.v2;
 
 /**
+ *
+ *
  * 
  * Additional information about the source code location that produced the log
  * entry.
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.logging.v2.LogEntrySourceLocation}
  */
-public final class LogEntrySourceLocation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LogEntrySourceLocation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.LogEntrySourceLocation)
     LogEntrySourceLocationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LogEntrySourceLocation.newBuilder() to construct.
   private LogEntrySourceLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LogEntrySourceLocation() {
     file_ = "";
     function_ = "";
@@ -28,34 +46,39 @@ private LogEntrySourceLocation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogEntrySourceLocation();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntrySourceLocation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.logging.v2.LogEntryProto
+        .internal_static_google_logging_v2_LogEntrySourceLocation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable
+    return com.google.logging.v2.LogEntryProto
+        .internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.LogEntrySourceLocation.class, com.google.logging.v2.LogEntrySourceLocation.Builder.class);
+            com.google.logging.v2.LogEntrySourceLocation.class,
+            com.google.logging.v2.LogEntrySourceLocation.Builder.class);
   }
 
   public static final int FILE_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object file_ = "";
   /**
+   *
+   *
    * 
    * Optional. Source file name. Depending on the runtime environment, this
    * might be a simple name or a fully-qualified name.
    * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The file. */ @java.lang.Override @@ -64,30 +87,30 @@ public java.lang.String getFile() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); file_ = s; return s; } } /** + * + * *
    * Optional. Source file name. Depending on the runtime environment, this
    * might be a simple name or a fully-qualified name.
    * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for file. */ @java.lang.Override - public com.google.protobuf.ByteString - getFileBytes() { + public com.google.protobuf.ByteString getFileBytes() { java.lang.Object ref = file_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); file_ = b; return b; } else { @@ -98,12 +121,15 @@ public java.lang.String getFile() { public static final int LINE_FIELD_NUMBER = 2; private long line_ = 0L; /** + * + * *
    * Optional. Line within the source file. 1-based; 0 indicates no line number
    * available.
    * 
* * int64 line = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The line. */ @java.lang.Override @@ -112,9 +138,12 @@ public long getLine() { } public static final int FUNCTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object function_ = ""; /** + * + * *
    * Optional. Human-readable name of the function or method being invoked, with
    * optional context such as the class or package name. This information may be
@@ -125,6 +154,7 @@ public long getLine() {
    * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The function. */ @java.lang.Override @@ -133,14 +163,15 @@ public java.lang.String getFunction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); function_ = s; return s; } } /** + * + * *
    * Optional. Human-readable name of the function or method being invoked, with
    * optional context such as the class or package name. This information may be
@@ -151,16 +182,15 @@ public java.lang.String getFunction() {
    * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for function. */ @java.lang.Override - public com.google.protobuf.ByteString - getFunctionBytes() { + public com.google.protobuf.ByteString getFunctionBytes() { java.lang.Object ref = function_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); function_ = b; return b; } else { @@ -169,6 +199,7 @@ public java.lang.String getFunction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -180,8 +211,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(file_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, file_); } @@ -204,8 +234,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, file_); } if (line_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, line_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, line_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(function_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, function_); @@ -218,19 +247,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.logging.v2.LogEntrySourceLocation)) { return super.equals(obj); } - com.google.logging.v2.LogEntrySourceLocation other = (com.google.logging.v2.LogEntrySourceLocation) obj; + com.google.logging.v2.LogEntrySourceLocation other = + (com.google.logging.v2.LogEntrySourceLocation) obj; - if (!getFile() - .equals(other.getFile())) return false; - if (getLine() - != other.getLine()) return false; - if (!getFunction() - .equals(other.getFunction())) return false; + if (!getFile().equals(other.getFile())) return false; + if (getLine() != other.getLine()) return false; + if (!getFunction().equals(other.getFunction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -245,8 +272,7 @@ public int hashCode() { hash = (37 * hash) + FILE_FIELD_NUMBER; hash = (53 * hash) + getFile().hashCode(); hash = (37 * hash) + LINE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLine()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLine()); hash = (37 * hash) + FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getFunction().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -254,99 +280,104 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LogEntrySourceLocation parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.LogEntrySourceLocation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogEntrySourceLocation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogEntrySourceLocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogEntrySourceLocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogEntrySourceLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogEntrySourceLocation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogEntrySourceLocation 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.logging.v2.LogEntrySourceLocation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.LogEntrySourceLocation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.LogEntrySourceLocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LogEntrySourceLocation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.LogEntrySourceLocation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.LogEntrySourceLocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.LogEntrySourceLocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Additional information about the source code location that produced the log
    * entry.
@@ -354,33 +385,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.LogEntrySourceLocation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.LogEntrySourceLocation)
       com.google.logging.v2.LogEntrySourceLocationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntrySourceLocation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LogEntryProto
+          .internal_static_google_logging_v2_LogEntrySourceLocation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable
+      return com.google.logging.v2.LogEntryProto
+          .internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.LogEntrySourceLocation.class, com.google.logging.v2.LogEntrySourceLocation.Builder.class);
+              com.google.logging.v2.LogEntrySourceLocation.class,
+              com.google.logging.v2.LogEntrySourceLocation.Builder.class);
     }
 
     // Construct using com.google.logging.v2.LogEntrySourceLocation.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();
@@ -392,9 +422,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogEntrySourceLocation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.logging.v2.LogEntryProto
+          .internal_static_google_logging_v2_LogEntrySourceLocation_descriptor;
     }
 
     @java.lang.Override
@@ -413,8 +443,11 @@ public com.google.logging.v2.LogEntrySourceLocation build() {
 
     @java.lang.Override
     public com.google.logging.v2.LogEntrySourceLocation buildPartial() {
-      com.google.logging.v2.LogEntrySourceLocation result = new com.google.logging.v2.LogEntrySourceLocation(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.logging.v2.LogEntrySourceLocation result =
+          new com.google.logging.v2.LogEntrySourceLocation(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -436,38 +469,39 @@ private void buildPartial0(com.google.logging.v2.LogEntrySourceLocation 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.logging.v2.LogEntrySourceLocation) {
-        return mergeFrom((com.google.logging.v2.LogEntrySourceLocation)other);
+        return mergeFrom((com.google.logging.v2.LogEntrySourceLocation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -515,27 +549,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              file_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              line_ = input.readInt64();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 26: {
-              function_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                file_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                line_ = input.readInt64();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 26:
+              {
+                function_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -545,23 +583,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object file_ = "";
     /**
+     *
+     *
      * 
      * Optional. Source file name. Depending on the runtime environment, this
      * might be a simple name or a fully-qualified name.
      * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The file. */ public java.lang.String getFile() { java.lang.Object ref = file_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); file_ = s; return s; @@ -570,21 +611,22 @@ public java.lang.String getFile() { } } /** + * + * *
      * Optional. Source file name. Depending on the runtime environment, this
      * might be a simple name or a fully-qualified name.
      * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for file. */ - public com.google.protobuf.ByteString - getFileBytes() { + public com.google.protobuf.ByteString getFileBytes() { java.lang.Object ref = file_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); file_ = b; return b; } else { @@ -592,30 +634,37 @@ public java.lang.String getFile() { } } /** + * + * *
      * Optional. Source file name. Depending on the runtime environment, this
      * might be a simple name or a fully-qualified name.
      * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The file to set. * @return This builder for chaining. */ - public Builder setFile( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } file_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. Source file name. Depending on the runtime environment, this
      * might be a simple name or a fully-qualified name.
      * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFile() { @@ -625,18 +674,22 @@ public Builder clearFile() { return this; } /** + * + * *
      * Optional. Source file name. Depending on the runtime environment, this
      * might be a simple name or a fully-qualified name.
      * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for file to set. * @return This builder for chaining. */ - public Builder setFileBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); file_ = value; bitField0_ |= 0x00000001; @@ -644,14 +697,17 @@ public Builder setFileBytes( return this; } - private long line_ ; + private long line_; /** + * + * *
      * Optional. Line within the source file. 1-based; 0 indicates no line number
      * available.
      * 
* * int64 line = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The line. */ @java.lang.Override @@ -659,12 +715,15 @@ public long getLine() { return line_; } /** + * + * *
      * Optional. Line within the source file. 1-based; 0 indicates no line number
      * available.
      * 
* * int64 line = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The line to set. * @return This builder for chaining. */ @@ -676,12 +735,15 @@ public Builder setLine(long value) { return this; } /** + * + * *
      * Optional. Line within the source file. 1-based; 0 indicates no line number
      * available.
      * 
* * int64 line = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLine() { @@ -693,6 +755,8 @@ public Builder clearLine() { private java.lang.Object function_ = ""; /** + * + * *
      * Optional. Human-readable name of the function or method being invoked, with
      * optional context such as the class or package name. This information may be
@@ -703,13 +767,13 @@ public Builder clearLine() {
      * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The function. */ public java.lang.String getFunction() { java.lang.Object ref = function_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); function_ = s; return s; @@ -718,6 +782,8 @@ public java.lang.String getFunction() { } } /** + * + * *
      * Optional. Human-readable name of the function or method being invoked, with
      * optional context such as the class or package name. This information may be
@@ -728,15 +794,14 @@ public java.lang.String getFunction() {
      * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for function. */ - public com.google.protobuf.ByteString - getFunctionBytes() { + public com.google.protobuf.ByteString getFunctionBytes() { java.lang.Object ref = function_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); function_ = b; return b; } else { @@ -744,6 +809,8 @@ public java.lang.String getFunction() { } } /** + * + * *
      * Optional. Human-readable name of the function or method being invoked, with
      * optional context such as the class or package name. This information may be
@@ -754,18 +821,22 @@ public java.lang.String getFunction() {
      * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The function to set. * @return This builder for chaining. */ - public Builder setFunction( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFunction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } function_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. Human-readable name of the function or method being invoked, with
      * optional context such as the class or package name. This information may be
@@ -776,6 +847,7 @@ public Builder setFunction(
      * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFunction() { @@ -785,6 +857,8 @@ public Builder clearFunction() { return this; } /** + * + * *
      * Optional. Human-readable name of the function or method being invoked, with
      * optional context such as the class or package name. This information may be
@@ -795,21 +869,23 @@ public Builder clearFunction() {
      * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for function to set. * @return This builder for chaining. */ - public Builder setFunctionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFunctionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); function_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -819,12 +895,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.LogEntrySourceLocation) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogEntrySourceLocation) private static final com.google.logging.v2.LogEntrySourceLocation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.LogEntrySourceLocation(); } @@ -833,27 +909,27 @@ public static com.google.logging.v2.LogEntrySourceLocation getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogEntrySourceLocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogEntrySourceLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -868,6 +944,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogEntrySourceLocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java index 38d4bd198..5f87e42e2 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java @@ -1,47 +1,73 @@ +/* + * 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/logging/v2/log_entry.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogEntrySourceLocationOrBuilder extends +public interface LogEntrySourceLocationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogEntrySourceLocation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Source file name. Depending on the runtime environment, this
    * might be a simple name or a fully-qualified name.
    * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The file. */ java.lang.String getFile(); /** + * + * *
    * Optional. Source file name. Depending on the runtime environment, this
    * might be a simple name or a fully-qualified name.
    * 
* * string file = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for file. */ - com.google.protobuf.ByteString - getFileBytes(); + com.google.protobuf.ByteString getFileBytes(); /** + * + * *
    * Optional. Line within the source file. 1-based; 0 indicates no line number
    * available.
    * 
* * int64 line = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The line. */ long getLine(); /** + * + * *
    * Optional. Human-readable name of the function or method being invoked, with
    * optional context such as the class or package name. This information may be
@@ -52,10 +78,13 @@ public interface LogEntrySourceLocationOrBuilder extends
    * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The function. */ java.lang.String getFunction(); /** + * + * *
    * Optional. Human-readable name of the function or method being invoked, with
    * optional context such as the class or package name. This information may be
@@ -66,8 +95,8 @@ public interface LogEntrySourceLocationOrBuilder extends
    * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for function. */ - com.google.protobuf.ByteString - getFunctionBytes(); + com.google.protobuf.ByteString getFunctionBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java index 4b8aab37c..60af55557 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.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/logging/v2/logging_config.proto @@ -5,6 +20,8 @@ package com.google.logging.v2; /** + * + * *
  * Specifies a set of log entries that are filtered out by a sink. If
  * your Google Cloud resource receives a large volume of log entries, you can
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.logging.v2.LogExclusion}
  */
-public final class LogExclusion extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LogExclusion extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.LogExclusion)
     LogExclusionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LogExclusion.newBuilder() to construct.
   private LogExclusion(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LogExclusion() {
     name_ = "";
     description_ = "";
@@ -32,29 +50,33 @@ private LogExclusion() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogExclusion();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogExclusion_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_LogExclusion_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogExclusion_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_LogExclusion_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.LogExclusion.class, com.google.logging.v2.LogExclusion.Builder.class);
+            com.google.logging.v2.LogExclusion.class,
+            com.google.logging.v2.LogExclusion.Builder.class);
   }
 
   private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. A client-assigned identifier, such as
    * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -63,6 +85,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -71,14 +94,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. A client-assigned identifier, such as
    * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -87,16 +111,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -105,14 +128,18 @@ public java.lang.String getName() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Optional. A description of this exclusion.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -121,29 +148,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; } } /** + * + * *
    * Optional. A description of this exclusion.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -152,9 +179,12 @@ public java.lang.String getDescription() { } public static final int FILTER_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -169,6 +199,7 @@ public java.lang.String getDescription() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -177,14 +208,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -199,16 +231,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -219,6 +250,8 @@ public java.lang.String getFilter() { public static final int DISABLED_FIELD_NUMBER = 4; private boolean disabled_ = false; /** + * + * *
    * Optional. If set to True, then this exclusion is disabled and it does not
    * exclude any log entries. You can [update an
@@ -227,6 +260,7 @@ public java.lang.String getFilter() {
    * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disabled. */ @java.lang.Override @@ -237,13 +271,17 @@ public boolean getDisabled() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The creation timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -251,13 +289,17 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Output only. The creation timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -265,13 +307,16 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The creation timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -281,13 +326,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The last update timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -295,13 +344,17 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Output only. The last update timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -309,13 +362,16 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The last update timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -323,6 +379,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -334,8 +391,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_); } @@ -373,16 +429,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, disabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, disabled_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -392,30 +445,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LogExclusion)) { return super.equals(obj); } com.google.logging.v2.LogExclusion other = (com.google.logging.v2.LogExclusion) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (getDisabled() - != other.getDisabled()) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getDisabled() != other.getDisabled()) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) 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; @@ -435,8 +482,7 @@ public int hashCode() { hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -450,99 +496,103 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LogExclusion parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.LogExclusion parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogExclusion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogExclusion parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.LogExclusion parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogExclusion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogExclusion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogExclusion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogExclusion 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.logging.v2.LogExclusion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.LogExclusion parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LogExclusion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.LogExclusion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.LogExclusion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.LogExclusion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Specifies a set of log entries that are filtered out by a sink. If
    * your Google Cloud resource receives a large volume of log entries, you can
@@ -553,21 +603,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.LogExclusion}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.LogExclusion)
       com.google.logging.v2.LogExclusionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogExclusion_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_LogExclusion_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogExclusion_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_LogExclusion_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.LogExclusion.class, com.google.logging.v2.LogExclusion.Builder.class);
+              com.google.logging.v2.LogExclusion.class,
+              com.google.logging.v2.LogExclusion.Builder.class);
     }
 
     // Construct using com.google.logging.v2.LogExclusion.newBuilder()
@@ -575,18 +627,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) {
         getCreateTimeFieldBuilder();
         getUpdateTimeFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -609,9 +661,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogExclusion_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_LogExclusion_descriptor;
     }
 
     @java.lang.Override
@@ -631,7 +683,9 @@ public com.google.logging.v2.LogExclusion build() {
     @java.lang.Override
     public com.google.logging.v2.LogExclusion buildPartial() {
       com.google.logging.v2.LogExclusion result = new com.google.logging.v2.LogExclusion(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -652,15 +706,11 @@ private void buildPartial0(com.google.logging.v2.LogExclusion result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -670,38 +720,39 @@ private void buildPartial0(com.google.logging.v2.LogExclusion 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.logging.v2.LogExclusion) {
-        return mergeFrom((com.google.logging.v2.LogExclusion)other);
+        return mergeFrom((com.google.logging.v2.LogExclusion) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -760,46 +811,49 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              filter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              disabled_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            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:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                filter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                disabled_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -809,10 +863,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -821,13 +878,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -836,6 +893,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -844,15 +903,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -860,6 +918,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -868,18 +928,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -888,6 +952,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -897,6 +962,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -905,12 +972,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -920,18 +989,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. A description of this exclusion.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -940,20 +1011,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A description of this exclusion.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -961,28 +1033,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A description of this exclusion.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A description of this exclusion.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -992,17 +1071,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Optional. A description of this exclusion.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_ |= 0x00000002; @@ -1012,6 +1095,8 @@ public Builder setDescriptionBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1026,13 +1111,13 @@ public Builder setDescriptionBytes(
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1041,6 +1126,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1055,15 +1142,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1071,6 +1157,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1085,18 +1173,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1111,6 +1203,7 @@ public Builder setFilter(
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1120,6 +1213,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1134,12 +1229,14 @@ public Builder clearFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000004; @@ -1147,8 +1244,10 @@ public Builder setFilterBytes( return this; } - private boolean disabled_ ; + private boolean disabled_; /** + * + * *
      * Optional. If set to True, then this exclusion is disabled and it does not
      * exclude any log entries. You can [update an
@@ -1157,6 +1256,7 @@ public Builder setFilterBytes(
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disabled. */ @java.lang.Override @@ -1164,6 +1264,8 @@ public boolean getDisabled() { return disabled_; } /** + * + * *
      * Optional. If set to True, then this exclusion is disabled and it does not
      * exclude any log entries. You can [update an
@@ -1172,6 +1274,7 @@ public boolean getDisabled() {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The disabled to set. * @return This builder for chaining. */ @@ -1183,6 +1286,8 @@ public Builder setDisabled(boolean value) { return this; } /** + * + * *
      * Optional. If set to True, then this exclusion is disabled and it does not
      * exclude any log entries. You can [update an
@@ -1191,6 +1296,7 @@ public Builder setDisabled(boolean value) {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisabled() { @@ -1202,45 +1308,64 @@ public Builder clearDisabled() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1256,16 +1381,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1276,19 +1404,23 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1303,13 +1435,17 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1322,13 +1458,17 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000010; @@ -1336,40 +1476,52 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The creation timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1377,45 +1529,64 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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 last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.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 last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1431,16 +1602,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.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 { @@ -1451,19 +1625,23 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1478,13 +1656,17 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000020); @@ -1497,13 +1679,17 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000020; @@ -1511,47 +1697,59 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.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 last update timestamp of the exclusion.
      *
      * This field may not be present for older exclusions.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.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); } @@ -1561,12 +1759,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.LogExclusion) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogExclusion) private static final com.google.logging.v2.LogExclusion DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.LogExclusion(); } @@ -1575,27 +1773,27 @@ public static com.google.logging.v2.LogExclusion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogExclusion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogExclusion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1610,6 +1808,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogExclusion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java similarity index 80% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java index 420c8cd0a..c1b9e2f4d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogExclusionOrBuilder extends +public interface LogExclusionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogExclusion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. A client-assigned identifier, such as
    * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -17,10 +35,13 @@ public interface LogExclusionOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. A client-assigned identifier, such as
    * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -29,32 +50,39 @@ public interface LogExclusionOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A description of this exclusion.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. A description of this exclusion.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -69,10 +97,13 @@ public interface LogExclusionOrBuilder extends
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -87,12 +118,14 @@ public interface LogExclusionOrBuilder extends
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. If set to True, then this exclusion is disabled and it does not
    * exclude any log entries. You can [update an
@@ -101,73 +134,96 @@ public interface LogExclusionOrBuilder extends
    * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disabled. */ boolean getDisabled(); /** + * + * *
    * Output only. The creation timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The creation timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The creation timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The last update timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The last update timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The last update timestamp of the exclusion.
    *
    * This field may not be present for older exclusions.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java similarity index 75% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java index 25b13295a..d9be29906 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.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/logging/v2/logging_metrics.proto @@ -5,6 +20,8 @@ package com.google.logging.v2; /** + * + * *
  * Describes a logs-based metric. The value of the metric is the number of log
  * entries that match a logs filter in a given time interval.
@@ -17,15 +34,16 @@
  *
  * Protobuf type {@code google.logging.v2.LogMetric}
  */
-public final class LogMetric extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LogMetric extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.LogMetric)
     LogMetricOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LogMetric.newBuilder() to construct.
   private LogMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LogMetric() {
     name_ = "";
     description_ = "";
@@ -37,14 +55,13 @@ private LogMetric() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogMetric();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_LogMetric_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.logging.v2.LoggingMetricsProto
+        .internal_static_google_logging_v2_LogMetric_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
@@ -55,28 +72,32 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
       case 7:
         return internalGetLabelExtractors();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_LogMetric_fieldAccessorTable
+    return com.google.logging.v2.LoggingMetricsProto
+        .internal_static_google_logging_v2_LogMetric_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.logging.v2.LogMetric.class, com.google.logging.v2.LogMetric.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Logging API version.
    * 
* * Protobuf enum {@code google.logging.v2.LogMetric.ApiVersion} */ - public enum ApiVersion - implements com.google.protobuf.ProtocolMessageEnum { + public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Logging API v2.
      * 
@@ -85,6 +106,8 @@ public enum ApiVersion */ V2(0), /** + * + * *
      * Logging API v1.
      * 
@@ -96,6 +119,8 @@ public enum ApiVersion ; /** + * + * *
      * Logging API v2.
      * 
@@ -104,6 +129,8 @@ public enum ApiVersion */ public static final int V2_VALUE = 0; /** + * + * *
      * Logging API v1.
      * 
@@ -112,7 +139,6 @@ public enum ApiVersion */ public static final int V1_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -137,48 +163,47 @@ public static ApiVersion valueOf(int value) { */ public static ApiVersion forNumber(int value) { switch (value) { - case 0: return V2; - case 1: return V1; - default: return null; + case 0: + return V2; + case 1: + return V1; + 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< - ApiVersion> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ApiVersion findValueByNumber(int number) { - return ApiVersion.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 ApiVersion findValueByNumber(int number) { + return ApiVersion.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.logging.v2.LogMetric.getDescriptor().getEnumTypes().get(0); } private static final ApiVersion[] VALUES = values(); - public static ApiVersion valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static ApiVersion 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; @@ -197,9 +222,12 @@ private ApiVersion(int value) { private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
@@ -217,6 +245,7 @@ private ApiVersion(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -225,14 +254,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
@@ -250,16 +280,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -268,15 +297,19 @@ public java.lang.String getName() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Optional. A description of this metric, which is used in documentation.
    * The maximum length of the description is 8000 characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -285,30 +318,30 @@ 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; } } /** + * + * *
    * Optional. A description of this metric, which is used in documentation.
    * The maximum length of the description is 8000 characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -317,9 +350,12 @@ public java.lang.String getDescription() { } public static final int FILTER_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -331,6 +367,7 @@ public java.lang.String getDescription() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -339,14 +376,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -358,16 +396,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -376,9 +413,12 @@ public java.lang.String getFilter() { } public static final int BUCKET_NAME_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private volatile java.lang.Object bucketName_ = ""; /** + * + * *
    * Optional. The resource name of the Log Bucket that owns the Log Metric.
    * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -392,6 +432,7 @@ public java.lang.String getFilter() {
    * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bucketName. */ @java.lang.Override @@ -400,14 +441,15 @@ public java.lang.String getBucketName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketName_ = s; return s; } } /** + * + * *
    * Optional. The resource name of the Log Bucket that owns the Log Metric.
    * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -421,16 +463,15 @@ public java.lang.String getBucketName() {
    * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for bucketName. */ @java.lang.Override - public com.google.protobuf.ByteString - getBucketNameBytes() { + public com.google.protobuf.ByteString getBucketNameBytes() { java.lang.Object ref = bucketName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucketName_ = b; return b; } else { @@ -441,12 +482,15 @@ public java.lang.String getBucketName() { public static final int DISABLED_FIELD_NUMBER = 12; private boolean disabled_ = false; /** + * + * *
    * Optional. If set to True, then this metric is disabled and it does not
    * generate any points.
    * 
* * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disabled. */ @java.lang.Override @@ -457,6 +501,8 @@ public boolean getDisabled() { public static final int METRIC_DESCRIPTOR_FIELD_NUMBER = 5; private com.google.api.MetricDescriptor metricDescriptor_; /** + * + * *
    * Optional. The metric descriptor associated with the logs-based metric.
    * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -481,7 +527,10 @@ public boolean getDisabled() {
    * their description.
    * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the metricDescriptor field is set. */ @java.lang.Override @@ -489,6 +538,8 @@ public boolean hasMetricDescriptor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Optional. The metric descriptor associated with the logs-based metric.
    * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -513,14 +564,21 @@ public boolean hasMetricDescriptor() {
    * their description.
    * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metricDescriptor. */ @java.lang.Override public com.google.api.MetricDescriptor getMetricDescriptor() { - return metricDescriptor_ == null ? com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; + return metricDescriptor_ == null + ? com.google.api.MetricDescriptor.getDefaultInstance() + : metricDescriptor_; } /** + * + * *
    * Optional. The metric descriptor associated with the logs-based metric.
    * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -545,17 +603,24 @@ public com.google.api.MetricDescriptor getMetricDescriptor() {
    * their description.
    * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() { - return metricDescriptor_ == null ? com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; + return metricDescriptor_ == null + ? com.google.api.MetricDescriptor.getDefaultInstance() + : metricDescriptor_; } public static final int VALUE_EXTRACTOR_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object valueExtractor_ = ""; /** + * + * *
    * Optional. A `value_extractor` is required when using a distribution
    * logs-based metric to extract the values to record from a log entry.
@@ -580,6 +645,7 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() {
    * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The valueExtractor. */ @java.lang.Override @@ -588,14 +654,15 @@ public java.lang.String getValueExtractor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); valueExtractor_ = s; return s; } } /** + * + * *
    * Optional. A `value_extractor` is required when using a distribution
    * logs-based metric to extract the values to record from a log entry.
@@ -620,16 +687,15 @@ public java.lang.String getValueExtractor() {
    * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for valueExtractor. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueExtractorBytes() { + public com.google.protobuf.ByteString getValueExtractorBytes() { java.lang.Object ref = valueExtractor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); valueExtractor_ = b; return b; } else { @@ -638,32 +704,36 @@ public java.lang.String getValueExtractor() { } public static final int LABEL_EXTRACTORS_FIELD_NUMBER = 7; + private static final class LabelExtractorsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labelExtractors_; + private com.google.protobuf.MapField labelExtractors_; + private com.google.protobuf.MapField - internalGetLabelExtractors() { + internalGetLabelExtractors() { if (labelExtractors_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelExtractorsDefaultEntryHolder.defaultEntry); } return labelExtractors_; } + public int getLabelExtractorsCount() { return internalGetLabelExtractors().getMap().size(); } /** + * + * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -681,23 +751,25 @@ public int getLabelExtractorsCount() {
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsLabelExtractors( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabelExtractors(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabelExtractors().getMap().containsKey(key); } - /** - * Use {@link #getLabelExtractorsMap()} instead. - */ + /** Use {@link #getLabelExtractorsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabelExtractors() { return getLabelExtractorsMap(); } /** + * + * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -715,13 +787,16 @@ public java.util.Map getLabelExtractors() {
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getLabelExtractorsMap() { return internalGetLabelExtractors().getMap(); } /** + * + * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -739,20 +814,23 @@ public java.util.Map getLabelExtractorsMap()
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelExtractorsOrDefault( + public /* nullable */ java.lang.String getLabelExtractorsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabelExtractors().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabelExtractors().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -770,14 +848,15 @@ java.lang.String getLabelExtractorsOrDefault(
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getLabelExtractorsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabelExtractors().getMap(); + public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabelExtractors().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -787,13 +866,18 @@ public java.lang.String getLabelExtractorsOrThrow( public static final int BUCKET_OPTIONS_FIELD_NUMBER = 8; private com.google.api.Distribution.BucketOptions bucketOptions_; /** + * + * *
    * Optional. The `bucket_options` are required when the logs-based metric is
    * using a DISTRIBUTION value type and it describes the bucket boundaries
    * used to create a histogram of the extracted values.
    * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bucketOptions field is set. */ @java.lang.Override @@ -801,43 +885,60 @@ public boolean hasBucketOptions() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Optional. The `bucket_options` are required when the logs-based metric is
    * using a DISTRIBUTION value type and it describes the bucket boundaries
    * used to create a histogram of the extracted values.
    * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bucketOptions. */ @java.lang.Override public com.google.api.Distribution.BucketOptions getBucketOptions() { - return bucketOptions_ == null ? com.google.api.Distribution.BucketOptions.getDefaultInstance() : bucketOptions_; + return bucketOptions_ == null + ? com.google.api.Distribution.BucketOptions.getDefaultInstance() + : bucketOptions_; } /** + * + * *
    * Optional. The `bucket_options` are required when the logs-based metric is
    * using a DISTRIBUTION value type and it describes the bucket boundaries
    * used to create a histogram of the extracted values.
    * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder() { - return bucketOptions_ == null ? com.google.api.Distribution.BucketOptions.getDefaultInstance() : bucketOptions_; + return bucketOptions_ == null + ? com.google.api.Distribution.BucketOptions.getDefaultInstance() + : bucketOptions_; } public static final int CREATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The creation timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -845,13 +946,17 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * Output only. The creation timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -859,13 +964,16 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The creation timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -875,13 +983,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The last update timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -889,13 +1001,17 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
    * Output only. The last update timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -903,13 +1019,16 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The last update timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -919,36 +1038,48 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int VERSION_FIELD_NUMBER = 4; private int version_ = 0; /** + * + * *
    * Deprecated. The API version that created or updated this metric.
    * The v2 format is used by default and cannot be changed.
    * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * @deprecated google.logging.v2.LogMetric.version is deprecated. - * See google/logging/v2/logging_metrics.proto;l=237 + * + * @deprecated google.logging.v2.LogMetric.version is deprecated. See + * google/logging/v2/logging_metrics.proto;l=237 * @return The enum numeric value on the wire for version. */ - @java.lang.Override @java.lang.Deprecated public int getVersionValue() { + @java.lang.Override + @java.lang.Deprecated + public int getVersionValue() { return version_; } /** + * + * *
    * Deprecated. The API version that created or updated this metric.
    * The v2 format is used by default and cannot be changed.
    * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * @deprecated google.logging.v2.LogMetric.version is deprecated. - * See google/logging/v2/logging_metrics.proto;l=237 + * + * @deprecated google.logging.v2.LogMetric.version is deprecated. See + * google/logging/v2/logging_metrics.proto;l=237 * @return The version. */ - @java.lang.Override @java.lang.Deprecated public com.google.logging.v2.LogMetric.ApiVersion getVersion() { - com.google.logging.v2.LogMetric.ApiVersion result = com.google.logging.v2.LogMetric.ApiVersion.forNumber(version_); + @java.lang.Override + @java.lang.Deprecated + public com.google.logging.v2.LogMetric.ApiVersion getVersion() { + com.google.logging.v2.LogMetric.ApiVersion result = + com.google.logging.v2.LogMetric.ApiVersion.forNumber(version_); return result == null ? com.google.logging.v2.LogMetric.ApiVersion.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -960,8 +1091,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_); } @@ -980,12 +1110,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(valueExtractor_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, valueExtractor_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabelExtractors(), - LabelExtractorsDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabelExtractors(), LabelExtractorsDefaultEntryHolder.defaultEntry, 7); if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getBucketOptions()); } @@ -1020,41 +1146,35 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (version_ != com.google.logging.v2.LogMetric.ApiVersion.V2.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, version_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, version_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getMetricDescriptor()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetricDescriptor()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(valueExtractor_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, valueExtractor_); } - for (java.util.Map.Entry entry - : internalGetLabelExtractors().getMap().entrySet()) { - com.google.protobuf.MapEntry - labelExtractors__ = LabelExtractorsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, labelExtractors__); + for (java.util.Map.Entry entry : + internalGetLabelExtractors().getMap().entrySet()) { + com.google.protobuf.MapEntry labelExtractors__ = + LabelExtractorsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labelExtractors__); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getBucketOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getBucketOptions()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); } if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, disabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, disabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, bucketName_); @@ -1067,46 +1187,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LogMetric)) { return super.equals(obj); } com.google.logging.v2.LogMetric other = (com.google.logging.v2.LogMetric) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getBucketName() - .equals(other.getBucketName())) return false; - if (getDisabled() - != other.getDisabled()) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getBucketName().equals(other.getBucketName())) return false; + if (getDisabled() != other.getDisabled()) return false; if (hasMetricDescriptor() != other.hasMetricDescriptor()) return false; if (hasMetricDescriptor()) { - if (!getMetricDescriptor() - .equals(other.getMetricDescriptor())) return false; + if (!getMetricDescriptor().equals(other.getMetricDescriptor())) return false; } - if (!getValueExtractor() - .equals(other.getValueExtractor())) return false; - if (!internalGetLabelExtractors().equals( - other.internalGetLabelExtractors())) return false; + if (!getValueExtractor().equals(other.getValueExtractor())) return false; + if (!internalGetLabelExtractors().equals(other.internalGetLabelExtractors())) return false; if (hasBucketOptions() != other.hasBucketOptions()) return false; if (hasBucketOptions()) { - if (!getBucketOptions() - .equals(other.getBucketOptions())) return false; + if (!getBucketOptions().equals(other.getBucketOptions())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) 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 (version_ != other.version_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1129,8 +1238,7 @@ public int hashCode() { hash = (37 * hash) + BUCKET_NAME_FIELD_NUMBER; hash = (53 * hash) + getBucketName().hashCode(); hash = (37 * hash) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); if (hasMetricDescriptor()) { hash = (37 * hash) + METRIC_DESCRIPTOR_FIELD_NUMBER; hash = (53 * hash) + getMetricDescriptor().hashCode(); @@ -1160,99 +1268,103 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LogMetric parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.LogMetric parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogMetric parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogMetric parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.LogMetric parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogMetric parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogMetric parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogMetric parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogMetric 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.logging.v2.LogMetric parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.LogMetric parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LogMetric parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.LogMetric parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.LogMetric parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.LogMetric prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes a logs-based metric. The value of the metric is the number of log
    * entries that match a logs filter in a given time interval.
@@ -1265,13 +1377,13 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.LogMetric}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.LogMetric)
       com.google.logging.v2.LogMetricOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_LogMetric_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LoggingMetricsProto
+          .internal_static_google_logging_v2_LogMetric_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
@@ -1281,10 +1393,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
         case 7:
           return internalGetLabelExtractors();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
     protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
         int number) {
@@ -1292,14 +1404,15 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi
         case 7:
           return internalGetMutableLabelExtractors();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_LogMetric_fieldAccessorTable
+      return com.google.logging.v2.LoggingMetricsProto
+          .internal_static_google_logging_v2_LogMetric_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.logging.v2.LogMetric.class, com.google.logging.v2.LogMetric.Builder.class);
     }
@@ -1309,20 +1422,20 @@ 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) {
         getMetricDescriptorFieldBuilder();
         getBucketOptionsFieldBuilder();
         getCreateTimeFieldBuilder();
         getUpdateTimeFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1359,9 +1472,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_LogMetric_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.logging.v2.LoggingMetricsProto
+          .internal_static_google_logging_v2_LogMetric_descriptor;
     }
 
     @java.lang.Override
@@ -1381,7 +1494,9 @@ public com.google.logging.v2.LogMetric build() {
     @java.lang.Override
     public com.google.logging.v2.LogMetric buildPartial() {
       com.google.logging.v2.LogMetric result = new com.google.logging.v2.LogMetric(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1405,9 +1520,8 @@ private void buildPartial0(com.google.logging.v2.LogMetric result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.metricDescriptor_ = metricDescriptorBuilder_ == null
-            ? metricDescriptor_
-            : metricDescriptorBuilder_.build();
+        result.metricDescriptor_ =
+            metricDescriptorBuilder_ == null ? metricDescriptor_ : metricDescriptorBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
@@ -1418,21 +1532,16 @@ private void buildPartial0(com.google.logging.v2.LogMetric result) {
         result.labelExtractors_.makeImmutable();
       }
       if (((from_bitField0_ & 0x00000100) != 0)) {
-        result.bucketOptions_ = bucketOptionsBuilder_ == null
-            ? bucketOptions_
-            : bucketOptionsBuilder_.build();
+        result.bucketOptions_ =
+            bucketOptionsBuilder_ == null ? bucketOptions_ : bucketOptionsBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
         to_bitField0_ |= 0x00000004;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
         to_bitField0_ |= 0x00000008;
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
@@ -1445,38 +1554,39 @@ private void buildPartial0(com.google.logging.v2.LogMetric 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.logging.v2.LogMetric) {
-        return mergeFrom((com.google.logging.v2.LogMetric)other);
+        return mergeFrom((com.google.logging.v2.LogMetric) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1516,8 +1626,7 @@ public Builder mergeFrom(com.google.logging.v2.LogMetric other) {
         bitField0_ |= 0x00000040;
         onChanged();
       }
-      internalGetMutableLabelExtractors().mergeFrom(
-          other.internalGetLabelExtractors());
+      internalGetMutableLabelExtractors().mergeFrom(other.internalGetLabelExtractors());
       bitField0_ |= 0x00000080;
       if (other.hasBucketOptions()) {
         mergeBucketOptions(other.getBucketOptions());
@@ -1557,84 +1666,92 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              filter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 32: {
-              version_ = input.readEnum();
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 32
-            case 42: {
-              input.readMessage(
-                  getMetricDescriptorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 42
-            case 50: {
-              valueExtractor_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 50
-            case 58: {
-              com.google.protobuf.MapEntry
-              labelExtractors__ = input.readMessage(
-                  LabelExtractorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabelExtractors().getMutableMap().put(
-                  labelExtractors__.getKey(), labelExtractors__.getValue());
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getBucketOptionsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 74
-            case 82: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 82
-            case 96: {
-              disabled_ = input.readBool();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 96
-            case 106: {
-              bucketName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 106
-            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:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                filter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 32:
+              {
+                version_ = input.readEnum();
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 32
+            case 42:
+              {
+                input.readMessage(
+                    getMetricDescriptorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 42
+            case 50:
+              {
+                valueExtractor_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 50
+            case 58:
+              {
+                com.google.protobuf.MapEntry labelExtractors__ =
+                    input.readMessage(
+                        LabelExtractorsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabelExtractors()
+                    .getMutableMap()
+                    .put(labelExtractors__.getKey(), labelExtractors__.getValue());
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getBucketOptionsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 74
+            case 82:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 82
+            case 96:
+              {
+                disabled_ = input.readBool();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 96
+            case 106:
+              {
+                bucketName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 106
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1644,10 +1761,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1665,13 +1785,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1680,6 +1800,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1697,15 +1819,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1713,6 +1834,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1730,18 +1853,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1759,6 +1886,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1768,6 +1896,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1785,12 +1915,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1800,19 +1932,21 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. A description of this metric, which is used in documentation.
      * The maximum length of the description is 8000 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1821,21 +1955,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A description of this metric, which is used in documentation.
      * The maximum length of the description is 8000 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1843,30 +1978,37 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A description of this metric, which is used in documentation.
      * The maximum length of the description is 8000 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A description of this metric, which is used in documentation.
      * The maximum length of the description is 8000 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1876,18 +2018,22 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Optional. A description of this metric, which is used in documentation.
      * The maximum length of the description is 8000 characters.
      * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_ |= 0x00000002; @@ -1897,6 +2043,8 @@ public Builder setDescriptionBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1908,13 +2056,13 @@ public Builder setDescriptionBytes(
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1923,6 +2071,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1934,15 +2084,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1950,6 +2099,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1961,18 +2112,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1984,6 +2139,7 @@ public Builder setFilter(
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1993,6 +2149,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -2004,12 +2162,14 @@ public Builder clearFilter() {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000004; @@ -2019,6 +2179,8 @@ public Builder setFilterBytes( private java.lang.Object bucketName_ = ""; /** + * + * *
      * Optional. The resource name of the Log Bucket that owns the Log Metric.
      * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -2032,13 +2194,13 @@ public Builder setFilterBytes(
      * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bucketName. */ public java.lang.String getBucketName() { java.lang.Object ref = bucketName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketName_ = s; return s; @@ -2047,6 +2209,8 @@ public java.lang.String getBucketName() { } } /** + * + * *
      * Optional. The resource name of the Log Bucket that owns the Log Metric.
      * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -2060,15 +2224,14 @@ public java.lang.String getBucketName() {
      * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for bucketName. */ - public com.google.protobuf.ByteString - getBucketNameBytes() { + public com.google.protobuf.ByteString getBucketNameBytes() { java.lang.Object ref = bucketName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucketName_ = b; return b; } else { @@ -2076,6 +2239,8 @@ public java.lang.String getBucketName() { } } /** + * + * *
      * Optional. The resource name of the Log Bucket that owns the Log Metric.
      * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -2089,18 +2254,22 @@ public java.lang.String getBucketName() {
      * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bucketName to set. * @return This builder for chaining. */ - public Builder setBucketName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBucketName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } bucketName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The resource name of the Log Bucket that owns the Log Metric.
      * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -2114,6 +2283,7 @@ public Builder setBucketName(
      * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearBucketName() { @@ -2123,6 +2293,8 @@ public Builder clearBucketName() { return this; } /** + * + * *
      * Optional. The resource name of the Log Bucket that owns the Log Metric.
      * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -2136,12 +2308,14 @@ public Builder clearBucketName() {
      * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for bucketName to set. * @return This builder for chaining. */ - public Builder setBucketNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBucketNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); bucketName_ = value; bitField0_ |= 0x00000008; @@ -2149,14 +2323,17 @@ public Builder setBucketNameBytes( return this; } - private boolean disabled_ ; + private boolean disabled_; /** + * + * *
      * Optional. If set to True, then this metric is disabled and it does not
      * generate any points.
      * 
* * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disabled. */ @java.lang.Override @@ -2164,12 +2341,15 @@ public boolean getDisabled() { return disabled_; } /** + * + * *
      * Optional. If set to True, then this metric is disabled and it does not
      * generate any points.
      * 
* * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The disabled to set. * @return This builder for chaining. */ @@ -2181,12 +2361,15 @@ public Builder setDisabled(boolean value) { return this; } /** + * + * *
      * Optional. If set to True, then this metric is disabled and it does not
      * generate any points.
      * 
* * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisabled() { @@ -2198,8 +2381,13 @@ public Builder clearDisabled() { private com.google.api.MetricDescriptor metricDescriptor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> metricDescriptorBuilder_; + com.google.api.MetricDescriptor, + com.google.api.MetricDescriptor.Builder, + com.google.api.MetricDescriptorOrBuilder> + metricDescriptorBuilder_; /** + * + * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2224,13 +2412,18 @@ public Builder clearDisabled() {
      * their description.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the metricDescriptor field is set. */ public boolean hasMetricDescriptor() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2255,17 +2448,24 @@ public boolean hasMetricDescriptor() {
      * their description.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metricDescriptor. */ public com.google.api.MetricDescriptor getMetricDescriptor() { if (metricDescriptorBuilder_ == null) { - return metricDescriptor_ == null ? com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; + return metricDescriptor_ == null + ? com.google.api.MetricDescriptor.getDefaultInstance() + : metricDescriptor_; } else { return metricDescriptorBuilder_.getMessage(); } } /** + * + * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2290,7 +2490,9 @@ public com.google.api.MetricDescriptor getMetricDescriptor() {
      * their description.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMetricDescriptor(com.google.api.MetricDescriptor value) { if (metricDescriptorBuilder_ == null) { @@ -2306,6 +2508,8 @@ public Builder setMetricDescriptor(com.google.api.MetricDescriptor value) { return this; } /** + * + * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2330,10 +2534,11 @@ public Builder setMetricDescriptor(com.google.api.MetricDescriptor value) {
      * their description.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setMetricDescriptor( - com.google.api.MetricDescriptor.Builder builderForValue) { + public Builder setMetricDescriptor(com.google.api.MetricDescriptor.Builder builderForValue) { if (metricDescriptorBuilder_ == null) { metricDescriptor_ = builderForValue.build(); } else { @@ -2344,6 +2549,8 @@ public Builder setMetricDescriptor( return this; } /** + * + * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2368,13 +2575,15 @@ public Builder setMetricDescriptor(
      * their description.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMetricDescriptor(com.google.api.MetricDescriptor value) { if (metricDescriptorBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - metricDescriptor_ != null && - metricDescriptor_ != com.google.api.MetricDescriptor.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && metricDescriptor_ != null + && metricDescriptor_ != com.google.api.MetricDescriptor.getDefaultInstance()) { getMetricDescriptorBuilder().mergeFrom(value); } else { metricDescriptor_ = value; @@ -2389,6 +2598,8 @@ public Builder mergeMetricDescriptor(com.google.api.MetricDescriptor value) { return this; } /** + * + * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2413,7 +2624,9 @@ public Builder mergeMetricDescriptor(com.google.api.MetricDescriptor value) {
      * their description.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMetricDescriptor() { bitField0_ = (bitField0_ & ~0x00000020); @@ -2426,6 +2639,8 @@ public Builder clearMetricDescriptor() { return this; } /** + * + * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2450,7 +2665,9 @@ public Builder clearMetricDescriptor() {
      * their description.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.api.MetricDescriptor.Builder getMetricDescriptorBuilder() { bitField0_ |= 0x00000020; @@ -2458,6 +2675,8 @@ public com.google.api.MetricDescriptor.Builder getMetricDescriptorBuilder() { return getMetricDescriptorFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2482,17 +2701,22 @@ public com.google.api.MetricDescriptor.Builder getMetricDescriptorBuilder() {
      * their description.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() { if (metricDescriptorBuilder_ != null) { return metricDescriptorBuilder_.getMessageOrBuilder(); } else { - return metricDescriptor_ == null ? - com.google.api.MetricDescriptor.getDefaultInstance() : metricDescriptor_; + return metricDescriptor_ == null + ? com.google.api.MetricDescriptor.getDefaultInstance() + : metricDescriptor_; } } /** + * + * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2517,17 +2741,22 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() {
      * their description.
      * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder> + com.google.api.MetricDescriptor, + com.google.api.MetricDescriptor.Builder, + com.google.api.MetricDescriptorOrBuilder> getMetricDescriptorFieldBuilder() { if (metricDescriptorBuilder_ == null) { - metricDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MetricDescriptor, com.google.api.MetricDescriptor.Builder, com.google.api.MetricDescriptorOrBuilder>( - getMetricDescriptor(), - getParentForChildren(), - isClean()); + metricDescriptorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.MetricDescriptor, + com.google.api.MetricDescriptor.Builder, + com.google.api.MetricDescriptorOrBuilder>( + getMetricDescriptor(), getParentForChildren(), isClean()); metricDescriptor_ = null; } return metricDescriptorBuilder_; @@ -2535,6 +2764,8 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() { private java.lang.Object valueExtractor_ = ""; /** + * + * *
      * Optional. A `value_extractor` is required when using a distribution
      * logs-based metric to extract the values to record from a log entry.
@@ -2559,13 +2790,13 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() {
      * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The valueExtractor. */ public java.lang.String getValueExtractor() { java.lang.Object ref = valueExtractor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); valueExtractor_ = s; return s; @@ -2574,6 +2805,8 @@ public java.lang.String getValueExtractor() { } } /** + * + * *
      * Optional. A `value_extractor` is required when using a distribution
      * logs-based metric to extract the values to record from a log entry.
@@ -2598,15 +2831,14 @@ public java.lang.String getValueExtractor() {
      * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for valueExtractor. */ - public com.google.protobuf.ByteString - getValueExtractorBytes() { + public com.google.protobuf.ByteString getValueExtractorBytes() { java.lang.Object ref = valueExtractor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); valueExtractor_ = b; return b; } else { @@ -2614,6 +2846,8 @@ public java.lang.String getValueExtractor() { } } /** + * + * *
      * Optional. A `value_extractor` is required when using a distribution
      * logs-based metric to extract the values to record from a log entry.
@@ -2638,18 +2872,22 @@ public java.lang.String getValueExtractor() {
      * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The valueExtractor to set. * @return This builder for chaining. */ - public Builder setValueExtractor( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueExtractor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } valueExtractor_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Optional. A `value_extractor` is required when using a distribution
      * logs-based metric to extract the values to record from a log entry.
@@ -2674,6 +2912,7 @@ public Builder setValueExtractor(
      * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValueExtractor() { @@ -2683,6 +2922,8 @@ public Builder clearValueExtractor() { return this; } /** + * + * *
      * Optional. A `value_extractor` is required when using a distribution
      * logs-based metric to extract the values to record from a log entry.
@@ -2707,12 +2948,14 @@ public Builder clearValueExtractor() {
      * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for valueExtractor to set. * @return This builder for chaining. */ - public Builder setValueExtractorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setValueExtractorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); valueExtractor_ = value; bitField0_ |= 0x00000040; @@ -2720,8 +2963,8 @@ public Builder setValueExtractorBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labelExtractors_; + private com.google.protobuf.MapField labelExtractors_; + private com.google.protobuf.MapField internalGetLabelExtractors() { if (labelExtractors_ == null) { @@ -2730,11 +2973,13 @@ public Builder setValueExtractorBytes( } return labelExtractors_; } + private com.google.protobuf.MapField internalGetMutableLabelExtractors() { if (labelExtractors_ == null) { - labelExtractors_ = com.google.protobuf.MapField.newMapField( - LabelExtractorsDefaultEntryHolder.defaultEntry); + labelExtractors_ = + com.google.protobuf.MapField.newMapField( + LabelExtractorsDefaultEntryHolder.defaultEntry); } if (!labelExtractors_.isMutable()) { labelExtractors_ = labelExtractors_.copy(); @@ -2743,10 +2988,13 @@ public Builder setValueExtractorBytes( onChanged(); return labelExtractors_; } + public int getLabelExtractorsCount() { return internalGetLabelExtractors().getMap().size(); } /** + * + * *
      * Optional. A map from a label key string to an extractor expression which is
      * used to extract data from a log entry field and assign as the label value.
@@ -2764,23 +3012,26 @@ public int getLabelExtractorsCount() {
      * number of active time series that are allowed in a project.
      * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public boolean containsLabelExtractors( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabelExtractors(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabelExtractors().getMap().containsKey(key); } - /** - * Use {@link #getLabelExtractorsMap()} instead. - */ + /** Use {@link #getLabelExtractorsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabelExtractors() { return getLabelExtractorsMap(); } /** + * + * *
      * Optional. A map from a label key string to an extractor expression which is
      * used to extract data from a log entry field and assign as the label value.
@@ -2798,13 +3049,17 @@ public java.util.Map getLabelExtractors() {
      * number of active time series that are allowed in a project.
      * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getLabelExtractorsMap() { return internalGetLabelExtractors().getMap(); } /** + * + * *
      * Optional. A map from a label key string to an extractor expression which is
      * used to extract data from a log entry field and assign as the label value.
@@ -2822,20 +3077,24 @@ public java.util.Map getLabelExtractorsMap()
      * number of active time series that are allowed in a project.
      * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelExtractorsOrDefault( + public /* nullable */ java.lang.String getLabelExtractorsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabelExtractors().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabelExtractors().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. A map from a label key string to an extractor expression which is
      * used to extract data from a log entry field and assign as the label value.
@@ -2853,26 +3112,30 @@ java.lang.String getLabelExtractorsOrDefault(
      * number of active time series that are allowed in a project.
      * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getLabelExtractorsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabelExtractors().getMap(); + public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabelExtractors().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabelExtractors() { bitField0_ = (bitField0_ & ~0x00000080); - internalGetMutableLabelExtractors().getMutableMap() - .clear(); + internalGetMutableLabelExtractors().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. A map from a label key string to an extractor expression which is
      * used to extract data from a log entry field and assign as the label value.
@@ -2890,25 +3153,26 @@ public Builder clearLabelExtractors() {
      * number of active time series that are allowed in a project.
      * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder removeLabelExtractors( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabelExtractors().getMutableMap() - .remove(key); + public Builder removeLabelExtractors(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabelExtractors().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabelExtractors() { + public java.util.Map getMutableLabelExtractors() { bitField0_ |= 0x00000080; return internalGetMutableLabelExtractors().getMutableMap(); } /** + * + * *
      * Optional. A map from a label key string to an extractor expression which is
      * used to extract data from a log entry field and assign as the label value.
@@ -2926,19 +3190,24 @@ public Builder removeLabelExtractors(
      * number of active time series that are allowed in a project.
      * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putLabelExtractors( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabelExtractors().getMutableMap() - .put(key, value); + public Builder putLabelExtractors(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabelExtractors().getMutableMap().put(key, value); bitField0_ |= 0x00000080; return this; } /** + * + * *
      * Optional. A map from a label key string to an extractor expression which is
      * used to extract data from a log entry field and assign as the label value.
@@ -2956,57 +3225,76 @@ public Builder putLabelExtractors(
      * number of active time series that are allowed in a project.
      * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllLabelExtractors( - java.util.Map values) { - internalGetMutableLabelExtractors().getMutableMap() - .putAll(values); + public Builder putAllLabelExtractors(java.util.Map values) { + internalGetMutableLabelExtractors().getMutableMap().putAll(values); bitField0_ |= 0x00000080; return this; } private com.google.api.Distribution.BucketOptions bucketOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution.BucketOptions, com.google.api.Distribution.BucketOptions.Builder, com.google.api.Distribution.BucketOptionsOrBuilder> bucketOptionsBuilder_; + com.google.api.Distribution.BucketOptions, + com.google.api.Distribution.BucketOptions.Builder, + com.google.api.Distribution.BucketOptionsOrBuilder> + bucketOptionsBuilder_; /** + * + * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bucketOptions field is set. */ public boolean hasBucketOptions() { return ((bitField0_ & 0x00000100) != 0); } /** + * + * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bucketOptions. */ public com.google.api.Distribution.BucketOptions getBucketOptions() { if (bucketOptionsBuilder_ == null) { - return bucketOptions_ == null ? com.google.api.Distribution.BucketOptions.getDefaultInstance() : bucketOptions_; + return bucketOptions_ == null + ? com.google.api.Distribution.BucketOptions.getDefaultInstance() + : bucketOptions_; } else { return bucketOptionsBuilder_.getMessage(); } } /** + * + * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBucketOptions(com.google.api.Distribution.BucketOptions value) { if (bucketOptionsBuilder_ == null) { @@ -3022,13 +3310,17 @@ public Builder setBucketOptions(com.google.api.Distribution.BucketOptions value) return this; } /** + * + * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBucketOptions( com.google.api.Distribution.BucketOptions.Builder builderForValue) { @@ -3042,19 +3334,23 @@ public Builder setBucketOptions( return this; } /** + * + * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeBucketOptions(com.google.api.Distribution.BucketOptions value) { if (bucketOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) && - bucketOptions_ != null && - bucketOptions_ != com.google.api.Distribution.BucketOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000100) != 0) + && bucketOptions_ != null + && bucketOptions_ != com.google.api.Distribution.BucketOptions.getDefaultInstance()) { getBucketOptionsBuilder().mergeFrom(value); } else { bucketOptions_ = value; @@ -3069,13 +3365,17 @@ public Builder mergeBucketOptions(com.google.api.Distribution.BucketOptions valu return this; } /** + * + * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBucketOptions() { bitField0_ = (bitField0_ & ~0x00000100); @@ -3088,13 +3388,17 @@ public Builder clearBucketOptions() { return this; } /** + * + * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.api.Distribution.BucketOptions.Builder getBucketOptionsBuilder() { bitField0_ |= 0x00000100; @@ -3102,40 +3406,52 @@ public com.google.api.Distribution.BucketOptions.Builder getBucketOptionsBuilder return getBucketOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder() { if (bucketOptionsBuilder_ != null) { return bucketOptionsBuilder_.getMessageOrBuilder(); } else { - return bucketOptions_ == null ? - com.google.api.Distribution.BucketOptions.getDefaultInstance() : bucketOptions_; + return bucketOptions_ == null + ? com.google.api.Distribution.BucketOptions.getDefaultInstance() + : bucketOptions_; } } /** + * + * *
      * Optional. The `bucket_options` are required when the logs-based metric is
      * using a DISTRIBUTION value type and it describes the bucket boundaries
      * used to create a histogram of the extracted values.
      * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution.BucketOptions, com.google.api.Distribution.BucketOptions.Builder, com.google.api.Distribution.BucketOptionsOrBuilder> + com.google.api.Distribution.BucketOptions, + com.google.api.Distribution.BucketOptions.Builder, + com.google.api.Distribution.BucketOptionsOrBuilder> getBucketOptionsFieldBuilder() { if (bucketOptionsBuilder_ == null) { - bucketOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.Distribution.BucketOptions, com.google.api.Distribution.BucketOptions.Builder, com.google.api.Distribution.BucketOptionsOrBuilder>( - getBucketOptions(), - getParentForChildren(), - isClean()); + bucketOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.Distribution.BucketOptions, + com.google.api.Distribution.BucketOptions.Builder, + com.google.api.Distribution.BucketOptionsOrBuilder>( + getBucketOptions(), getParentForChildren(), isClean()); bucketOptions_ = null; } return bucketOptionsBuilder_; @@ -3143,45 +3459,64 @@ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuil private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000200) != 0); } /** + * + * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3197,16 +3532,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3217,19 +3555,23 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3244,13 +3586,17 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000200); @@ -3263,13 +3609,17 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000200; @@ -3277,40 +3627,52 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The creation timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3318,45 +3680,64 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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 last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.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 last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3372,16 +3753,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.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 { @@ -3392,19 +3776,23 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.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; @@ -3419,13 +3807,17 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3438,13 +3830,17 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000400; @@ -3452,40 +3848,52 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.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 last update timestamp of the metric.
      *
      * This field may not be present for older metrics.
      * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 10 [(.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_; @@ -3493,66 +3901,84 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private int version_ = 0; /** + * + * *
      * Deprecated. The API version that created or updated this metric.
      * The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * @deprecated google.logging.v2.LogMetric.version is deprecated. - * See google/logging/v2/logging_metrics.proto;l=237 + * + * @deprecated google.logging.v2.LogMetric.version is deprecated. See + * google/logging/v2/logging_metrics.proto;l=237 * @return The enum numeric value on the wire for version. */ - @java.lang.Override @java.lang.Deprecated public int getVersionValue() { + @java.lang.Override + @java.lang.Deprecated + public int getVersionValue() { return version_; } /** + * + * *
      * Deprecated. The API version that created or updated this metric.
      * The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * @deprecated google.logging.v2.LogMetric.version is deprecated. - * See google/logging/v2/logging_metrics.proto;l=237 + * + * @deprecated google.logging.v2.LogMetric.version is deprecated. See + * google/logging/v2/logging_metrics.proto;l=237 * @param value The enum numeric value on the wire for version to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setVersionValue(int value) { + @java.lang.Deprecated + public Builder setVersionValue(int value) { version_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Deprecated. The API version that created or updated this metric.
      * The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * @deprecated google.logging.v2.LogMetric.version is deprecated. - * See google/logging/v2/logging_metrics.proto;l=237 + * + * @deprecated google.logging.v2.LogMetric.version is deprecated. See + * google/logging/v2/logging_metrics.proto;l=237 * @return The version. */ @java.lang.Override - @java.lang.Deprecated public com.google.logging.v2.LogMetric.ApiVersion getVersion() { - com.google.logging.v2.LogMetric.ApiVersion result = com.google.logging.v2.LogMetric.ApiVersion.forNumber(version_); + @java.lang.Deprecated + public com.google.logging.v2.LogMetric.ApiVersion getVersion() { + com.google.logging.v2.LogMetric.ApiVersion result = + com.google.logging.v2.LogMetric.ApiVersion.forNumber(version_); return result == null ? com.google.logging.v2.LogMetric.ApiVersion.UNRECOGNIZED : result; } /** + * + * *
      * Deprecated. The API version that created or updated this metric.
      * The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * @deprecated google.logging.v2.LogMetric.version is deprecated. - * See google/logging/v2/logging_metrics.proto;l=237 + * + * @deprecated google.logging.v2.LogMetric.version is deprecated. See + * google/logging/v2/logging_metrics.proto;l=237 * @param value The version to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setVersion(com.google.logging.v2.LogMetric.ApiVersion value) { + @java.lang.Deprecated + public Builder setVersion(com.google.logging.v2.LogMetric.ApiVersion value) { if (value == null) { throw new NullPointerException(); } @@ -3562,25 +3988,29 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return this; } /** + * + * *
      * Deprecated. The API version that created or updated this metric.
      * The v2 format is used by default and cannot be changed.
      * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * @deprecated google.logging.v2.LogMetric.version is deprecated. - * See google/logging/v2/logging_metrics.proto;l=237 + * + * @deprecated google.logging.v2.LogMetric.version is deprecated. See + * google/logging/v2/logging_metrics.proto;l=237 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearVersion() { + @java.lang.Deprecated + public Builder clearVersion() { bitField0_ = (bitField0_ & ~0x00000800); version_ = 0; 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); } @@ -3590,12 +4020,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.LogMetric) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogMetric) private static final com.google.logging.v2.LogMetric DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.LogMetric(); } @@ -3604,27 +4034,27 @@ public static com.google.logging.v2.LogMetric getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogMetric parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogMetric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3639,6 +4069,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogMetric getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java similarity index 85% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java index e88120cf6..3d759c540 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.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/logging/v2/logging_metrics.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogMetricOrBuilder extends +public interface LogMetricOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogMetric) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
@@ -26,10 +44,13 @@ public interface LogMetricOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
@@ -47,34 +68,41 @@ public interface LogMetricOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A description of this metric, which is used in documentation.
    * The maximum length of the description is 8000 characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. A description of this metric, which is used in documentation.
    * The maximum length of the description is 8000 characters.
    * 
* * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -86,10 +114,13 @@ public interface LogMetricOrBuilder extends
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -101,12 +132,14 @@ public interface LogMetricOrBuilder extends
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. The resource name of the Log Bucket that owns the Log Metric.
    * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -120,10 +153,13 @@ public interface LogMetricOrBuilder extends
    * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bucketName. */ java.lang.String getBucketName(); /** + * + * *
    * Optional. The resource name of the Log Bucket that owns the Log Metric.
    * Only Log Buckets in projects are supported. The bucket has to be in the
@@ -137,23 +173,28 @@ public interface LogMetricOrBuilder extends
    * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for bucketName. */ - com.google.protobuf.ByteString - getBucketNameBytes(); + com.google.protobuf.ByteString getBucketNameBytes(); /** + * + * *
    * Optional. If set to True, then this metric is disabled and it does not
    * generate any points.
    * 
* * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disabled. */ boolean getDisabled(); /** + * + * *
    * Optional. The metric descriptor associated with the logs-based metric.
    * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -178,11 +219,16 @@ public interface LogMetricOrBuilder extends
    * their description.
    * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the metricDescriptor field is set. */ boolean hasMetricDescriptor(); /** + * + * *
    * Optional. The metric descriptor associated with the logs-based metric.
    * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -207,11 +253,16 @@ public interface LogMetricOrBuilder extends
    * their description.
    * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The metricDescriptor. */ com.google.api.MetricDescriptor getMetricDescriptor(); /** + * + * *
    * Optional. The metric descriptor associated with the logs-based metric.
    * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -236,11 +287,15 @@ public interface LogMetricOrBuilder extends
    * their description.
    * 
* - * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.MetricDescriptor metric_descriptor = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder(); /** + * + * *
    * Optional. A `value_extractor` is required when using a distribution
    * logs-based metric to extract the values to record from a log entry.
@@ -265,10 +320,13 @@ public interface LogMetricOrBuilder extends
    * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The valueExtractor. */ java.lang.String getValueExtractor(); /** + * + * *
    * Optional. A `value_extractor` is required when using a distribution
    * logs-based metric to extract the values to record from a log entry.
@@ -293,12 +351,14 @@ public interface LogMetricOrBuilder extends
    * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for valueExtractor. */ - com.google.protobuf.ByteString - getValueExtractorBytes(); + com.google.protobuf.ByteString getValueExtractorBytes(); /** + * + * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -316,10 +376,13 @@ public interface LogMetricOrBuilder extends
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getLabelExtractorsCount(); /** + * + * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -337,17 +400,16 @@ public interface LogMetricOrBuilder extends
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabelExtractors( - java.lang.String key); - /** - * Use {@link #getLabelExtractorsMap()} instead. + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsLabelExtractors(java.lang.String key); + /** Use {@link #getLabelExtractorsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabelExtractors(); + java.util.Map getLabelExtractors(); /** + * + * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -365,11 +427,13 @@ boolean containsLabelExtractors(
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.Map - getLabelExtractorsMap(); + java.util.Map getLabelExtractorsMap(); /** + * + * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -387,14 +451,17 @@ boolean containsLabelExtractors(
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ -java.lang.String getLabelExtractorsOrDefault( + java.lang.String getLabelExtractorsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -412,132 +479,176 @@ java.lang.String getLabelExtractorsOrDefault(
    * number of active time series that are allowed in a project.
    * 
* - * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> label_extractors = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.lang.String getLabelExtractorsOrThrow( - java.lang.String key); + java.lang.String getLabelExtractorsOrThrow(java.lang.String key); /** + * + * *
    * Optional. The `bucket_options` are required when the logs-based metric is
    * using a DISTRIBUTION value type and it describes the bucket boundaries
    * used to create a histogram of the extracted values.
    * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bucketOptions field is set. */ boolean hasBucketOptions(); /** + * + * *
    * Optional. The `bucket_options` are required when the logs-based metric is
    * using a DISTRIBUTION value type and it describes the bucket boundaries
    * used to create a histogram of the extracted values.
    * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bucketOptions. */ com.google.api.Distribution.BucketOptions getBucketOptions(); /** + * + * *
    * Optional. The `bucket_options` are required when the logs-based metric is
    * using a DISTRIBUTION value type and it describes the bucket boundaries
    * used to create a histogram of the extracted values.
    * 
* - * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.api.Distribution.BucketOptions bucket_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuilder(); /** + * + * *
    * Output only. The creation timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The creation timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The creation timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The last update timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The last update timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The last update timestamp of the metric.
    *
    * This field may not be present for older metrics.
    * 
* - * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Deprecated. The API version that created or updated this metric.
    * The v2 format is used by default and cannot be changed.
    * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * @deprecated google.logging.v2.LogMetric.version is deprecated. - * See google/logging/v2/logging_metrics.proto;l=237 + * + * @deprecated google.logging.v2.LogMetric.version is deprecated. See + * google/logging/v2/logging_metrics.proto;l=237 * @return The enum numeric value on the wire for version. */ - @java.lang.Deprecated int getVersionValue(); + @java.lang.Deprecated + int getVersionValue(); /** + * + * *
    * Deprecated. The API version that created or updated this metric.
    * The v2 format is used by default and cannot be changed.
    * 
* * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; - * @deprecated google.logging.v2.LogMetric.version is deprecated. - * See google/logging/v2/logging_metrics.proto;l=237 + * + * @deprecated google.logging.v2.LogMetric.version is deprecated. See + * google/logging/v2/logging_metrics.proto;l=237 * @return The version. */ - @java.lang.Deprecated com.google.logging.v2.LogMetric.ApiVersion getVersion(); + @java.lang.Deprecated + com.google.logging.v2.LogMetric.ApiVersion getVersion(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java index 5b86b5c46..7cb102551 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.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/logging/v2/logging_config.proto @@ -5,6 +20,8 @@ package com.google.logging.v2; /** + * + * *
  * Describes a sink used to export log entries to one of the following
  * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.logging.v2.LogSink}
  */
-public final class LogSink extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LogSink extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.LogSink)
     LogSinkOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LogSink.newBuilder() to construct.
   private LogSink(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LogSink() {
     name_ = "";
     destination_ = "";
@@ -36,34 +54,37 @@ private LogSink() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogSink();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogSink_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_LogSink_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogSink_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_LogSink_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.logging.v2.LogSink.class, com.google.logging.v2.LogSink.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Deprecated. This is unused.
    * 
* * Protobuf enum {@code google.logging.v2.LogSink.VersionFormat} */ - public enum VersionFormat - implements com.google.protobuf.ProtocolMessageEnum { + public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * An unspecified format version that will default to V2.
      * 
@@ -72,6 +93,8 @@ public enum VersionFormat */ VERSION_FORMAT_UNSPECIFIED(0), /** + * + * *
      * `LogEntry` version 2 format.
      * 
@@ -80,6 +103,8 @@ public enum VersionFormat */ V2(1), /** + * + * *
      * `LogEntry` version 1 format.
      * 
@@ -91,6 +116,8 @@ public enum VersionFormat ; /** + * + * *
      * An unspecified format version that will default to V2.
      * 
@@ -99,6 +126,8 @@ public enum VersionFormat */ public static final int VERSION_FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * `LogEntry` version 2 format.
      * 
@@ -107,6 +136,8 @@ public enum VersionFormat */ public static final int V2_VALUE = 1; /** + * + * *
      * `LogEntry` version 1 format.
      * 
@@ -115,7 +146,6 @@ public enum VersionFormat */ public static final int V1_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -140,49 +170,49 @@ public static VersionFormat valueOf(int value) { */ public static VersionFormat forNumber(int value) { switch (value) { - case 0: return VERSION_FORMAT_UNSPECIFIED; - case 1: return V2; - case 2: return V1; - default: return null; + case 0: + return VERSION_FORMAT_UNSPECIFIED; + case 1: + return V2; + case 2: + return V1; + 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< - VersionFormat> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public VersionFormat findValueByNumber(int number) { - return VersionFormat.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 VersionFormat findValueByNumber(int number) { + return VersionFormat.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.logging.v2.LogSink.getDescriptor().getEnumTypes().get(0); } private static final VersionFormat[] VALUES = values(); - public static VersionFormat valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static VersionFormat 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; @@ -201,14 +231,18 @@ private VersionFormat(int value) { private int bitField0_; private int optionsCase_ = 0; + @SuppressWarnings("serial") private java.lang.Object options_; + public enum OptionsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BIGQUERY_OPTIONS(12), OPTIONS_NOT_SET(0); private final int value; + private OptionsCase(int value) { this.value = value; } @@ -224,26 +258,31 @@ public static OptionsCase valueOf(int value) { public static OptionsCase forNumber(int value) { switch (value) { - case 12: return BIGQUERY_OPTIONS; - case 0: return OPTIONS_NOT_SET; - default: return null; + case 12: + return BIGQUERY_OPTIONS; + case 0: + return OPTIONS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public OptionsCase - getOptionsCase() { - return OptionsCase.forNumber( - optionsCase_); + public OptionsCase getOptionsCase() { + return OptionsCase.forNumber(optionsCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The client-assigned sink identifier, unique within the project.
    *
@@ -254,6 +293,7 @@ public int getNumber() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -262,14 +302,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The client-assigned sink identifier, unique within the project.
    *
@@ -280,16 +321,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -298,9 +338,12 @@ public java.lang.String getName() { } public static final int DESTINATION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object destination_ = ""; /** + * + * *
    * Required. The export destination:
    *
@@ -315,7 +358,10 @@ public java.lang.String getName() {
    * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
    * 
* - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The destination. */ @java.lang.Override @@ -324,14 +370,15 @@ public java.lang.String getDestination() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destination_ = s; return s; } } /** + * + * *
    * Required. The export destination:
    *
@@ -346,17 +393,18 @@ public java.lang.String getDestination() {
    * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
    * 
* - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for destination. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationBytes() { + public com.google.protobuf.ByteString getDestinationBytes() { java.lang.Object ref = destination_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destination_ = b; return b; } else { @@ -365,9 +413,12 @@ public java.lang.String getDestination() { } public static final int FILTER_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -380,6 +431,7 @@ public java.lang.String getDestination() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -388,14 +440,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. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -408,16 +461,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 5 [(.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 { @@ -426,9 +478,12 @@ public java.lang.String getFilter() { } public static final int DESCRIPTION_FIELD_NUMBER = 18; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Optional. A description of this sink.
    *
@@ -436,6 +491,7 @@ public java.lang.String getFilter() {
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -444,14 +500,15 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Optional. A description of this sink.
    *
@@ -459,16 +516,15 @@ public java.lang.String getDescription() {
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -479,12 +535,15 @@ public java.lang.String getDescription() { public static final int DISABLED_FIELD_NUMBER = 19; private boolean disabled_ = false; /** + * + * *
    * Optional. If set to true, then this sink is disabled and it does not export
    * any log entries.
    * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disabled. */ @java.lang.Override @@ -493,9 +552,12 @@ public boolean getDisabled() { } public static final int EXCLUSIONS_FIELD_NUMBER = 16; + @SuppressWarnings("serial") private java.util.List exclusions_; /** + * + * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -504,13 +566,17 @@ public boolean getDisabled() {
    * it will not be exported.
    * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getExclusionsList() { return exclusions_; } /** + * + * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -519,14 +585,18 @@ public java.util.List getExclusionsList() {
    * it will not be exported.
    * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getExclusionsOrBuilderList() { return exclusions_; } /** + * + * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -535,13 +605,17 @@ public java.util.List getExclusionsList() {
    * it will not be exported.
    * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getExclusionsCount() { return exclusions_.size(); } /** + * + * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -550,13 +624,17 @@ public int getExclusionsCount() {
    * it will not be exported.
    * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.logging.v2.LogExclusion getExclusions(int index) { return exclusions_.get(index); } /** + * + * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -565,48 +643,65 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) {
    * it will not be exported.
    * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( - int index) { + public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int index) { return exclusions_.get(index); } public static final int OUTPUT_VERSION_FORMAT_FIELD_NUMBER = 6; private int outputVersionFormat_ = 0; /** + * + * *
    * Deprecated. This field is unused.
    * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. - * See google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See + * google/logging/v2/logging_config.proto;l=1000 * @return The enum numeric value on the wire for outputVersionFormat. */ - @java.lang.Override @java.lang.Deprecated public int getOutputVersionFormatValue() { + @java.lang.Override + @java.lang.Deprecated + public int getOutputVersionFormatValue() { return outputVersionFormat_; } /** + * + * *
    * Deprecated. This field is unused.
    * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. - * See google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See + * google/logging/v2/logging_config.proto;l=1000 * @return The outputVersionFormat. */ - @java.lang.Override @java.lang.Deprecated public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { - com.google.logging.v2.LogSink.VersionFormat result = com.google.logging.v2.LogSink.VersionFormat.forNumber(outputVersionFormat_); + @java.lang.Override + @java.lang.Deprecated + public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { + com.google.logging.v2.LogSink.VersionFormat result = + com.google.logging.v2.LogSink.VersionFormat.forNumber(outputVersionFormat_); return result == null ? com.google.logging.v2.LogSink.VersionFormat.UNRECOGNIZED : result; } public static final int WRITER_IDENTITY_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object writerIdentity_ = ""; /** + * + * *
    * Output only. An IAM identity&mdash;a service account or group&mdash;under
    * which Cloud Logging writes the exported log entries to the sink's
@@ -629,6 +724,7 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The writerIdentity. */ @java.lang.Override @@ -637,14 +733,15 @@ public java.lang.String getWriterIdentity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writerIdentity_ = s; return s; } } /** + * + * *
    * Output only. An IAM identity&mdash;a service account or group&mdash;under
    * which Cloud Logging writes the exported log entries to the sink's
@@ -667,16 +764,15 @@ public java.lang.String getWriterIdentity() {
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for writerIdentity. */ @java.lang.Override - public com.google.protobuf.ByteString - getWriterIdentityBytes() { + public com.google.protobuf.ByteString getWriterIdentityBytes() { java.lang.Object ref = writerIdentity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writerIdentity_ = b; return b; } else { @@ -687,6 +783,8 @@ public java.lang.String getWriterIdentity() { public static final int INCLUDE_CHILDREN_FIELD_NUMBER = 9; private boolean includeChildren_ = false; /** + * + * *
    * Optional. This field applies only to sinks owned by organizations and
    * folders. If the field is false, the default, only the logs owned by the
@@ -708,6 +806,7 @@ public java.lang.String getWriterIdentity() {
    * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The includeChildren. */ @java.lang.Override @@ -717,11 +816,16 @@ public boolean getIncludeChildren() { public static final int BIGQUERY_OPTIONS_FIELD_NUMBER = 12; /** + * + * *
    * Optional. Options that affect sinks exporting data to BigQuery.
    * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bigqueryOptions field is set. */ @java.lang.Override @@ -729,31 +833,40 @@ public boolean hasBigqueryOptions() { return optionsCase_ == 12; } /** + * + * *
    * Optional. Options that affect sinks exporting data to BigQuery.
    * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bigqueryOptions. */ @java.lang.Override public com.google.logging.v2.BigQueryOptions getBigqueryOptions() { if (optionsCase_ == 12) { - return (com.google.logging.v2.BigQueryOptions) options_; + return (com.google.logging.v2.BigQueryOptions) options_; } return com.google.logging.v2.BigQueryOptions.getDefaultInstance(); } /** + * + * *
    * Optional. Options that affect sinks exporting data to BigQuery.
    * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilder() { if (optionsCase_ == 12) { - return (com.google.logging.v2.BigQueryOptions) options_; + return (com.google.logging.v2.BigQueryOptions) options_; } return com.google.logging.v2.BigQueryOptions.getDefaultInstance(); } @@ -761,13 +874,17 @@ public com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilde public static final int CREATE_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The creation timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -775,13 +892,17 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Output only. The creation timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -789,13 +910,16 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The creation timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -805,13 +929,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 14; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The last update timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -819,13 +947,17 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Output only. The last update timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -833,13 +965,16 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The last update timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -847,6 +982,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -858,8 +994,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_); } @@ -869,7 +1004,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); } - if (outputVersionFormat_ != com.google.logging.v2.LogSink.VersionFormat.VERSION_FORMAT_UNSPECIFIED.getNumber()) { + if (outputVersionFormat_ + != com.google.logging.v2.LogSink.VersionFormat.VERSION_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(6, outputVersionFormat_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writerIdentity_)) { @@ -914,39 +1050,35 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } - if (outputVersionFormat_ != com.google.logging.v2.LogSink.VersionFormat.VERSION_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, outputVersionFormat_); + if (outputVersionFormat_ + != com.google.logging.v2.LogSink.VersionFormat.VERSION_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, outputVersionFormat_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writerIdentity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, writerIdentity_); } if (includeChildren_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, includeChildren_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, includeChildren_); } if (optionsCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.logging.v2.BigQueryOptions) options_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.logging.v2.BigQueryOptions) options_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getUpdateTime()); } for (int i = 0; i < exclusions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, exclusions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, exclusions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, description_); } if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(19, disabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, disabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -956,45 +1088,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LogSink)) { return super.equals(obj); } com.google.logging.v2.LogSink other = (com.google.logging.v2.LogSink) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDestination() - .equals(other.getDestination())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (getDisabled() - != other.getDisabled()) return false; - if (!getExclusionsList() - .equals(other.getExclusionsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDestination().equals(other.getDestination())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getDisabled() != other.getDisabled()) return false; + if (!getExclusionsList().equals(other.getExclusionsList())) return false; if (outputVersionFormat_ != other.outputVersionFormat_) return false; - if (!getWriterIdentity() - .equals(other.getWriterIdentity())) return false; - if (getIncludeChildren() - != other.getIncludeChildren()) return false; + if (!getWriterIdentity().equals(other.getWriterIdentity())) return false; + if (getIncludeChildren() != other.getIncludeChildren()) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) 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 (!getOptionsCase().equals(other.getOptionsCase())) return false; switch (optionsCase_) { case 12: - if (!getBigqueryOptions() - .equals(other.getBigqueryOptions())) return false; + if (!getBigqueryOptions().equals(other.getBigqueryOptions())) return false; break; case 0: default: @@ -1019,8 +1140,7 @@ public int hashCode() { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); if (getExclusionsCount() > 0) { hash = (37 * hash) + EXCLUSIONS_FIELD_NUMBER; hash = (53 * hash) + getExclusionsList().hashCode(); @@ -1030,8 +1150,7 @@ public int hashCode() { hash = (37 * hash) + WRITER_IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getWriterIdentity().hashCode(); hash = (37 * hash) + INCLUDE_CHILDREN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIncludeChildren()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeChildren()); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -1053,99 +1172,103 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LogSink parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.LogSink parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogSink parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogSink parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.LogSink parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogSink parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogSink parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogSink parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogSink 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.logging.v2.LogSink parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.LogSink parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LogSink parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.LogSink parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.logging.v2.LogSink parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.LogSink parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.LogSink prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes a sink used to export log entries to one of the following
    * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a
@@ -1156,19 +1279,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.LogSink}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.LogSink)
       com.google.logging.v2.LogSinkOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogSink_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_LogSink_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogSink_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_LogSink_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.logging.v2.LogSink.class, com.google.logging.v2.LogSink.Builder.class);
     }
@@ -1178,19 +1302,19 @@ 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) {
         getExclusionsFieldBuilder();
         getCreateTimeFieldBuilder();
         getUpdateTimeFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1229,9 +1353,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogSink_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_LogSink_descriptor;
     }
 
     @java.lang.Override
@@ -1252,7 +1376,9 @@ public com.google.logging.v2.LogSink build() {
     public com.google.logging.v2.LogSink buildPartial() {
       com.google.logging.v2.LogSink result = new com.google.logging.v2.LogSink(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -1298,15 +1424,11 @@ private void buildPartial0(com.google.logging.v2.LogSink result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -1315,8 +1437,7 @@ private void buildPartial0(com.google.logging.v2.LogSink result) {
     private void buildPartialOneofs(com.google.logging.v2.LogSink result) {
       result.optionsCase_ = optionsCase_;
       result.options_ = this.options_;
-      if (optionsCase_ == 12 &&
-          bigqueryOptionsBuilder_ != null) {
+      if (optionsCase_ == 12 && bigqueryOptionsBuilder_ != null) {
         result.options_ = bigqueryOptionsBuilder_.build();
       }
     }
@@ -1325,38 +1446,39 @@ private void buildPartialOneofs(com.google.logging.v2.LogSink 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.logging.v2.LogSink) {
-        return mergeFrom((com.google.logging.v2.LogSink)other);
+        return mergeFrom((com.google.logging.v2.LogSink) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1406,9 +1528,10 @@ public Builder mergeFrom(com.google.logging.v2.LogSink other) {
             exclusionsBuilder_ = null;
             exclusions_ = other.exclusions_;
             bitField0_ = (bitField0_ & ~0x00000020);
-            exclusionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getExclusionsFieldBuilder() : null;
+            exclusionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getExclusionsFieldBuilder()
+                    : null;
           } else {
             exclusionsBuilder_.addAllMessages(other.exclusions_);
           }
@@ -1432,13 +1555,15 @@ public Builder mergeFrom(com.google.logging.v2.LogSink other) {
         mergeUpdateTime(other.getUpdateTime());
       }
       switch (other.getOptionsCase()) {
-        case BIGQUERY_OPTIONS: {
-          mergeBigqueryOptions(other.getBigqueryOptions());
-          break;
-        }
-        case OPTIONS_NOT_SET: {
-          break;
-        }
+        case BIGQUERY_OPTIONS:
+          {
+            mergeBigqueryOptions(other.getBigqueryOptions());
+            break;
+          }
+        case OPTIONS_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1466,86 +1591,92 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 26: {
-              destination_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 26
-            case 42: {
-              filter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 42
-            case 48: {
-              outputVersionFormat_ = input.readEnum();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 48
-            case 66: {
-              writerIdentity_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 66
-            case 72: {
-              includeChildren_ = input.readBool();
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 72
-            case 98: {
-              input.readMessage(
-                  getBigqueryOptionsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              optionsCase_ = 12;
-              break;
-            } // case 98
-            case 106: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 106
-            case 114: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000800;
-              break;
-            } // case 114
-            case 130: {
-              com.google.logging.v2.LogExclusion m =
-                  input.readMessage(
-                      com.google.logging.v2.LogExclusion.parser(),
-                      extensionRegistry);
-              if (exclusionsBuilder_ == null) {
-                ensureExclusionsIsMutable();
-                exclusions_.add(m);
-              } else {
-                exclusionsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 130
-            case 146: {
-              description_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 146
-            case 152: {
-              disabled_ = input.readBool();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 152
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 26:
+              {
+                destination_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 26
+            case 42:
+              {
+                filter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 42
+            case 48:
+              {
+                outputVersionFormat_ = input.readEnum();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 48
+            case 66:
+              {
+                writerIdentity_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 66
+            case 72:
+              {
+                includeChildren_ = input.readBool();
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 72
+            case 98:
+              {
+                input.readMessage(getBigqueryOptionsFieldBuilder().getBuilder(), extensionRegistry);
+                optionsCase_ = 12;
+                break;
+              } // case 98
+            case 106:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 106
+            case 114:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000800;
+                break;
+              } // case 114
+            case 130:
+              {
+                com.google.logging.v2.LogExclusion m =
+                    input.readMessage(
+                        com.google.logging.v2.LogExclusion.parser(), extensionRegistry);
+                if (exclusionsBuilder_ == null) {
+                  ensureExclusionsIsMutable();
+                  exclusions_.add(m);
+                } else {
+                  exclusionsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 130
+            case 146:
+              {
+                description_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 146
+            case 152:
+              {
+                disabled_ = input.readBool();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 152
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1555,12 +1686,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int optionsCase_ = 0;
     private java.lang.Object options_;
-    public OptionsCase
-        getOptionsCase() {
-      return OptionsCase.forNumber(
-          optionsCase_);
+
+    public OptionsCase getOptionsCase() {
+      return OptionsCase.forNumber(optionsCase_);
     }
 
     public Builder clearOptions() {
@@ -1574,6 +1705,8 @@ public Builder clearOptions() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1584,13 +1717,13 @@ public Builder clearOptions() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1599,6 +1732,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1609,15 +1744,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1625,6 +1759,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1635,18 +1771,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1657,6 +1797,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1666,6 +1807,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1676,12 +1819,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1691,6 +1836,8 @@ public Builder setNameBytes( private java.lang.Object destination_ = ""; /** + * + * *
      * Required. The export destination:
      *
@@ -1705,14 +1852,16 @@ public Builder setNameBytes(
      * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
      * 
* - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The destination. */ public java.lang.String getDestination() { java.lang.Object ref = destination_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destination_ = s; return s; @@ -1721,6 +1870,8 @@ public java.lang.String getDestination() { } } /** + * + * *
      * Required. The export destination:
      *
@@ -1735,16 +1886,17 @@ public java.lang.String getDestination() {
      * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
      * 
* - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for destination. */ - public com.google.protobuf.ByteString - getDestinationBytes() { + public com.google.protobuf.ByteString getDestinationBytes() { java.lang.Object ref = destination_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destination_ = b; return b; } else { @@ -1752,6 +1904,8 @@ public java.lang.String getDestination() { } } /** + * + * *
      * Required. The export destination:
      *
@@ -1766,19 +1920,25 @@ public java.lang.String getDestination() {
      * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
      * 
* - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The destination to set. * @return This builder for chaining. */ - public Builder setDestination( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestination(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } destination_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The export destination:
      *
@@ -1793,7 +1953,10 @@ public Builder setDestination(
      * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
      * 
* - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearDestination() { @@ -1803,6 +1966,8 @@ public Builder clearDestination() { return this; } /** + * + * *
      * Required. The export destination:
      *
@@ -1817,13 +1982,17 @@ public Builder clearDestination() {
      * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
      * 
* - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for destination to set. * @return This builder for chaining. */ - public Builder setDestinationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); destination_ = value; bitField0_ |= 0x00000002; @@ -1833,6 +2002,8 @@ public Builder setDestinationBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1845,13 +2016,13 @@ public Builder setDestinationBytes(
      * 
* * string filter = 5 [(.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; @@ -1860,6 +2031,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1872,15 +2045,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.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 { @@ -1888,6 +2060,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1900,18 +2074,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 5 [(.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_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1924,6 +2102,7 @@ public Builder setFilter(
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1933,6 +2112,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1945,12 +2126,14 @@ public Builder clearFilter() {
      * 
* * string filter = 5 [(.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_ |= 0x00000004; @@ -1960,6 +2143,8 @@ public Builder setFilterBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. A description of this sink.
      *
@@ -1967,13 +2152,13 @@ public Builder setFilterBytes(
      * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1982,6 +2167,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A description of this sink.
      *
@@ -1989,15 +2176,14 @@ public java.lang.String getDescription() {
      * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -2005,6 +2191,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A description of this sink.
      *
@@ -2012,18 +2200,22 @@ public java.lang.String getDescription() {
      * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A description of this sink.
      *
@@ -2031,6 +2223,7 @@ public Builder setDescription(
      * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2040,6 +2233,8 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Optional. A description of this sink.
      *
@@ -2047,12 +2242,14 @@ public Builder clearDescription() {
      * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000008; @@ -2060,14 +2257,17 @@ public Builder setDescriptionBytes( return this; } - private boolean disabled_ ; + private boolean disabled_; /** + * + * *
      * Optional. If set to true, then this sink is disabled and it does not export
      * any log entries.
      * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disabled. */ @java.lang.Override @@ -2075,12 +2275,15 @@ public boolean getDisabled() { return disabled_; } /** + * + * *
      * Optional. If set to true, then this sink is disabled and it does not export
      * any log entries.
      * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The disabled to set. * @return This builder for chaining. */ @@ -2092,12 +2295,15 @@ public Builder setDisabled(boolean value) { return this; } /** + * + * *
      * Optional. If set to true, then this sink is disabled and it does not export
      * any log entries.
      * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisabled() { @@ -2108,18 +2314,24 @@ public Builder clearDisabled() { } private java.util.List exclusions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureExclusionsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { exclusions_ = new java.util.ArrayList(exclusions_); bitField0_ |= 0x00000020; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> exclusionsBuilder_; + com.google.logging.v2.LogExclusion, + com.google.logging.v2.LogExclusion.Builder, + com.google.logging.v2.LogExclusionOrBuilder> + exclusionsBuilder_; /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2128,7 +2340,9 @@ private void ensureExclusionsIsMutable() {
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getExclusionsList() { if (exclusionsBuilder_ == null) { @@ -2138,6 +2352,8 @@ public java.util.List getExclusionsList() { } } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2146,7 +2362,9 @@ public java.util.List getExclusionsList() {
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getExclusionsCount() { if (exclusionsBuilder_ == null) { @@ -2156,6 +2374,8 @@ public int getExclusionsCount() { } } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2164,7 +2384,9 @@ public int getExclusionsCount() {
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.logging.v2.LogExclusion getExclusions(int index) { if (exclusionsBuilder_ == null) { @@ -2174,6 +2396,8 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { } } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2182,10 +2406,11 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) {
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setExclusions( - int index, com.google.logging.v2.LogExclusion value) { + public Builder setExclusions(int index, com.google.logging.v2.LogExclusion value) { if (exclusionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2199,6 +2424,8 @@ public Builder setExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2207,7 +2434,9 @@ public Builder setExclusions(
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setExclusions( int index, com.google.logging.v2.LogExclusion.Builder builderForValue) { @@ -2221,6 +2450,8 @@ public Builder setExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2229,7 +2460,9 @@ public Builder setExclusions(
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addExclusions(com.google.logging.v2.LogExclusion value) { if (exclusionsBuilder_ == null) { @@ -2245,6 +2478,8 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion value) { return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2253,10 +2488,11 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion value) {
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addExclusions( - int index, com.google.logging.v2.LogExclusion value) { + public Builder addExclusions(int index, com.google.logging.v2.LogExclusion value) { if (exclusionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2270,6 +2506,8 @@ public Builder addExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2278,10 +2516,11 @@ public Builder addExclusions(
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addExclusions( - com.google.logging.v2.LogExclusion.Builder builderForValue) { + public Builder addExclusions(com.google.logging.v2.LogExclusion.Builder builderForValue) { if (exclusionsBuilder_ == null) { ensureExclusionsIsMutable(); exclusions_.add(builderForValue.build()); @@ -2292,6 +2531,8 @@ public Builder addExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2300,7 +2541,9 @@ public Builder addExclusions(
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addExclusions( int index, com.google.logging.v2.LogExclusion.Builder builderForValue) { @@ -2314,6 +2557,8 @@ public Builder addExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2322,14 +2567,15 @@ public Builder addExclusions(
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllExclusions( java.lang.Iterable values) { if (exclusionsBuilder_ == null) { ensureExclusionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exclusions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exclusions_); onChanged(); } else { exclusionsBuilder_.addAllMessages(values); @@ -2337,6 +2583,8 @@ public Builder addAllExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2345,7 +2593,9 @@ public Builder addAllExclusions(
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearExclusions() { if (exclusionsBuilder_ == null) { @@ -2358,6 +2608,8 @@ public Builder clearExclusions() { return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2366,7 +2618,9 @@ public Builder clearExclusions() {
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeExclusions(int index) { if (exclusionsBuilder_ == null) { @@ -2379,6 +2633,8 @@ public Builder removeExclusions(int index) { return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2387,13 +2643,16 @@ public Builder removeExclusions(int index) {
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.logging.v2.LogExclusion.Builder getExclusionsBuilder( - int index) { + public com.google.logging.v2.LogExclusion.Builder getExclusionsBuilder(int index) { return getExclusionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2402,16 +2661,20 @@ public com.google.logging.v2.LogExclusion.Builder getExclusionsBuilder(
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( - int index) { + public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int index) { if (exclusionsBuilder_ == null) { - return exclusions_.get(index); } else { + return exclusions_.get(index); + } else { return exclusionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2420,10 +2683,12 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getExclusionsOrBuilderList() { + public java.util.List + getExclusionsOrBuilderList() { if (exclusionsBuilder_ != null) { return exclusionsBuilder_.getMessageOrBuilderList(); } else { @@ -2431,6 +2696,8 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( } } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2439,13 +2706,17 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder() { - return getExclusionsFieldBuilder().addBuilder( - com.google.logging.v2.LogExclusion.getDefaultInstance()); + return getExclusionsFieldBuilder() + .addBuilder(com.google.logging.v2.LogExclusion.getDefaultInstance()); } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2454,14 +2725,17 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder() {
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder( - int index) { - return getExclusionsFieldBuilder().addBuilder( - index, com.google.logging.v2.LogExclusion.getDefaultInstance()); + public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder(int index) { + return getExclusionsFieldBuilder() + .addBuilder(index, com.google.logging.v2.LogExclusion.getDefaultInstance()); } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2470,22 +2744,26 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder(
      * it will not be exported.
      * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getExclusionsBuilderList() { + public java.util.List getExclusionsBuilderList() { return getExclusionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> + com.google.logging.v2.LogExclusion, + com.google.logging.v2.LogExclusion.Builder, + com.google.logging.v2.LogExclusionOrBuilder> getExclusionsFieldBuilder() { if (exclusionsBuilder_ == null) { - exclusionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder>( - exclusions_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); + exclusionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.LogExclusion, + com.google.logging.v2.LogExclusion.Builder, + com.google.logging.v2.LogExclusionOrBuilder>( + exclusions_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); exclusions_ = null; } return exclusionsBuilder_; @@ -2493,62 +2771,84 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder( private int outputVersionFormat_ = 0; /** + * + * *
      * Deprecated. This field is unused.
      * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. - * See google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See + * google/logging/v2/logging_config.proto;l=1000 * @return The enum numeric value on the wire for outputVersionFormat. */ - @java.lang.Override @java.lang.Deprecated public int getOutputVersionFormatValue() { + @java.lang.Override + @java.lang.Deprecated + public int getOutputVersionFormatValue() { return outputVersionFormat_; } /** + * + * *
      * Deprecated. This field is unused.
      * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. - * See google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See + * google/logging/v2/logging_config.proto;l=1000 * @param value The enum numeric value on the wire for outputVersionFormat to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setOutputVersionFormatValue(int value) { + @java.lang.Deprecated + public Builder setOutputVersionFormatValue(int value) { outputVersionFormat_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Deprecated. This field is unused.
      * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. - * See google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See + * google/logging/v2/logging_config.proto;l=1000 * @return The outputVersionFormat. */ @java.lang.Override - @java.lang.Deprecated public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { - com.google.logging.v2.LogSink.VersionFormat result = com.google.logging.v2.LogSink.VersionFormat.forNumber(outputVersionFormat_); + @java.lang.Deprecated + public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { + com.google.logging.v2.LogSink.VersionFormat result = + com.google.logging.v2.LogSink.VersionFormat.forNumber(outputVersionFormat_); return result == null ? com.google.logging.v2.LogSink.VersionFormat.UNRECOGNIZED : result; } /** + * + * *
      * Deprecated. This field is unused.
      * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. - * See google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See + * google/logging/v2/logging_config.proto;l=1000 * @param value The outputVersionFormat to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setOutputVersionFormat(com.google.logging.v2.LogSink.VersionFormat value) { + @java.lang.Deprecated + public Builder setOutputVersionFormat(com.google.logging.v2.LogSink.VersionFormat value) { if (value == null) { throw new NullPointerException(); } @@ -2558,16 +2858,21 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder( return this; } /** + * + * *
      * Deprecated. This field is unused.
      * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. - * See google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See + * google/logging/v2/logging_config.proto;l=1000 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearOutputVersionFormat() { + @java.lang.Deprecated + public Builder clearOutputVersionFormat() { bitField0_ = (bitField0_ & ~0x00000040); outputVersionFormat_ = 0; onChanged(); @@ -2576,6 +2881,8 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder( private java.lang.Object writerIdentity_ = ""; /** + * + * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
      * which Cloud Logging writes the exported log entries to the sink's
@@ -2598,13 +2905,13 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder(
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The writerIdentity. */ public java.lang.String getWriterIdentity() { java.lang.Object ref = writerIdentity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writerIdentity_ = s; return s; @@ -2613,6 +2920,8 @@ public java.lang.String getWriterIdentity() { } } /** + * + * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
      * which Cloud Logging writes the exported log entries to the sink's
@@ -2635,15 +2944,14 @@ public java.lang.String getWriterIdentity() {
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for writerIdentity. */ - public com.google.protobuf.ByteString - getWriterIdentityBytes() { + public com.google.protobuf.ByteString getWriterIdentityBytes() { java.lang.Object ref = writerIdentity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writerIdentity_ = b; return b; } else { @@ -2651,6 +2959,8 @@ public java.lang.String getWriterIdentity() { } } /** + * + * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
      * which Cloud Logging writes the exported log entries to the sink's
@@ -2673,18 +2983,22 @@ public java.lang.String getWriterIdentity() {
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The writerIdentity to set. * @return This builder for chaining. */ - public Builder setWriterIdentity( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriterIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } writerIdentity_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
      * which Cloud Logging writes the exported log entries to the sink's
@@ -2707,6 +3021,7 @@ public Builder setWriterIdentity(
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearWriterIdentity() { @@ -2716,6 +3031,8 @@ public Builder clearWriterIdentity() { return this; } /** + * + * *
      * Output only. An IAM identity&mdash;a service account or group&mdash;under
      * which Cloud Logging writes the exported log entries to the sink's
@@ -2738,12 +3055,14 @@ public Builder clearWriterIdentity() {
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for writerIdentity to set. * @return This builder for chaining. */ - public Builder setWriterIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriterIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); writerIdentity_ = value; bitField0_ |= 0x00000080; @@ -2751,8 +3070,10 @@ public Builder setWriterIdentityBytes( return this; } - private boolean includeChildren_ ; + private boolean includeChildren_; /** + * + * *
      * Optional. This field applies only to sinks owned by organizations and
      * folders. If the field is false, the default, only the logs owned by the
@@ -2774,6 +3095,7 @@ public Builder setWriterIdentityBytes(
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The includeChildren. */ @java.lang.Override @@ -2781,6 +3103,8 @@ public boolean getIncludeChildren() { return includeChildren_; } /** + * + * *
      * Optional. This field applies only to sinks owned by organizations and
      * folders. If the field is false, the default, only the logs owned by the
@@ -2802,6 +3126,7 @@ public boolean getIncludeChildren() {
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The includeChildren to set. * @return This builder for chaining. */ @@ -2813,6 +3138,8 @@ public Builder setIncludeChildren(boolean value) { return this; } /** + * + * *
      * Optional. This field applies only to sinks owned by organizations and
      * folders. If the field is false, the default, only the logs owned by the
@@ -2834,6 +3161,7 @@ public Builder setIncludeChildren(boolean value) {
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIncludeChildren() { @@ -2844,13 +3172,21 @@ public Builder clearIncludeChildren() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.BigQueryOptions, com.google.logging.v2.BigQueryOptions.Builder, com.google.logging.v2.BigQueryOptionsOrBuilder> bigqueryOptionsBuilder_; + com.google.logging.v2.BigQueryOptions, + com.google.logging.v2.BigQueryOptions.Builder, + com.google.logging.v2.BigQueryOptionsOrBuilder> + bigqueryOptionsBuilder_; /** + * + * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bigqueryOptions field is set. */ @java.lang.Override @@ -2858,11 +3194,16 @@ public boolean hasBigqueryOptions() { return optionsCase_ == 12; } /** + * + * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bigqueryOptions. */ @java.lang.Override @@ -2880,11 +3221,15 @@ public com.google.logging.v2.BigQueryOptions getBigqueryOptions() { } } /** + * + * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBigqueryOptions(com.google.logging.v2.BigQueryOptions value) { if (bigqueryOptionsBuilder_ == null) { @@ -2900,11 +3245,15 @@ public Builder setBigqueryOptions(com.google.logging.v2.BigQueryOptions value) { return this; } /** + * + * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBigqueryOptions( com.google.logging.v2.BigQueryOptions.Builder builderForValue) { @@ -2918,18 +3267,25 @@ public Builder setBigqueryOptions( return this; } /** + * + * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeBigqueryOptions(com.google.logging.v2.BigQueryOptions value) { if (bigqueryOptionsBuilder_ == null) { - if (optionsCase_ == 12 && - options_ != com.google.logging.v2.BigQueryOptions.getDefaultInstance()) { - options_ = com.google.logging.v2.BigQueryOptions.newBuilder((com.google.logging.v2.BigQueryOptions) options_) - .mergeFrom(value).buildPartial(); + if (optionsCase_ == 12 + && options_ != com.google.logging.v2.BigQueryOptions.getDefaultInstance()) { + options_ = + com.google.logging.v2.BigQueryOptions.newBuilder( + (com.google.logging.v2.BigQueryOptions) options_) + .mergeFrom(value) + .buildPartial(); } else { options_ = value; } @@ -2945,11 +3301,15 @@ public Builder mergeBigqueryOptions(com.google.logging.v2.BigQueryOptions value) return this; } /** + * + * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBigqueryOptions() { if (bigqueryOptionsBuilder_ == null) { @@ -2968,21 +3328,29 @@ public Builder clearBigqueryOptions() { return this; } /** + * + * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.logging.v2.BigQueryOptions.Builder getBigqueryOptionsBuilder() { return getBigqueryOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilder() { @@ -2996,21 +3364,30 @@ public com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilde } } /** + * + * *
      * Optional. Options that affect sinks exporting data to BigQuery.
      * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.BigQueryOptions, com.google.logging.v2.BigQueryOptions.Builder, com.google.logging.v2.BigQueryOptionsOrBuilder> + com.google.logging.v2.BigQueryOptions, + com.google.logging.v2.BigQueryOptions.Builder, + com.google.logging.v2.BigQueryOptionsOrBuilder> getBigqueryOptionsFieldBuilder() { if (bigqueryOptionsBuilder_ == null) { if (!(optionsCase_ == 12)) { options_ = com.google.logging.v2.BigQueryOptions.getDefaultInstance(); } - bigqueryOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.BigQueryOptions, com.google.logging.v2.BigQueryOptions.Builder, com.google.logging.v2.BigQueryOptionsOrBuilder>( + bigqueryOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.BigQueryOptions, + com.google.logging.v2.BigQueryOptions.Builder, + com.google.logging.v2.BigQueryOptionsOrBuilder>( (com.google.logging.v2.BigQueryOptions) options_, getParentForChildren(), isClean()); @@ -3023,45 +3400,64 @@ public com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilde private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000400) != 0); } /** + * + * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3077,16 +3473,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3097,19 +3496,23 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000400) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3124,13 +3527,17 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000400); @@ -3143,13 +3550,17 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000400; @@ -3157,40 +3568,52 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The creation timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3198,45 +3621,64 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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 last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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 last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3252,16 +3694,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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 { @@ -3272,19 +3717,23 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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; @@ -3299,13 +3748,17 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000800); @@ -3318,13 +3771,17 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000800; @@ -3332,47 +3789,59 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 14 [(.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 last update timestamp of the sink.
      *
      * This field may not be present for older sinks.
      * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp 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> 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); } @@ -3382,12 +3851,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.LogSink) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogSink) private static final com.google.logging.v2.LogSink DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.LogSink(); } @@ -3396,27 +3865,27 @@ public static com.google.logging.v2.LogSink getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogSink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogSink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3431,6 +3900,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogSink getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java similarity index 78% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java index 56602b597..8919ef602 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogSinkOrBuilder extends +public interface LogSinkOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogSink) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The client-assigned sink identifier, unique within the project.
    *
@@ -19,10 +37,13 @@ public interface LogSinkOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The client-assigned sink identifier, unique within the project.
    *
@@ -33,12 +54,14 @@ public interface LogSinkOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The export destination:
    *
@@ -53,11 +76,16 @@ public interface LogSinkOrBuilder extends
    * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
    * 
* - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The destination. */ java.lang.String getDestination(); /** + * + * *
    * Required. The export destination:
    *
@@ -72,13 +100,17 @@ public interface LogSinkOrBuilder extends
    * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
    * 
* - * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for destination. */ - com.google.protobuf.ByteString - getDestinationBytes(); + com.google.protobuf.ByteString getDestinationBytes(); /** + * + * *
    * Optional. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -91,10 +123,13 @@ public interface LogSinkOrBuilder extends
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -107,12 +142,14 @@ public interface LogSinkOrBuilder extends
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. A description of this sink.
    *
@@ -120,10 +157,13 @@ public interface LogSinkOrBuilder extends
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. A description of this sink.
    *
@@ -131,23 +171,28 @@ public interface LogSinkOrBuilder extends
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Optional. If set to true, then this sink is disabled and it does not export
    * any log entries.
    * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disabled. */ boolean getDisabled(); /** + * + * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -156,11 +201,14 @@ public interface LogSinkOrBuilder extends
    * it will not be exported.
    * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getExclusionsList(); + java.util.List getExclusionsList(); /** + * + * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -169,10 +217,14 @@ public interface LogSinkOrBuilder extends
    * it will not be exported.
    * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.logging.v2.LogExclusion getExclusions(int index); /** + * + * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -181,10 +233,14 @@ public interface LogSinkOrBuilder extends
    * it will not be exported.
    * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getExclusionsCount(); /** + * + * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -193,11 +249,15 @@ public interface LogSinkOrBuilder extends
    * it will not be exported.
    * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getExclusionsOrBuilderList(); /** + * + * *
    * Optional. Log entries that match any of these exclusion filters will not be
    * exported.
@@ -206,35 +266,48 @@ public interface LogSinkOrBuilder extends
    * it will not be exported.
    * 
* - * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.logging.v2.LogExclusion exclusions = 16 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( - int index); + com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int index); /** + * + * *
    * Deprecated. This field is unused.
    * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. - * See google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See + * google/logging/v2/logging_config.proto;l=1000 * @return The enum numeric value on the wire for outputVersionFormat. */ - @java.lang.Deprecated int getOutputVersionFormatValue(); + @java.lang.Deprecated + int getOutputVersionFormatValue(); /** + * + * *
    * Deprecated. This field is unused.
    * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. - * See google/logging/v2/logging_config.proto;l=1000 + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * + * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See + * google/logging/v2/logging_config.proto;l=1000 * @return The outputVersionFormat. */ - @java.lang.Deprecated com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat(); + @java.lang.Deprecated + com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat(); /** + * + * *
    * Output only. An IAM identity&mdash;a service account or group&mdash;under
    * which Cloud Logging writes the exported log entries to the sink's
@@ -257,10 +330,13 @@ com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The writerIdentity. */ java.lang.String getWriterIdentity(); /** + * + * *
    * Output only. An IAM identity&mdash;a service account or group&mdash;under
    * which Cloud Logging writes the exported log entries to the sink's
@@ -283,12 +359,14 @@ com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for writerIdentity. */ - com.google.protobuf.ByteString - getWriterIdentityBytes(); + com.google.protobuf.ByteString getWriterIdentityBytes(); /** + * + * *
    * Optional. This field applies only to sinks owned by organizations and
    * folders. If the field is false, the default, only the logs owned by the
@@ -310,100 +388,137 @@ com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(
    * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The includeChildren. */ boolean getIncludeChildren(); /** + * + * *
    * Optional. Options that affect sinks exporting data to BigQuery.
    * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bigqueryOptions field is set. */ boolean hasBigqueryOptions(); /** + * + * *
    * Optional. Options that affect sinks exporting data to BigQuery.
    * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bigqueryOptions. */ com.google.logging.v2.BigQueryOptions getBigqueryOptions(); /** + * + * *
    * Optional. Options that affect sinks exporting data to BigQuery.
    * 
* - * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.logging.v2.BigQueryOptions bigquery_options = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilder(); /** + * + * *
    * Output only. The creation timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The creation timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The creation timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The last update timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The last update timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The last update timestamp of the sink.
    *
    * This field may not be present for older sinks.
    * 
* - * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java index e39577bee..9a3e17838 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.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/logging/v2/log_entry.proto @@ -5,6 +20,8 @@ package com.google.logging.v2; /** + * + * *
  * Additional information used to correlate multiple log entries. Used when a
  * single LogEntry would exceed the Google Cloud Logging size limit and is
@@ -13,43 +30,47 @@
  *
  * Protobuf type {@code google.logging.v2.LogSplit}
  */
-public final class LogSplit extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LogSplit extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.LogSplit)
     LogSplitOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LogSplit.newBuilder() to construct.
   private LogSplit(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LogSplit() {
     uid_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogSplit();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogSplit_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.logging.v2.LogEntryProto
+        .internal_static_google_logging_v2_LogSplit_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogSplit_fieldAccessorTable
+    return com.google.logging.v2.LogEntryProto
+        .internal_static_google_logging_v2_LogSplit_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.logging.v2.LogSplit.class, com.google.logging.v2.LogSplit.Builder.class);
   }
 
   public static final int UID_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object uid_ = "";
   /**
+   *
+   *
    * 
    * A globally unique identifier for all log entries in a sequence of split log
    * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -57,6 +78,7 @@ protected java.lang.Object newInstance(
    * 
* * string uid = 1; + * * @return The uid. */ @java.lang.Override @@ -65,14 +87,15 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * A globally unique identifier for all log entries in a sequence of split log
    * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -80,16 +103,15 @@ public java.lang.String getUid() {
    * 
* * string uid = 1; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -100,6 +122,8 @@ public java.lang.String getUid() { public static final int INDEX_FIELD_NUMBER = 2; private int index_ = 0; /** + * + * *
    * The index of this LogEntry in the sequence of split log entries. Log
    * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
@@ -107,6 +131,7 @@ public java.lang.String getUid() {
    * 
* * int32 index = 2; + * * @return The index. */ @java.lang.Override @@ -117,11 +142,14 @@ public int getIndex() { public static final int TOTAL_SPLITS_FIELD_NUMBER = 3; private int totalSplits_ = 0; /** + * + * *
    * The total number of log entries that the original LogEntry was split into.
    * 
* * int32 total_splits = 3; + * * @return The totalSplits. */ @java.lang.Override @@ -130,6 +158,7 @@ public int getTotalSplits() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,8 +170,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(uid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uid_); } @@ -165,12 +193,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uid_); } if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, index_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, index_); } if (totalSplits_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, totalSplits_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSplits_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -180,19 +206,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LogSplit)) { return super.equals(obj); } com.google.logging.v2.LogSplit other = (com.google.logging.v2.LogSplit) obj; - if (!getUid() - .equals(other.getUid())) return false; - if (getIndex() - != other.getIndex()) return false; - if (getTotalSplits() - != other.getTotalSplits()) return false; + if (!getUid().equals(other.getUid())) return false; + if (getIndex() != other.getIndex()) return false; + if (getTotalSplits() != other.getTotalSplits()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -215,99 +238,103 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LogSplit parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.LogSplit parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogSplit parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogSplit parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.LogSplit parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogSplit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogSplit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogSplit parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogSplit 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.logging.v2.LogSplit parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.LogSplit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LogSplit parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.LogSplit parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.logging.v2.LogSplit parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.LogSplit parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.LogSplit prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Additional information used to correlate multiple log entries. Used when a
    * single LogEntry would exceed the Google Cloud Logging size limit and is
@@ -316,33 +343,31 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.LogSplit}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.LogSplit)
       com.google.logging.v2.LogSplitOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogSplit_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LogEntryProto
+          .internal_static_google_logging_v2_LogSplit_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogSplit_fieldAccessorTable
+      return com.google.logging.v2.LogEntryProto
+          .internal_static_google_logging_v2_LogSplit_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.logging.v2.LogSplit.class, com.google.logging.v2.LogSplit.Builder.class);
     }
 
     // Construct using com.google.logging.v2.LogSplit.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();
@@ -354,9 +379,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogSplit_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.logging.v2.LogEntryProto
+          .internal_static_google_logging_v2_LogSplit_descriptor;
     }
 
     @java.lang.Override
@@ -376,7 +401,9 @@ public com.google.logging.v2.LogSplit build() {
     @java.lang.Override
     public com.google.logging.v2.LogSplit buildPartial() {
       com.google.logging.v2.LogSplit result = new com.google.logging.v2.LogSplit(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -398,38 +425,39 @@ private void buildPartial0(com.google.logging.v2.LogSplit 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.logging.v2.LogSplit) {
-        return mergeFrom((com.google.logging.v2.LogSplit)other);
+        return mergeFrom((com.google.logging.v2.LogSplit) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -475,27 +503,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              uid_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              index_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              totalSplits_ = input.readInt32();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                uid_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                index_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                totalSplits_ = input.readInt32();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -505,10 +537,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object uid_ = "";
     /**
+     *
+     *
      * 
      * A globally unique identifier for all log entries in a sequence of split log
      * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -516,13 +551,13 @@ public Builder mergeFrom(
      * 
* * string uid = 1; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -531,6 +566,8 @@ public java.lang.String getUid() { } } /** + * + * *
      * A globally unique identifier for all log entries in a sequence of split log
      * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -538,15 +575,14 @@ public java.lang.String getUid() {
      * 
* * string uid = 1; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -554,6 +590,8 @@ public java.lang.String getUid() { } } /** + * + * *
      * A globally unique identifier for all log entries in a sequence of split log
      * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -561,18 +599,22 @@ public java.lang.String getUid() {
      * 
* * string uid = 1; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uid_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * A globally unique identifier for all log entries in a sequence of split log
      * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -580,6 +622,7 @@ public Builder setUid(
      * 
* * string uid = 1; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -589,6 +632,8 @@ public Builder clearUid() { return this; } /** + * + * *
      * A globally unique identifier for all log entries in a sequence of split log
      * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -596,12 +641,14 @@ public Builder clearUid() {
      * 
* * string uid = 1; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uid_ = value; bitField0_ |= 0x00000001; @@ -609,8 +656,10 @@ public Builder setUidBytes( return this; } - private int index_ ; + private int index_; /** + * + * *
      * The index of this LogEntry in the sequence of split log entries. Log
      * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
@@ -618,6 +667,7 @@ public Builder setUidBytes(
      * 
* * int32 index = 2; + * * @return The index. */ @java.lang.Override @@ -625,6 +675,8 @@ public int getIndex() { return index_; } /** + * + * *
      * The index of this LogEntry in the sequence of split log entries. Log
      * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
@@ -632,6 +684,7 @@ public int getIndex() {
      * 
* * int32 index = 2; + * * @param value The index to set. * @return This builder for chaining. */ @@ -643,6 +696,8 @@ public Builder setIndex(int value) { return this; } /** + * + * *
      * The index of this LogEntry in the sequence of split log entries. Log
      * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
@@ -650,6 +705,7 @@ public Builder setIndex(int value) {
      * 
* * int32 index = 2; + * * @return This builder for chaining. */ public Builder clearIndex() { @@ -659,13 +715,16 @@ public Builder clearIndex() { return this; } - private int totalSplits_ ; + private int totalSplits_; /** + * + * *
      * The total number of log entries that the original LogEntry was split into.
      * 
* * int32 total_splits = 3; + * * @return The totalSplits. */ @java.lang.Override @@ -673,11 +732,14 @@ public int getTotalSplits() { return totalSplits_; } /** + * + * *
      * The total number of log entries that the original LogEntry was split into.
      * 
* * int32 total_splits = 3; + * * @param value The totalSplits to set. * @return This builder for chaining. */ @@ -689,11 +751,14 @@ public Builder setTotalSplits(int value) { return this; } /** + * + * *
      * The total number of log entries that the original LogEntry was split into.
      * 
* * int32 total_splits = 3; + * * @return This builder for chaining. */ public Builder clearTotalSplits() { @@ -702,9 +767,9 @@ public Builder clearTotalSplits() { 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); } @@ -714,12 +779,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.LogSplit) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogSplit) private static final com.google.logging.v2.LogSplit DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.LogSplit(); } @@ -728,27 +793,27 @@ public static com.google.logging.v2.LogSplit getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogSplit parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogSplit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -763,6 +828,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogSplit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java similarity index 65% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java index 703fd5092..5408a5bd5 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.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/logging/v2/log_entry.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogSplitOrBuilder extends +public interface LogSplitOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogSplit) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A globally unique identifier for all log entries in a sequence of split log
    * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -16,10 +34,13 @@ public interface LogSplitOrBuilder extends
    * 
* * string uid = 1; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * A globally unique identifier for all log entries in a sequence of split log
    * entries. All log entries with the same |LogSplit.uid| are assumed to be
@@ -27,12 +48,14 @@ public interface LogSplitOrBuilder extends
    * 
* * string uid = 1; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * The index of this LogEntry in the sequence of split log entries. Log
    * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
@@ -40,16 +63,20 @@ public interface LogSplitOrBuilder extends
    * 
* * int32 index = 2; + * * @return The index. */ int getIndex(); /** + * + * *
    * The total number of log entries that the original LogEntry was split into.
    * 
* * int32 total_splits = 3; + * * @return The totalSplits. */ int getTotalSplits(); diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java similarity index 69% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java index 016546a6f..3def44abe 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.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/logging/v2/logging_config.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * Describes a view over log entries in a bucket.
  * 
* * Protobuf type {@code google.logging.v2.LogView} */ -public final class LogView extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LogView extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.LogView) LogViewOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LogView.newBuilder() to construct. private LogView(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LogView() { name_ = ""; description_ = ""; @@ -28,29 +46,32 @@ private LogView() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LogView(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogView_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LogView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogView_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LogView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.LogView.class, com.google.logging.v2.LogView.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the view.
    *
@@ -60,6 +81,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -68,14 +90,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the view.
    *
@@ -85,16 +108,15 @@ public java.lang.String getName() {
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -103,14 +125,18 @@ public java.lang.String getName() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Describes this view.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -119,29 +145,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; } } /** + * + * *
    * Describes this view.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -152,11 +178,15 @@ public java.lang.String getDescription() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The creation timestamp of the view.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -164,11 +194,15 @@ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Output only. The creation timestamp of the view.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -176,11 +210,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The creation timestamp of the view.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -190,11 +227,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The last update timestamp of the view.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -202,11 +243,15 @@ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Output only. The last update timestamp of the view.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -214,11 +259,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The last update timestamp of the view.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -226,9 +274,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int FILTER_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Filter that restricts which log entries in a bucket are visible in this
    * view.
@@ -247,6 +298,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string filter = 7; + * * @return The filter. */ @java.lang.Override @@ -255,14 +307,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; } } /** + * + * *
    * Filter that restricts which log entries in a bucket are visible in this
    * view.
@@ -281,16 +334,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 7; + * * @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 { @@ -299,6 +351,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,8 +363,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_); } @@ -343,12 +395,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filter_); @@ -361,29 +411,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.LogView)) { return super.equals(obj); } com.google.logging.v2.LogView other = (com.google.logging.v2.LogView) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) 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 (!getFilter() - .equals(other.getFilter())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -414,118 +459,123 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LogView parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.LogView parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogView parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogView parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.LogView parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogView parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogView parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogView parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogView 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.logging.v2.LogView parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.LogView parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.LogView parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.LogView parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.logging.v2.LogView parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.LogView parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.LogView prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes a view over log entries in a bucket.
    * 
* * Protobuf type {@code google.logging.v2.LogView} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.LogView) com.google.logging.v2.LogViewOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogView_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LogView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogView_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LogView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.LogView.class, com.google.logging.v2.LogView.Builder.class); } @@ -535,18 +585,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) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -568,9 +618,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogView_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LogView_descriptor; } @java.lang.Override @@ -590,7 +640,9 @@ public com.google.logging.v2.LogView build() { @java.lang.Override public com.google.logging.v2.LogView buildPartial() { com.google.logging.v2.LogView result = new com.google.logging.v2.LogView(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -605,15 +657,11 @@ private void buildPartial0(com.google.logging.v2.LogView result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.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; } if (((from_bitField0_ & 0x00000010) != 0)) { @@ -626,38 +674,39 @@ private void buildPartial0(com.google.logging.v2.LogView 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.logging.v2.LogView) { - return mergeFrom((com.google.logging.v2.LogView)other); + return mergeFrom((com.google.logging.v2.LogView) other); } else { super.mergeFrom(other); return this; @@ -713,41 +762,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 58: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 58: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -757,10 +808,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the view.
      *
@@ -770,13 +824,13 @@ public Builder mergeFrom(
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -785,6 +839,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the view.
      *
@@ -794,15 +850,14 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -810,6 +865,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the view.
      *
@@ -819,18 +876,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the view.
      *
@@ -840,6 +901,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -849,6 +911,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the view.
      *
@@ -858,12 +922,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -873,18 +939,20 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Describes this view.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -893,20 +961,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Describes this view.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -914,28 +983,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Describes this view.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Describes this view.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -945,17 +1021,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Describes this view.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000002; @@ -965,39 +1045,58 @@ public Builder setDescriptionBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The creation timestamp of the view.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The creation timestamp of the view.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The creation timestamp of the view.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1013,14 +1112,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation timestamp of the view.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1031,17 +1133,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The creation timestamp of the view.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1056,11 +1162,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation timestamp of the view.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1073,11 +1183,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The creation timestamp of the view.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1085,36 +1199,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The creation timestamp of the view.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The creation timestamp of the view.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1122,39 +1248,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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 last update timestamp of the view.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. The last update timestamp of the view.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.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 last update timestamp of the view.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1170,14 +1315,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update timestamp of the view.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.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 { @@ -1188,17 +1336,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The last update timestamp of the view.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.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; @@ -1213,11 +1365,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update timestamp of the view.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1230,11 +1386,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The last update timestamp of the view.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1242,36 +1402,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The last update timestamp of the view.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.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 last update timestamp of the view.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.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_; @@ -1279,6 +1451,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object filter_ = ""; /** + * + * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1297,13 +1471,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * string filter = 7; + * * @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; @@ -1312,6 +1486,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1330,15 +1506,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 7; + * * @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 { @@ -1346,6 +1521,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1364,18 +1541,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 7; + * * @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_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1394,6 +1575,7 @@ public Builder setFilter(
      * 
* * string filter = 7; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1403,6 +1585,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1421,21 +1605,23 @@ public Builder clearFilter() {
      * 
* * string filter = 7; + * * @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_ |= 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); } @@ -1445,12 +1631,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.LogView) } // @@protoc_insertion_point(class_scope:google.logging.v2.LogView) private static final com.google.logging.v2.LogView DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.LogView(); } @@ -1459,27 +1645,27 @@ public static com.google.logging.v2.LogView getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LogView parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogView parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1494,6 +1680,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogView getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java index 4b3823d97..c75df718f 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface LogViewOrBuilder extends +public interface LogViewOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.LogView) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the view.
    *
@@ -18,10 +36,13 @@ public interface LogViewOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the view.
    *
@@ -31,86 +52,115 @@ public interface LogViewOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Describes this view.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Describes this view.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. The creation timestamp of the view.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The creation timestamp of the view.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The creation timestamp of the view.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The last update timestamp of the view.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The last update timestamp of the view.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The last update timestamp of the view.
    * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Filter that restricts which log entries in a bucket are visible in this
    * view.
@@ -129,10 +179,13 @@ public interface LogViewOrBuilder extends
    * 
* * string filter = 7; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter that restricts which log entries in a bucket are visible in this
    * view.
@@ -151,8 +204,8 @@ public interface LogViewOrBuilder extends
    * 
* * string filter = 7; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java new file mode 100644 index 000000000..9266acc5a --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java @@ -0,0 +1,1250 @@ +/* + * 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/logging/v2/logging_config.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public final class LoggingConfigProto { + private LoggingConfigProto() {} + + 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_logging_v2_IndexConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_IndexConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LogBucket_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LogBucket_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LogView_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LogView_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LogSink_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LogSink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_BigQueryDataset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_Link_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_Link_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_BigQueryOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListBucketsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListBucketsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CreateBucketRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateBucketRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetBucketRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_DeleteBucketRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListViewsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListViewsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CreateViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_DeleteViewRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListSinksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListSinksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetSinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CreateSinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateSinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_DeleteSinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CreateLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_DeleteLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLinksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLinksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LogExclusion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LogExclusion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListExclusionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListExclusionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetExclusionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CreateExclusionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CmekSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CmekSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_Settings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_Settings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_BucketMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LinkMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LocationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n&google/logging/v2/logging_config.proto" + + "\022\021google.logging.v2\032\034google/api/annotati" + + "ons.proto\032\027google/api/client.proto\032\037goog" + + "le/api/field_behavior.proto\032\031google/api/" + + "resource.proto\032#google/longrunning/opera" + + "tions.proto\032\033google/protobuf/empty.proto" + + "\032 google/protobuf/field_mask.proto\032\037goog" + + "le/protobuf/timestamp.proto\"\215\001\n\013IndexCon" + + "fig\022\027\n\nfield_path\030\001 \001(\tB\003\340A\002\022/\n\004type\030\002 \001" + + "(\0162\034.google.logging.v2.IndexTypeB\003\340A\002\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\"\325\005\n\tLogBucket\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\003\022\023\n\013description\030\003 \001(\t\0224\n\013create_time" + + "\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\005 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022\026\n\016retention_days\030\013 \001(\005\022\016\n" + + "\006locked\030\t \001(\010\022?\n\017lifecycle_state\030\014 \001(\0162!" + + ".google.logging.v2.LifecycleStateB\003\340A\003\022\031" + + "\n\021analytics_enabled\030\016 \001(\010\022\031\n\021restricted_" + + "fields\030\017 \003(\t\0225\n\rindex_configs\030\021 \003(\0132\036.go" + + "ogle.logging.v2.IndexConfig\0226\n\rcmek_sett" + + "ings\030\023 \001(\0132\037.google.logging.v2.CmekSetti" + + "ngs:\245\002\352A\241\002\n logging.googleapis.com/LogBu" + + "cket\0228projects/{project}/locations/{loca" + + "tion}/buckets/{bucket}\022Borganizations/{o" + + "rganization}/locations/{location}/bucket" + + "s/{bucket}\0226folders/{folder}/locations/{" + + "location}/buckets/{bucket}\022GbillingAccou" + + "nts/{billing_account}/locations/{locatio" + + "n}/buckets/{bucket}\"\202\004\n\007LogView\022\014\n\004name\030" + + "\001 \001(\t\022\023\n\013description\030\003 \001(\t\0224\n\013create_tim" + + "e\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\005 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022\016\n\006filter\030\007 \001(\t:\327\002\352A\323\002\n\036l" + + "ogging.googleapis.com/LogView\022Eprojects/" + + "{project}/locations/{location}/buckets/{" + + "bucket}/views/{view}\022Oorganizations/{org" + + "anization}/locations/{location}/buckets/" + + "{bucket}/views/{view}\022Cfolders/{folder}/" + + "locations/{location}/buckets/{bucket}/vi" + + "ews/{view}\022TbillingAccounts/{billing_acc" + + "ount}/locations/{location}/buckets/{buck" + + "et}/views/{view}\"\205\006\n\007LogSink\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\002\022\036\n\013destination\030\003 \001(\tB\t\340A\002\372A\003\n\001*\022" + + "\023\n\006filter\030\005 \001(\tB\003\340A\001\022\030\n\013description\030\022 \001(" + + "\tB\003\340A\001\022\025\n\010disabled\030\023 \001(\010B\003\340A\001\0228\n\nexclusi" + + "ons\030\020 \003(\0132\037.google.logging.v2.LogExclusi" + + "onB\003\340A\001\022K\n\025output_version_format\030\006 \001(\0162(" + + ".google.logging.v2.LogSink.VersionFormat" + + "B\002\030\001\022\034\n\017writer_identity\030\010 \001(\tB\003\340A\003\022\035\n\020in" + + "clude_children\030\t \001(\010B\003\340A\001\022C\n\020bigquery_op" + + "tions\030\014 \001(\0132\".google.logging.v2.BigQuery" + + "OptionsB\003\340A\001H\000\0224\n\013create_time\030\r \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t" + + "ime\030\016 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\"?\n\rVersionFormat\022\036\n\032VERSION_FORMAT_UN" + + "SPECIFIED\020\000\022\006\n\002V2\020\001\022\006\n\002V1\020\002:\277\001\352A\273\001\n\036logg" + + "ing.googleapis.com/LogSink\022\037projects/{pr" + + "oject}/sinks/{sink}\022)organizations/{orga" + + "nization}/sinks/{sink}\022\035folders/{folder}" + + "/sinks/{sink}\022.billingAccounts/{billing_" + + "account}/sinks/{sink}B\t\n\007options\"*\n\017BigQ" + + "ueryDataset\022\027\n\ndataset_id\030\001 \001(\tB\003\340A\003\"\265\004\n" + + "\004Link\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t" + + "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022?\n\017lifecycle_state\030\004 \001(\0162" + + "!.google.logging.v2.LifecycleStateB\003\340A\003\022" + + "<\n\020bigquery_dataset\030\005 \001(\0132\".google.loggi" + + "ng.v2.BigQueryDataset:\324\002\352A\320\002\n\033logging.go" + + "ogleapis.com/Link\022Eprojects/{project}/lo" + + "cations/{location}/buckets/{bucket}/link" + + "s/{link}\022Oorganizations/{organization}/l" + + "ocations/{location}/buckets/{bucket}/lin" + + "ks/{link}\022Cfolders/{folder}/locations/{l" + + "ocation}/buckets/{bucket}/links/{link}\022T" + + "billingAccounts/{billing_account}/locati" + + "ons/{location}/buckets/{bucket}/links/{l" + + "ink}\"g\n\017BigQueryOptions\022#\n\026use_partition" + + "ed_tables\030\001 \001(\010B\003\340A\001\022/\n\"uses_timestamp_c" + + "olumn_partitioning\030\003 \001(\010B\003\340A\003\"\177\n\022ListBuc" + + "ketsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 log" + + "ging.googleapis.com/LogBucket\022\027\n\npage_to" + + "ken\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"]" + + "\n\023ListBucketsResponse\022-\n\007buckets\030\001 \003(\0132\034" + + ".google.logging.v2.LogBucket\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"\232\001\n\023CreateBucketRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging.googleapi" + + "s.com/LogBucket\022\026\n\tbucket_id\030\002 \001(\tB\003\340A\002\022" + + "1\n\006bucket\030\003 \001(\0132\034.google.logging.v2.LogB" + + "ucketB\003\340A\002\"\266\001\n\023UpdateBucketRequest\0226\n\004na" + + "me\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.com" + + "/LogBucket\0221\n\006bucket\030\002 \001(\0132\034.google.logg" + + "ing.v2.LogBucketB\003\340A\002\0224\n\013update_mask\030\004 \001" + + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"J\n\020G" + + "etBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n l" + + "ogging.googleapis.com/LogBucket\"M\n\023Delet" + + "eBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n lo" + + "gging.googleapis.com/LogBucket\"O\n\025Undele" + + "teBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n l" + + "ogging.googleapis.com/LogBucket\"X\n\020ListV" + + "iewsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\027\n\npage" + + "_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A" + + "\001\"W\n\021ListViewsResponse\022)\n\005views\030\001 \003(\0132\032." + + "google.logging.v2.LogView\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"m\n\021CreateViewRequest\022\023\n\006paren" + + "t\030\001 \001(\tB\003\340A\002\022\024\n\007view_id\030\002 \001(\tB\003\340A\002\022-\n\004vi" + + "ew\030\003 \001(\0132\032.google.logging.v2.LogViewB\003\340A" + + "\002\"\213\001\n\021UpdateViewRequest\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\002\022-\n\004view\030\002 \001(\0132\032.google.logging.v2.Log" + + "ViewB\003\340A\002\0224\n\013update_mask\030\004 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\001\"F\n\016GetViewReques" + + "t\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036logging.googlea" + + "pis.com/LogView\"I\n\021DeleteViewRequest\0224\n\004" + + "name\030\001 \001(\tB&\340A\002\372A \n\036logging.googleapis.c" + + "om/LogView\"{\n\020ListSinksRequest\0226\n\006parent" + + "\030\001 \001(\tB&\340A\002\372A \022\036logging.googleapis.com/L" + + "ogSink\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_" + + "size\030\003 \001(\005B\003\340A\001\"W\n\021ListSinksResponse\022)\n\005" + + "sinks\030\001 \003(\0132\032.google.logging.v2.LogSink\022" + + "\027\n\017next_page_token\030\002 \001(\t\"K\n\016GetSinkReque" + + "st\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036logging.g" + + "oogleapis.com/LogSink\"\237\001\n\021CreateSinkRequ" + + "est\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036logging.goo" + + "gleapis.com/LogSink\022-\n\004sink\030\002 \001(\0132\032.goog" + + "le.logging.v2.LogSinkB\003\340A\002\022#\n\026unique_wri" + + "ter_identity\030\003 \001(\010B\003\340A\001\"\330\001\n\021UpdateSinkRe" + + "quest\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036loggin" + + "g.googleapis.com/LogSink\022-\n\004sink\030\002 \001(\0132\032" + + ".google.logging.v2.LogSinkB\003\340A\002\022#\n\026uniqu" + + "e_writer_identity\030\003 \001(\010B\003\340A\001\0224\n\013update_m" + + "ask\030\004 \001(\0132\032.google.protobuf.FieldMaskB\003\340" + + "A\001\"N\n\021DeleteSinkRequest\0229\n\tsink_name\030\001 \001" + + "(\tB&\340A\002\372A \n\036logging.googleapis.com/LogSi" + + "nk\"\212\001\n\021CreateLinkRequest\0223\n\006parent\030\001 \001(\t" + + "B#\340A\002\372A\035\022\033logging.googleapis.com/Link\022*\n" + + "\004link\030\002 \001(\0132\027.google.logging.v2.LinkB\003\340A" + + "\002\022\024\n\007link_id\030\003 \001(\tB\003\340A\002\"F\n\021DeleteLinkReq" + + "uest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033logging.goog" + + "leapis.com/Link\"x\n\020ListLinksRequest\0223\n\006p" + + "arent\030\001 \001(\tB#\340A\002\372A\035\022\033logging.googleapis." + + "com/Link\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\tpag" + + "e_size\030\003 \001(\005B\003\340A\001\"T\n\021ListLinksResponse\022&" + + "\n\005links\030\001 \003(\0132\027.google.logging.v2.Link\022\027" + + "\n\017next_page_token\030\002 \001(\t\"C\n\016GetLinkReques" + + "t\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033logging.googlea" + + "pis.com/Link\"\302\003\n\014LogExclusion\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006fi" + + "lter\030\003 \001(\tB\003\340A\002\022\025\n\010disabled\030\004 \001(\010B\003\340A\001\0224" + + "\n\013create_time\030\005 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003:\354\001\352A\350\001\n#loggi" + + "ng.googleapis.com/LogExclusion\022)projects" + + "/{project}/exclusions/{exclusion}\0223organ" + + "izations/{organization}/exclusions/{excl" + + "usion}\022\'folders/{folder}/exclusions/{exc" + + "lusion}\0228billingAccounts/{billing_accoun" + + "t}/exclusions/{exclusion}\"\205\001\n\025ListExclus" + + "ionsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#log" + + "ging.googleapis.com/LogExclusion\022\027\n\npage" + + "_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A" + + "\001\"f\n\026ListExclusionsResponse\0223\n\nexclusion" + + "s\030\001 \003(\0132\037.google.logging.v2.LogExclusion" + + "\022\027\n\017next_page_token\030\002 \001(\t\"P\n\023GetExclusio" + + "nRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging." + + "googleapis.com/LogExclusion\"\216\001\n\026CreateEx" + + "clusionRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#" + + "logging.googleapis.com/LogExclusion\0227\n\te" + + "xclusion\030\002 \001(\0132\037.google.logging.v2.LogEx" + + "clusionB\003\340A\002\"\302\001\n\026UpdateExclusionRequest\022" + + "9\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging.googleapi" + + "s.com/LogExclusion\0227\n\texclusion\030\002 \001(\0132\037." + + "google.logging.v2.LogExclusionB\003\340A\002\0224\n\013u" + + "pdate_mask\030\003 \001(\0132\032.google.protobuf.Field" + + "MaskB\003\340A\002\"S\n\026DeleteExclusionRequest\0229\n\004n" + + "ame\030\001 \001(\tB+\340A\002\372A%\n#logging.googleapis.co" + + "m/LogExclusion\"S\n\026GetCmekSettingsRequest" + + "\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging.googleap" + + "is.com/CmekSettings\"\241\001\n\031UpdateCmekSettin" + + "gsRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022;\n\rcmek_set" + + "tings\030\002 \001(\0132\037.google.logging.v2.CmekSett" + + "ingsB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\001\"\275\002\n\014CmekSettings" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014kms_key_name\030\002 \001(" + + "\t\022\034\n\024kms_key_version_name\030\004 \001(\t\022\037\n\022servi" + + "ce_account_id\030\003 \001(\tB\003\340A\003:\304\001\352A\300\001\n#logging" + + ".googleapis.com/CmekSettings\022\037projects/{" + + "project}/cmekSettings\022)organizations/{or" + + "ganization}/cmekSettings\022\035folders/{folde" + + "r}/cmekSettings\022.billingAccounts/{billin" + + "g_account}/cmekSettings\"K\n\022GetSettingsRe" + + "quest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037logging.goo" + + "gleapis.com/Settings\"\224\001\n\025UpdateSettingsR" + + "equest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\010settings\030\002 " + + "\001(\0132\033.google.logging.v2.SettingsB\003\340A\002\0224\n" + + "\013update_mask\030\003 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\003\340A\001\"\322\002\n\010Settings\022\021\n\004name\030\001 \001(\tB\003" + + "\340A\003\022\031\n\014kms_key_name\030\002 \001(\tB\003\340A\001\022#\n\026kms_se" + + "rvice_account_id\030\003 \001(\tB\003\340A\003\022\035\n\020storage_l" + + "ocation\030\004 \001(\tB\003\340A\001\022!\n\024disable_default_si" + + "nk\030\005 \001(\010B\003\340A\001:\260\001\352A\254\001\n\037logging.googleapis" + + ".com/Settings\022\033projects/{project}/settin" + + "gs\022%organizations/{organization}/setting" + + "s\022\031folders/{folder}/settings\022*billingAcc" + + "ounts/{billing_account}/settings\"Y\n\025Copy" + + "LogEntriesRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\006" + + "filter\030\003 \001(\tB\003\340A\001\022\030\n\013destination\030\004 \001(\tB\003" + + "\340A\002\"\256\002\n\026CopyLogEntriesMetadata\022.\n\nstart_" + + "time\030\001 \001(\0132\032.google.protobuf.Timestamp\022," + + "\n\010end_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tamp\0220\n\005state\030\003 \001(\0162!.google.logging.v2." + + "OperationState\022\036\n\026cancellation_requested" + + "\030\004 \001(\010\0229\n\007request\030\005 \001(\0132(.google.logging" + + ".v2.CopyLogEntriesRequest\022\020\n\010progress\030\006 " + + "\001(\005\022\027\n\017writer_identity\030\007 \001(\t\":\n\026CopyLogE" + + "ntriesResponse\022 \n\030log_entries_copied_cou" + + "nt\030\001 \001(\003\"\275\002\n\016BucketMetadata\022.\n\nstart_tim" + + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010e" + + "nd_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\0220\n\005state\030\003 \001(\0162!.google.logging.v2.Ope" + + "rationState\022G\n\025create_bucket_request\030\004 \001" + + "(\0132&.google.logging.v2.CreateBucketReque" + + "stH\000\022G\n\025update_bucket_request\030\005 \001(\0132&.go" + + "ogle.logging.v2.UpdateBucketRequestH\000B\t\n" + + "\007request\"\263\002\n\014LinkMetadata\022.\n\nstart_time\030" + + "\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010end" + + "_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022" + + "0\n\005state\030\003 \001(\0162!.google.logging.v2.Opera" + + "tionState\022C\n\023create_link_request\030\004 \001(\0132$" + + ".google.logging.v2.CreateLinkRequestH\000\022C" + + "\n\023delete_link_request\030\005 \001(\0132$.google.log" + + "ging.v2.DeleteLinkRequestH\000B\t\n\007request\"1" + + "\n\020LocationMetadata\022\035\n\025log_analytics_enab" + + "led\030\001 \001(\010*\364\001\n\016OperationState\022\037\n\033OPERATIO" + + "N_STATE_UNSPECIFIED\020\000\022\035\n\031OPERATION_STATE" + + "_SCHEDULED\020\001\022+\n\'OPERATION_STATE_WAITING_" + + "FOR_PERMISSIONS\020\002\022\033\n\027OPERATION_STATE_RUN" + + "NING\020\003\022\035\n\031OPERATION_STATE_SUCCEEDED\020\004\022\032\n" + + "\026OPERATION_STATE_FAILED\020\005\022\035\n\031OPERATION_S" + + "TATE_CANCELLED\020\006*{\n\016LifecycleState\022\037\n\033LI" + + "FECYCLE_STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022" + + "\024\n\020DELETE_REQUESTED\020\002\022\014\n\010UPDATING\020\003\022\014\n\010C" + + "REATING\020\004\022\n\n\006FAILED\020\005*V\n\tIndexType\022\032\n\026IN" + + "DEX_TYPE_UNSPECIFIED\020\000\022\025\n\021INDEX_TYPE_STR" + + "ING\020\001\022\026\n\022INDEX_TYPE_INTEGER\020\0022\237Y\n\017Config" + + "ServiceV2\022\334\002\n\013ListBuckets\022%.google.loggi" + + "ng.v2.ListBucketsRequest\032&.google.loggin" + + "g.v2.ListBucketsResponse\"\375\001\332A\006parent\202\323\344\223" + + "\002\355\001\022$/v2/{parent=*/*/locations/*}/bucket" + + "sZ-\022+/v2/{parent=projects/*/locations/*}" + + "/bucketsZ2\0220/v2/{parent=organizations/*/" + + "locations/*}/bucketsZ,\022*/v2/{parent=fold" + + "ers/*/locations/*}/bucketsZ4\0222/v2/{paren" + + "t=billingAccounts/*/locations/*}/buckets" + + "\022\305\002\n\tGetBucket\022#.google.logging.v2.GetBu" + + "cketRequest\032\034.google.logging.v2.LogBucke" + + "t\"\364\001\202\323\344\223\002\355\001\022$/v2/{name=*/*/locations/*/b" + + "uckets/*}Z-\022+/v2/{name=projects/*/locati" + + "ons/*/buckets/*}Z2\0220/v2/{name=organizati" + + "ons/*/locations/*/buckets/*}Z,\022*/v2/{nam" + + "e=folders/*/locations/*/buckets/*}Z4\0222/v" + + "2/{name=billingAccounts/*/locations/*/bu" + + "ckets/*}\022\323\003\n\021CreateBucketAsync\022&.google." + + "logging.v2.CreateBucketRequest\032\035.google." + + "longrunning.Operation\"\366\002\312A\033\n\tLogBucket\022\016" + + "BucketMetadata\202\323\344\223\002\321\002\"0/v2/{parent=*/*/l" + + "ocations/*}/buckets:createAsync:\006bucketZ" + + "A\"7/v2/{parent=projects/*/locations/*}/b" + + "uckets:createAsync:\006bucketZF\"/v2/{parent=billingAccounts/*/lo" + + "cations/*}/buckets:createAsync:\006bucket\022\323" + + "\003\n\021UpdateBucketAsync\022&.google.logging.v2" + + ".UpdateBucketRequest\032\035.google.longrunnin" + + "g.Operation\"\366\002\312A\033\n\tLogBucket\022\016BucketMeta" + + "data\202\323\344\223\002\321\002\"0/v2/{name=*/*/locations/*/b" + + "uckets/*}:updateAsync:\006bucketZA\"7/v2/{na" + + "me=projects/*/locations/*/buckets/*}:upd" + + "ateAsync:\006bucketZF\"/v" + + "2/{name=billingAccounts/*/locations/*/bu" + + "ckets/*}:updateAsync:\006bucket\022\363\002\n\014CreateB" + + "ucket\022&.google.logging.v2.CreateBucketRe" + + "quest\032\034.google.logging.v2.LogBucket\"\234\002\202\323" + + "\344\223\002\225\002\"$/v2/{parent=*/*/locations/*}/buck" + + "ets:\006bucketZ5\"+/v2/{parent=projects/*/lo" + + "cations/*}/buckets:\006bucketZ:\"0/v2/{paren" + + "t=organizations/*/locations/*}/buckets:\006" + + "bucketZ4\"*/v2/{parent=folders/*/location" + + "s/*}/buckets:\006bucketZ<\"2/v2/{parent=bill" + + "ingAccounts/*/locations/*}/buckets:\006buck" + + "et\022\363\002\n\014UpdateBucket\022&.google.logging.v2." + + "UpdateBucketRequest\032\034.google.logging.v2." + + "LogBucket\"\234\002\202\323\344\223\002\225\0022$/v2/{name=*/*/locat" + + "ions/*/buckets/*}:\006bucketZ52+/v2/{name=p" + + "rojects/*/locations/*/buckets/*}:\006bucket" + + "Z:20/v2/{name=organizations/*/locations/" + + "*/buckets/*}:\006bucketZ42*/v2/{name=folder" + + "s/*/locations/*/buckets/*}:\006bucketZ<22/v" + + "2/{name=billingAccounts/*/locations/*/bu" + + "ckets/*}:\006bucket\022\305\002\n\014DeleteBucket\022&.goog" + + "le.logging.v2.DeleteBucketRequest\032\026.goog" + + "le.protobuf.Empty\"\364\001\202\323\344\223\002\355\001*$/v2/{name=*" + + "/*/locations/*/buckets/*}Z-*+/v2/{name=p" + + "rojects/*/locations/*/buckets/*}Z2*0/v2/" + + "{name=organizations/*/locations/*/bucket" + + "s/*}Z,**/v2/{name=folders/*/locations/*/" + + "buckets/*}Z4*2/v2/{name=billingAccounts/" + + "*/locations/*/buckets/*}\022\205\003\n\016UndeleteBuc" + + "ket\022(.google.logging.v2.UndeleteBucketRe" + + "quest\032\026.google.protobuf.Empty\"\260\002\202\323\344\223\002\251\002\"" + + "-/v2/{name=*/*/locations/*/buckets/*}:un" + + "delete:\001*Z9\"4/v2/{name=projects/*/locati" + + "ons/*/buckets/*}:undelete:\001*Z>\"9/v2/{nam" + + "e=organizations/*/locations/*/buckets/*}" + + ":undelete:\001*Z8\"3/v2/{name=folders/*/loca" + + "tions/*/buckets/*}:undelete:\001*Z@\";/v2/{n" + + "ame=billingAccounts/*/locations/*/bucket" + + "s/*}:undelete:\001*\022\376\002\n\tListViews\022#.google." + + "logging.v2.ListViewsRequest\032$.google.log" + + "ging.v2.ListViewsResponse\"\245\002\332A\006parent\202\323\344" + + "\223\002\225\002\022,/v2/{parent=*/*/locations/*/bucket" + + "s/*}/viewsZ5\0223/v2/{parent=projects/*/loc" + + "ations/*/buckets/*}/viewsZ:\0228/v2/{parent" + + "=organizations/*/locations/*/buckets/*}/" + + "viewsZ4\0222/v2/{parent=folders/*/locations" + + "/*/buckets/*}/viewsZ<\022:/v2/{parent=billi" + + "ngAccounts/*/locations/*/buckets/*}/view" + + "s\022\347\002\n\007GetView\022!.google.logging.v2.GetVie" + + "wRequest\032\032.google.logging.v2.LogView\"\234\002\202" + + "\323\344\223\002\225\002\022,/v2/{name=*/*/locations/*/bucket" + + "s/*/views/*}Z5\0223/v2/{name=projects/*/loc" + + "ations/*/buckets/*/views/*}Z:\0228/v2/{name" + + "=organizations/*/locations/*/buckets/*/v" + + "iews/*}Z4\0222/v2/{name=folders/*/locations" + + "/*/buckets/*/views/*}Z<\022:/v2/{name=billi" + + "ngAccounts/*/locations/*/buckets/*/views" + + "/*}\022\213\003\n\nCreateView\022$.google.logging.v2.C" + + "reateViewRequest\032\032.google.logging.v2.Log" + + "View\"\272\002\202\323\344\223\002\263\002\",/v2/{parent=*/*/location" + + "s/*/buckets/*}/views:\004viewZ;\"3/v2/{paren" + + "t=projects/*/locations/*/buckets/*}/view" + + "s:\004viewZ@\"8/v2/{parent=organizations/*/l" + + "ocations/*/buckets/*}/views:\004viewZ:\"2/v2" + + "/{parent=folders/*/locations/*/buckets/*" + + "}/views:\004viewZB\":/v2/{parent=billingAcco" + + "unts/*/locations/*/buckets/*}/views:\004vie" + + "w\022\213\003\n\nUpdateView\022$.google.logging.v2.Upd" + + "ateViewRequest\032\032.google.logging.v2.LogVi" + + "ew\"\272\002\202\323\344\223\002\263\0022,/v2/{name=*/*/locations/*/" + + "buckets/*/views/*}:\004viewZ;23/v2/{name=pr" + + "ojects/*/locations/*/buckets/*/views/*}:" + + "\004viewZ@28/v2/{name=organizations/*/locat" + + "ions/*/buckets/*/views/*}:\004viewZ:22/v2/{" + + "name=folders/*/locations/*/buckets/*/vie" + + "ws/*}:\004viewZB2:/v2/{name=billingAccounts" + + "/*/locations/*/buckets/*/views/*}:\004view\022" + + "\351\002\n\nDeleteView\022$.google.logging.v2.Delet" + + "eViewRequest\032\026.google.protobuf.Empty\"\234\002\202" + + "\323\344\223\002\225\002*,/v2/{name=*/*/locations/*/bucket" + + "s/*/views/*}Z5*3/v2/{name=projects/*/loc" + + "ations/*/buckets/*/views/*}Z:*8/v2/{name" + + "=organizations/*/locations/*/buckets/*/v" + + "iews/*}Z4*2/v2/{name=folders/*/locations" + + "/*/buckets/*/views/*}Z<*:/v2/{name=billi" + + "ngAccounts/*/locations/*/buckets/*/views" + + "/*}\022\220\002\n\tListSinks\022#.google.logging.v2.Li" + + "stSinksRequest\032$.google.logging.v2.ListS" + + "inksResponse\"\267\001\332A\006parent\202\323\344\223\002\247\001\022\026/v2/{pa" + + "rent=*/*}/sinksZ\037\022\035/v2/{parent=projects/" + + "*}/sinksZ$\022\"/v2/{parent=organizations/*}" + + "/sinksZ\036\022\034/v2/{parent=folders/*}/sinksZ&" + + "\022$/v2/{parent=billingAccounts/*}/sinks\022\236" + + "\002\n\007GetSink\022!.google.logging.v2.GetSinkRe" + + "quest\032\032.google.logging.v2.LogSink\"\323\001\332A\ts" + + "ink_name\202\323\344\223\002\300\001\022\033/v2/{sink_name=*/*/sink" + + "s/*}Z$\022\"/v2/{sink_name=projects/*/sinks/" + + "*}Z)\022\'/v2/{sink_name=organizations/*/sin" + + "ks/*}Z#\022!/v2/{sink_name=folders/*/sinks/" + + "*}Z+\022)/v2/{sink_name=billingAccounts/*/s" + + "inks/*}\022\253\002\n\nCreateSink\022$.google.logging." + + "v2.CreateSinkRequest\032\032.google.logging.v2" + + ".LogSink\"\332\001\332A\013parent,sink\202\323\344\223\002\305\001\"\026/v2/{p" + + "arent=*/*}/sinks:\004sinkZ%\"\035/v2/{parent=pr" + + "ojects/*}/sinks:\004sinkZ*\"\"/v2/{parent=org" + + "anizations/*}/sinks:\004sinkZ$\"\034/v2/{parent" + + "=folders/*}/sinks:\004sinkZ,\"$/v2/{parent=b" + + "illingAccounts/*}/sinks:\004sink\022\237\004\n\nUpdate" + + "Sink\022$.google.logging.v2.UpdateSinkReque" + + "st\032\032.google.logging.v2.LogSink\"\316\003\332A\032sink" + + "_name,sink,update_mask\332A\016sink_name,sink\202" + + "\323\344\223\002\231\003\032\033/v2/{sink_name=*/*/sinks/*}:\004sin" + + "kZ*\032\"/v2/{sink_name=projects/*/sinks/*}:" + + "\004sinkZ/\032\'/v2/{sink_name=organizations/*/" + + "sinks/*}:\004sinkZ)\032!/v2/{sink_name=folders" + + "/*/sinks/*}:\004sinkZ1\032)/v2/{sink_name=bill" + + "ingAccounts/*/sinks/*}:\004sinkZ*2\"/v2/{sin", + "k_name=projects/*/sinks/*}:\004sinkZ/2\'/v2/" + + "{sink_name=organizations/*/sinks/*}:\004sin" + + "kZ)2!/v2/{sink_name=folders/*/sinks/*}:\004" + + "sinkZ12)/v2/{sink_name=billingAccounts/*" + + "/sinks/*}:\004sink\022\240\002\n\nDeleteSink\022$.google." + + "logging.v2.DeleteSinkRequest\032\026.google.pr" + + "otobuf.Empty\"\323\001\332A\tsink_name\202\323\344\223\002\300\001*\033/v2/" + + "{sink_name=*/*/sinks/*}Z$*\"/v2/{sink_nam" + + "e=projects/*/sinks/*}Z)*\'/v2/{sink_name=" + + "organizations/*/sinks/*}Z#*!/v2/{sink_na" + + "me=folders/*/sinks/*}Z+*)/v2/{sink_name=" + + "billingAccounts/*/sinks/*}\022\273\003\n\nCreateLin" + + "k\022$.google.logging.v2.CreateLinkRequest\032" + + "\035.google.longrunning.Operation\"\347\002\312A\024\n\004Li" + + "nk\022\014LinkMetadata\332A\023parent,link,link_id\202\323" + + "\344\223\002\263\002\",/v2/{parent=*/*/locations/*/bucke" + + "ts/*}/links:\004linkZ;\"3/v2/{parent=project" + + "s/*/locations/*/buckets/*}/links:\004linkZ@" + + "\"8/v2/{parent=organizations/*/locations/" + + "*/buckets/*}/links:\004linkZ:\"2/v2/{parent=" + + "folders/*/locations/*/buckets/*}/links:\004" + + "linkZB\":/v2/{parent=billingAccounts/*/lo" + + "cations/*/buckets/*}/links:\004link\022\237\003\n\nDel" + + "eteLink\022$.google.logging.v2.DeleteLinkRe" + + "quest\032\035.google.longrunning.Operation\"\313\002\312" + + "A%\n\025google.protobuf.Empty\022\014LinkMetadata\332" + + "A\004name\202\323\344\223\002\225\002*,/v2/{name=*/*/locations/*" + + "/buckets/*/links/*}Z5*3/v2/{name=project" + + "s/*/locations/*/buckets/*/links/*}Z:*8/v" + + "2/{name=organizations/*/locations/*/buck" + + "ets/*/links/*}Z4*2/v2/{name=folders/*/lo" + + "cations/*/buckets/*/links/*}Z<*:/v2/{nam" + + "e=billingAccounts/*/locations/*/buckets/" + + "*/links/*}\022\376\002\n\tListLinks\022#.google.loggin" + + "g.v2.ListLinksRequest\032$.google.logging.v" + + "2.ListLinksResponse\"\245\002\332A\006parent\202\323\344\223\002\225\002\022," + + "/v2/{parent=*/*/locations/*/buckets/*}/l" + + "inksZ5\0223/v2/{parent=projects/*/locations" + + "/*/buckets/*}/linksZ:\0228/v2/{parent=organ" + + "izations/*/locations/*/buckets/*}/linksZ" + + "4\0222/v2/{parent=folders/*/locations/*/buc" + + "kets/*}/linksZ<\022:/v2/{parent=billingAcco" + + "unts/*/locations/*/buckets/*}/links\022\353\002\n\007" + + "GetLink\022!.google.logging.v2.GetLinkReque" + + "st\032\027.google.logging.v2.Link\"\243\002\332A\004name\202\323\344" + + "\223\002\225\002\022,/v2/{name=*/*/locations/*/buckets/" + + "*/links/*}Z5\0223/v2/{name=projects/*/locat" + + "ions/*/buckets/*/links/*}Z:\0228/v2/{name=o" + + "rganizations/*/locations/*/buckets/*/lin" + + "ks/*}Z4\0222/v2/{name=folders/*/locations/*" + + "/buckets/*/links/*}Z<\022:/v2/{name=billing" + + "Accounts/*/locations/*/buckets/*/links/*" + + "}\022\270\002\n\016ListExclusions\022(.google.logging.v2" + + ".ListExclusionsRequest\032).google.logging." + + "v2.ListExclusionsResponse\"\320\001\332A\006parent\202\323\344" + + "\223\002\300\001\022\033/v2/{parent=*/*}/exclusionsZ$\022\"/v2" + + "/{parent=projects/*}/exclusionsZ)\022\'/v2/{" + + "parent=organizations/*}/exclusionsZ#\022!/v" + + "2/{parent=folders/*}/exclusionsZ+\022)/v2/{" + + "parent=billingAccounts/*}/exclusions\022\250\002\n" + + "\014GetExclusion\022&.google.logging.v2.GetExc" + + "lusionRequest\032\037.google.logging.v2.LogExc" + + "lusion\"\316\001\332A\004name\202\323\344\223\002\300\001\022\033/v2/{name=*/*/e" + + "xclusions/*}Z$\022\"/v2/{name=projects/*/exc" + + "lusions/*}Z)\022\'/v2/{name=organizations/*/" + + "exclusions/*}Z#\022!/v2/{name=folders/*/exc" + + "lusions/*}Z+\022)/v2/{name=billingAccounts/" + + "*/exclusions/*}\022\361\002\n\017CreateExclusion\022).go" + + "ogle.logging.v2.CreateExclusionRequest\032\037" + + ".google.logging.v2.LogExclusion\"\221\002\332A\020par" + + "ent,exclusion\202\323\344\223\002\367\001\"\033/v2/{parent=*/*}/e" + + "xclusions:\texclusionZ/\"\"/v2/{parent=proj" + + "ects/*}/exclusions:\texclusionZ4\"\'/v2/{pa" + + "rent=organizations/*}/exclusions:\texclus" + + "ionZ.\"!/v2/{parent=folders/*}/exclusions" + + ":\texclusionZ6\")/v2/{parent=billingAccoun" + + "ts/*}/exclusions:\texclusion\022\373\002\n\017UpdateEx" + + "clusion\022).google.logging.v2.UpdateExclus" + + "ionRequest\032\037.google.logging.v2.LogExclus" + + "ion\"\233\002\332A\032name,exclusion,update_mask\202\323\344\223\002" + + "\367\0012\033/v2/{name=*/*/exclusions/*}:\texclusi" + + "onZ/2\"/v2/{name=projects/*/exclusions/*}" + + ":\texclusionZ42\'/v2/{name=organizations/*" + + "/exclusions/*}:\texclusionZ.2!/v2/{name=f" + + "olders/*/exclusions/*}:\texclusionZ62)/v2" + + "/{name=billingAccounts/*/exclusions/*}:\t" + + "exclusion\022\245\002\n\017DeleteExclusion\022).google.l" + + "ogging.v2.DeleteExclusionRequest\032\026.googl" + + "e.protobuf.Empty\"\316\001\332A\004name\202\323\344\223\002\300\001*\033/v2/{" + + "name=*/*/exclusions/*}Z$*\"/v2/{name=proj" + + "ects/*/exclusions/*}Z)*\'/v2/{name=organi" + + "zations/*/exclusions/*}Z#*!/v2/{name=fol" + + "ders/*/exclusions/*}Z+*)/v2/{name=billin" + + "gAccounts/*/exclusions/*}\022\247\002\n\017GetCmekSet" + + "tings\022).google.logging.v2.GetCmekSetting" + + "sRequest\032\037.google.logging.v2.CmekSetting" + + "s\"\307\001\202\323\344\223\002\300\001\022\033/v2/{name=*/*}/cmekSettings" + + "Z$\022\"/v2/{name=projects/*}/cmekSettingsZ)" + + "\022\'/v2/{name=organizations/*}/cmekSetting" + + "sZ#\022!/v2/{name=folders/*}/cmekSettingsZ+" + + "\022)/v2/{name=billingAccounts/*}/cmekSetti" + + "ngs\022\321\001\n\022UpdateCmekSettings\022,.google.logg" + + "ing.v2.UpdateCmekSettingsRequest\032\037.googl" + + "e.logging.v2.CmekSettings\"l\202\323\344\223\002f2\033/v2/{" + + "name=*/*}/cmekSettings:\rcmek_settingsZ82" + + "\'/v2/{name=organizations/*}/cmekSettings" + + ":\rcmek_settings\022\216\002\n\013GetSettings\022%.google" + + ".logging.v2.GetSettingsRequest\032\033.google." + + "logging.v2.Settings\"\272\001\332A\004name\202\323\344\223\002\254\001\022\027/v" + + "2/{name=*/*}/settingsZ \022\036/v2/{name=proje" + + "cts/*}/settingsZ%\022#/v2/{name=organizatio" + + "ns/*}/settingsZ\037\022\035/v2/{name=folders/*}/s" + + "ettingsZ\'\022%/v2/{name=billingAccounts/*}/" + + "settings\022\366\001\n\016UpdateSettings\022(.google.log" + + "ging.v2.UpdateSettingsRequest\032\033.google.l" + + "ogging.v2.Settings\"\234\001\332A\024settings,update_" + + "mask\202\323\344\223\002\1772\027/v2/{name=*/*}/settings:\010set" + + "tingsZ/2#/v2/{name=organizations/*}/sett" + + "ings:\010settingsZ)2\035/v2/{name=folders/*}/s" + + "ettings:\010settings\022\251\001\n\016CopyLogEntries\022(.g" + + "oogle.logging.v2.CopyLogEntriesRequest\032\035" + + ".google.longrunning.Operation\"N\312A0\n\026Copy" + + "LogEntriesResponse\022\026CopyLogEntriesMetada" + + "ta\202\323\344\223\002\025\"\020/v2/entries:copy:\001*\032\337\001\312A\026loggi" + + "ng.googleapis.com\322A\302\001https://www.googlea" + + "pis.com/auth/cloud-platform,https://www." + + "googleapis.com/auth/cloud-platform.read-" + + "only,https://www.googleapis.com/auth/log" + + "ging.admin,https://www.googleapis.com/au" + + "th/logging.readB\326\003\n\025com.google.logging.v" + + "2B\022LoggingConfigProtoP\001Z5cloud.google.co" + + "m/go/logging/apiv2/loggingpb;loggingpb\370\001" + + "\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Clo" + + "ud\\Logging\\V2\352\002\032Google::Cloud::Logging::" + + "V2\352A`\n+logging.googleapis.com/Organizati" + + "onLocation\0221organizations/{organization}" + + "/locations/{location}\352AN\n%logging.google" + + "apis.com/FolderLocation\022%folders/{folder" + + "}/locations/{location}\352Ag\n-logging.googl" + + "eapis.com/BillingAccountLocation\0226billin" + + "gAccounts/{billing_account}/locations/{l" + + "ocation}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_logging_v2_IndexConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_logging_v2_IndexConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_IndexConfig_descriptor, + new java.lang.String[] { + "FieldPath", "Type", "CreateTime", + }); + internal_static_google_logging_v2_LogBucket_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_logging_v2_LogBucket_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LogBucket_descriptor, + new java.lang.String[] { + "Name", + "Description", + "CreateTime", + "UpdateTime", + "RetentionDays", + "Locked", + "LifecycleState", + "AnalyticsEnabled", + "RestrictedFields", + "IndexConfigs", + "CmekSettings", + }); + internal_static_google_logging_v2_LogView_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_logging_v2_LogView_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LogView_descriptor, + new java.lang.String[] { + "Name", "Description", "CreateTime", "UpdateTime", "Filter", + }); + internal_static_google_logging_v2_LogSink_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_logging_v2_LogSink_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LogSink_descriptor, + new java.lang.String[] { + "Name", + "Destination", + "Filter", + "Description", + "Disabled", + "Exclusions", + "OutputVersionFormat", + "WriterIdentity", + "IncludeChildren", + "BigqueryOptions", + "CreateTime", + "UpdateTime", + "Options", + }); + internal_static_google_logging_v2_BigQueryDataset_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_BigQueryDataset_descriptor, + new java.lang.String[] { + "DatasetId", + }); + internal_static_google_logging_v2_Link_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_google_logging_v2_Link_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_Link_descriptor, + new java.lang.String[] { + "Name", "Description", "CreateTime", "LifecycleState", "BigqueryDataset", + }); + internal_static_google_logging_v2_BigQueryOptions_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_BigQueryOptions_descriptor, + new java.lang.String[] { + "UsePartitionedTables", "UsesTimestampColumnPartitioning", + }); + internal_static_google_logging_v2_ListBucketsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListBucketsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_logging_v2_ListBucketsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListBucketsResponse_descriptor, + new java.lang.String[] { + "Buckets", "NextPageToken", + }); + internal_static_google_logging_v2_CreateBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CreateBucketRequest_descriptor, + new java.lang.String[] { + "Parent", "BucketId", "Bucket", + }); + internal_static_google_logging_v2_UpdateBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateBucketRequest_descriptor, + new java.lang.String[] { + "Name", "Bucket", "UpdateMask", + }); + internal_static_google_logging_v2_GetBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetBucketRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_logging_v2_DeleteBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_DeleteBucketRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_logging_v2_UndeleteBucketRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UndeleteBucketRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_logging_v2_ListViewsRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListViewsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_logging_v2_ListViewsResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListViewsResponse_descriptor, + new java.lang.String[] { + "Views", "NextPageToken", + }); + internal_static_google_logging_v2_CreateViewRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CreateViewRequest_descriptor, + new java.lang.String[] { + "Parent", "ViewId", "View", + }); + internal_static_google_logging_v2_UpdateViewRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateViewRequest_descriptor, + new java.lang.String[] { + "Name", "View", "UpdateMask", + }); + internal_static_google_logging_v2_GetViewRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetViewRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_logging_v2_DeleteViewRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_DeleteViewRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_logging_v2_ListSinksRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListSinksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_logging_v2_ListSinksResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListSinksResponse_descriptor, + new java.lang.String[] { + "Sinks", "NextPageToken", + }); + internal_static_google_logging_v2_GetSinkRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetSinkRequest_descriptor, + new java.lang.String[] { + "SinkName", + }); + internal_static_google_logging_v2_CreateSinkRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CreateSinkRequest_descriptor, + new java.lang.String[] { + "Parent", "Sink", "UniqueWriterIdentity", + }); + internal_static_google_logging_v2_UpdateSinkRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateSinkRequest_descriptor, + new java.lang.String[] { + "SinkName", "Sink", "UniqueWriterIdentity", "UpdateMask", + }); + internal_static_google_logging_v2_DeleteSinkRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_DeleteSinkRequest_descriptor, + new java.lang.String[] { + "SinkName", + }); + internal_static_google_logging_v2_CreateLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CreateLinkRequest_descriptor, + new java.lang.String[] { + "Parent", "Link", "LinkId", + }); + internal_static_google_logging_v2_DeleteLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_DeleteLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_logging_v2_ListLinksRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLinksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_logging_v2_ListLinksResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLinksResponse_descriptor, + new java.lang.String[] { + "Links", "NextPageToken", + }); + internal_static_google_logging_v2_GetLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_logging_v2_LogExclusion_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_logging_v2_LogExclusion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LogExclusion_descriptor, + new java.lang.String[] { + "Name", "Description", "Filter", "Disabled", "CreateTime", "UpdateTime", + }); + internal_static_google_logging_v2_ListExclusionsRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListExclusionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_logging_v2_ListExclusionsResponse_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListExclusionsResponse_descriptor, + new java.lang.String[] { + "Exclusions", "NextPageToken", + }); + internal_static_google_logging_v2_GetExclusionRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetExclusionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_logging_v2_CreateExclusionRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CreateExclusionRequest_descriptor, + new java.lang.String[] { + "Parent", "Exclusion", + }); + internal_static_google_logging_v2_UpdateExclusionRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateExclusionRequest_descriptor, + new java.lang.String[] { + "Name", "Exclusion", "UpdateMask", + }); + internal_static_google_logging_v2_DeleteExclusionRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_DeleteExclusionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor, + new java.lang.String[] { + "Name", "CmekSettings", "UpdateMask", + }); + internal_static_google_logging_v2_CmekSettings_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_logging_v2_CmekSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CmekSettings_descriptor, + new java.lang.String[] { + "Name", "KmsKeyName", "KmsKeyVersionName", "ServiceAccountId", + }); + internal_static_google_logging_v2_GetSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_logging_v2_UpdateSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateSettingsRequest_descriptor, + new java.lang.String[] { + "Name", "Settings", "UpdateMask", + }); + internal_static_google_logging_v2_Settings_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_logging_v2_Settings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_Settings_descriptor, + new java.lang.String[] { + "Name", "KmsKeyName", "KmsServiceAccountId", "StorageLocation", "DisableDefaultSink", + }); + internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor, + new java.lang.String[] { + "Name", "Filter", "Destination", + }); + internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor, + new java.lang.String[] { + "StartTime", + "EndTime", + "State", + "CancellationRequested", + "Request", + "Progress", + "WriterIdentity", + }); + internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor, + new java.lang.String[] { + "LogEntriesCopiedCount", + }); + internal_static_google_logging_v2_BucketMetadata_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_BucketMetadata_descriptor, + new java.lang.String[] { + "StartTime", + "EndTime", + "State", + "CreateBucketRequest", + "UpdateBucketRequest", + "Request", + }); + internal_static_google_logging_v2_LinkMetadata_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LinkMetadata_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", "State", "CreateLinkRequest", "DeleteLinkRequest", "Request", + }); + internal_static_google_logging_v2_LocationMetadata_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LocationMetadata_descriptor, + new java.lang.String[] { + "LogAnalyticsEnabled", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java new file mode 100644 index 000000000..8a058fec9 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java @@ -0,0 +1,257 @@ +/* + * 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/logging/v2/logging_metrics.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public final class LoggingMetricsProto { + private LoggingMetricsProto() {} + + 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_logging_v2_LogMetric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LogMetric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLogMetricsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLogMetricsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetLogMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\'google/logging/v2/logging_metrics.prot" + + "o\022\021google.logging.v2\032\034google/api/annotat" + + "ions.proto\032\027google/api/client.proto\032\035goo" + + "gle/api/distribution.proto\032\037google/api/f" + + "ield_behavior.proto\032\027google/api/metric.p" + + "roto\032\031google/api/resource.proto\032\033google/" + + "protobuf/empty.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\275\005\n\tLogMetric\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006filt" + + "er\030\003 \001(\tB\003\340A\002\022\030\n\013bucket_name\030\r \001(\tB\003\340A\001\022" + + "\025\n\010disabled\030\014 \001(\010B\003\340A\001\022<\n\021metric_descrip" + + "tor\030\005 \001(\0132\034.google.api.MetricDescriptorB" + + "\003\340A\001\022\034\n\017value_extractor\030\006 \001(\tB\003\340A\001\022P\n\020la" + + "bel_extractors\030\007 \003(\01321.google.logging.v2" + + ".LogMetric.LabelExtractorsEntryB\003\340A\001\022C\n\016" + + "bucket_options\030\010 \001(\0132&.google.api.Distri" + + "bution.BucketOptionsB\003\340A\001\0224\n\013create_time" + + "\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\n \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022<\n\007version\030\004 \001(\0162\'.google." + + "logging.v2.LogMetric.ApiVersionB\002\030\001\0326\n\024L" + + "abelExtractorsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"\034\n\nApiVersion\022\006\n\002V2\020\000\022\006\n\002V1\020" + + "\001:J\352AG\n logging.googleapis.com/LogMetric" + + "\022#projects/{project}/metrics/{metric}\"\215\001" + + "\n\025ListLogMetricsRequest\022C\n\006parent\030\001 \001(\tB" + + "3\340A\002\372A-\n+cloudresourcemanager.googleapis" + + ".com/Project\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\"`\n\026ListLogMetricsR" + + "esponse\022-\n\007metrics\030\001 \003(\0132\034.google.loggin" + + "g.v2.LogMetric\022\027\n\017next_page_token\030\002 \001(\t\"" + + "T\n\023GetLogMetricRequest\022=\n\013metric_name\030\001 " + + "\001(\tB(\340A\002\372A\"\n logging.googleapis.com/LogM" + + "etric\"\205\001\n\026CreateLogMetricRequest\0228\n\006pare" + + "nt\030\001 \001(\tB(\340A\002\372A\"\022 logging.googleapis.com" + + "/LogMetric\0221\n\006metric\030\002 \001(\0132\034.google.logg" + + "ing.v2.LogMetricB\003\340A\002\"\212\001\n\026UpdateLogMetri" + + "cRequest\022=\n\013metric_name\030\001 \001(\tB(\340A\002\372A\"\n l" + + "ogging.googleapis.com/LogMetric\0221\n\006metri" + + "c\030\002 \001(\0132\034.google.logging.v2.LogMetricB\003\340" + + "A\002\"W\n\026DeleteLogMetricRequest\022=\n\013metric_n" + + "ame\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.co" + + "m/LogMetric2\256\010\n\020MetricsServiceV2\022\227\001\n\016Lis" + + "tLogMetrics\022(.google.logging.v2.ListLogM" + + "etricsRequest\032).google.logging.v2.ListLo" + + "gMetricsResponse\"0\332A\006parent\202\323\344\223\002!\022\037/v2/{" + + "parent=projects/*}/metrics\022\222\001\n\014GetLogMet" + + "ric\022&.google.logging.v2.GetLogMetricRequ" + + "est\032\034.google.logging.v2.LogMetric\"<\332A\013me" + + "tric_name\202\323\344\223\002(\022&/v2/{metric_name=projec" + + "ts/*/metrics/*}\022\233\001\n\017CreateLogMetric\022).go" + + "ogle.logging.v2.CreateLogMetricRequest\032\034" + + ".google.logging.v2.LogMetric\"?\332A\rparent," + + "metric\202\323\344\223\002)\"\037/v2/{parent=projects/*}/me" + + "trics:\006metric\022\247\001\n\017UpdateLogMetric\022).goog" + + "le.logging.v2.UpdateLogMetricRequest\032\034.g" + + "oogle.logging.v2.LogMetric\"K\332A\022metric_na" + + "me,metric\202\323\344\223\0020\032&/v2/{metric_name=projec" + + "ts/*/metrics/*}:\006metric\022\222\001\n\017DeleteLogMet" + + "ric\022).google.logging.v2.DeleteLogMetricR" + + "equest\032\026.google.protobuf.Empty\"<\332A\013metri" + + "c_name\202\323\344\223\002(*&/v2/{metric_name=projects/" + + "*/metrics/*}\032\215\002\312A\026logging.googleapis.com" + + "\322A\360\001https://www.googleapis.com/auth/clou" + + "d-platform,https://www.googleapis.com/au" + + "th/cloud-platform.read-only,https://www." + + "googleapis.com/auth/logging.admin,https:" + + "//www.googleapis.com/auth/logging.read,h" + + "ttps://www.googleapis.com/auth/logging.w" + + "riteB\271\001\n\025com.google.logging.v2B\023LoggingM" + + "etricsProtoP\001Z5cloud.google.com/go/loggi" + + "ng/apiv2/loggingpb;loggingpb\370\001\001\252\002\027Google" + + ".Cloud.Logging.V2\312\002\027Google\\Cloud\\Logging" + + "\\V2\352\002\032Google::Cloud::Logging::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.DistributionProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.MetricProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_logging_v2_LogMetric_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_logging_v2_LogMetric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LogMetric_descriptor, + new java.lang.String[] { + "Name", + "Description", + "Filter", + "BucketName", + "Disabled", + "MetricDescriptor", + "ValueExtractor", + "LabelExtractors", + "BucketOptions", + "CreateTime", + "UpdateTime", + "Version", + }); + internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor = + internal_static_google_logging_v2_LogMetric_descriptor.getNestedTypes().get(0); + internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LogMetric_LabelExtractorsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_logging_v2_ListLogMetricsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_logging_v2_ListLogMetricsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLogMetricsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", + }); + internal_static_google_logging_v2_ListLogMetricsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_logging_v2_ListLogMetricsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLogMetricsResponse_descriptor, + new java.lang.String[] { + "Metrics", "NextPageToken", + }); + internal_static_google_logging_v2_GetLogMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_logging_v2_GetLogMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetLogMetricRequest_descriptor, + new java.lang.String[] { + "MetricName", + }); + internal_static_google_logging_v2_CreateLogMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CreateLogMetricRequest_descriptor, + new java.lang.String[] { + "Parent", "Metric", + }); + internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor, + new java.lang.String[] { + "MetricName", "Metric", + }); + internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_logging_v2_DeleteLogMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_DeleteLogMetricRequest_descriptor, + new java.lang.String[] { + "MetricName", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.DistributionProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.MetricProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java new file mode 100644 index 000000000..467bd0795 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java @@ -0,0 +1,362 @@ +/* + * 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/logging/v2/logging.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public final class LoggingProto { + private LoggingProto() {} + + 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_logging_v2_DeleteLogRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLogEntriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLogEntriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLogsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_ListLogsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\037google/logging/v2/logging.proto\022\021googl" + + "e.logging.v2\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032#google/api/monitor" + + "ed_resource.proto\032\031google/api/resource.p" + + "roto\032!google/logging/v2/log_entry.proto\032" + + "\036google/protobuf/duration.proto\032\033google/" + + "protobuf/empty.proto\032\027google/rpc/status." + + "proto\"H\n\020DeleteLogRequest\0224\n\010log_name\030\001 " + + "\001(\tB\"\340A\002\372A\034\n\032logging.googleapis.com/Log\"" + + "\346\002\n\026WriteLogEntriesRequest\0224\n\010log_name\030\001" + + " \001(\tB\"\340A\001\372A\034\n\032logging.googleapis.com/Log" + + "\0224\n\010resource\030\002 \001(\0132\035.google.api.Monitore" + + "dResourceB\003\340A\001\022J\n\006labels\030\003 \003(\01325.google." + + "logging.v2.WriteLogEntriesRequest.Labels" + + "EntryB\003\340A\001\0221\n\007entries\030\004 \003(\0132\033.google.log" + + "ging.v2.LogEntryB\003\340A\002\022\034\n\017partial_success" + + "\030\005 \001(\010B\003\340A\001\022\024\n\007dry_run\030\006 \001(\010B\003\340A\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"\031\n\027WriteLogEntriesResponse\"\310\001\n\034WriteLog" + + "EntriesPartialErrors\022]\n\020log_entry_errors" + + "\030\001 \003(\0132C.google.logging.v2.WriteLogEntri" + + "esPartialErrors.LogEntryErrorsEntry\032I\n\023L" + + "ogEntryErrorsEntry\022\013\n\003key\030\001 \001(\005\022!\n\005value" + + "\030\002 \001(\0132\022.google.rpc.Status:\0028\001\"\260\001\n\025ListL" + + "ogEntriesRequest\022:\n\016resource_names\030\010 \003(\t" + + "B\"\340A\002\372A\034\022\032logging.googleapis.com/Log\022\023\n\006" + + "filter\030\002 \001(\tB\003\340A\001\022\025\n\010order_by\030\003 \001(\tB\003\340A\001" + + "\022\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005" + + " \001(\tB\003\340A\001\"_\n\026ListLogEntriesResponse\022,\n\007e" + + "ntries\030\001 \003(\0132\033.google.logging.v2.LogEntr" + + "y\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\'ListMonito" + + "redResourceDescriptorsRequest\022\026\n\tpage_si" + + "ze\030\001 \001(\005B\003\340A\001\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\"\212" + + "\001\n(ListMonitoredResourceDescriptorsRespo" + + "nse\022E\n\024resource_descriptors\030\001 \003(\0132\'.goog" + + "le.api.MonitoredResourceDescriptor\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\262\001\n\017ListLogsRequest\022" + + "2\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032logging.googlea" + + "pis.com/Log\022:\n\016resource_names\030\010 \003(\tB\"\340A\001" + + "\372A\034\022\032logging.googleapis.com/Log\022\026\n\tpage_" + + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001" + + "\">\n\020ListLogsResponse\022\021\n\tlog_names\030\003 \003(\t\022" + + "\027\n\017next_page_token\030\002 \001(\t\"\200\001\n\025TailLogEntr" + + "iesRequest\022\033\n\016resource_names\030\001 \003(\tB\003\340A\002\022" + + "\023\n\006filter\030\002 \001(\tB\003\340A\001\0225\n\rbuffer_window\030\003 " + + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\"\337\002\n\026" + + "TailLogEntriesResponse\022,\n\007entries\030\001 \003(\0132" + + "\033.google.logging.v2.LogEntry\022S\n\020suppress" + + "ion_info\030\002 \003(\01329.google.logging.v2.TailL" + + "ogEntriesResponse.SuppressionInfo\032\301\001\n\017Su" + + "ppressionInfo\022P\n\006reason\030\001 \001(\0162@.google.l" + + "ogging.v2.TailLogEntriesResponse.Suppres" + + "sionInfo.Reason\022\030\n\020suppressed_count\030\002 \001(" + + "\005\"B\n\006Reason\022\026\n\022REASON_UNSPECIFIED\020\000\022\016\n\nR" + + "ATE_LIMIT\020\001\022\020\n\014NOT_CONSUMED\020\0022\351\r\n\020Loggin" + + "gServiceV2\022\223\002\n\tDeleteLog\022#.google.loggin" + + "g.v2.DeleteLogRequest\032\026.google.protobuf." + + "Empty\"\310\001\332A\010log_name\202\323\344\223\002\266\001* /v2/{log_nam" + + "e=projects/*/logs/*}Z\033*\031/v2/{log_name=*/" + + "*/logs/*}Z\'*%/v2/{log_name=organizations" + + "/*/logs/*}Z!*\037/v2/{log_name=folders/*/lo" + + "gs/*}Z)*\'/v2/{log_name=billingAccounts/*" + + "/logs/*}\022\251\001\n\017WriteLogEntries\022).google.lo" + + "gging.v2.WriteLogEntriesRequest\032*.google" + + ".logging.v2.WriteLogEntriesResponse\"?\332A " + + "log_name,resource,labels,entries\202\323\344\223\002\026\"\021" + + "/v2/entries:write:\001*\022\243\001\n\016ListLogEntries\022" + + "(.google.logging.v2.ListLogEntriesReques" + + "t\032).google.logging.v2.ListLogEntriesResp" + + "onse\"<\332A\036resource_names,filter,order_by\202" + + "\323\344\223\002\025\"\020/v2/entries:list:\001*\022\305\001\n ListMonit" + + "oredResourceDescriptors\022:.google.logging" + + ".v2.ListMonitoredResourceDescriptorsRequ" + + "est\032;.google.logging.v2.ListMonitoredRes" + + "ourceDescriptorsResponse\"(\202\323\344\223\002\"\022 /v2/mo" + + "nitoredResourceDescriptors\022\213\004\n\010ListLogs\022" + + "\".google.logging.v2.ListLogsRequest\032#.go" + + "ogle.logging.v2.ListLogsResponse\"\265\003\332A\006pa" + + "rent\202\323\344\223\002\245\003\022\025/v2/{parent=*/*}/logsZ\036\022\034/v" + + "2/{parent=projects/*}/logsZ#\022!/v2/{paren" + + "t=organizations/*}/logsZ\035\022\033/v2/{parent=f" + + "olders/*}/logsZ%\022#/v2/{parent=billingAcc" + + "ounts/*}/logsZ<\022:/v2/{parent=projects/*/" + + "locations/*/buckets/*/views/*}/logsZA\022?/" + + "v2/{parent=organizations/*/locations/*/b" + + "uckets/*/views/*}/logsZ;\0229/v2/{parent=fo" + + "lders/*/locations/*/buckets/*/views/*}/l" + + "ogsZC\022A/v2/{parent=billingAccounts/*/loc" + + "ations/*/buckets/*/views/*}/logs\022\206\001\n\016Tai" + + "lLogEntries\022(.google.logging.v2.TailLogE" + + "ntriesRequest\032).google.logging.v2.TailLo" + + "gEntriesResponse\"\033\202\323\344\223\002\025\"\020/v2/entries:ta" + + "il:\001*(\0010\001\032\215\002\312A\026logging.googleapis.com\322A\360" + + "\001https://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "cloud-platform.read-only,https://www.goo" + + "gleapis.com/auth/logging.admin,https://w" + + "ww.googleapis.com/auth/logging.read,http" + + "s://www.googleapis.com/auth/logging.writ" + + "eB\262\001\n\025com.google.logging.v2B\014LoggingProt" + + "oP\001Z5cloud.google.com/go/logging/apiv2/l" + + "oggingpb;loggingpb\370\001\001\252\002\027Google.Cloud.Log" + + "ging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032Goog" + + "le::Cloud::Logging::V2b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.MonitoredResourceProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.logging.v2.LogEntryProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_logging_v2_DeleteLogRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_logging_v2_DeleteLogRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_DeleteLogRequest_descriptor, + new java.lang.String[] { + "LogName", + }); + internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor, + new java.lang.String[] { + "LogName", "Resource", "Labels", "Entries", "PartialSuccess", "DryRun", + }); + internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor = + internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor.getNestedTypes().get(0); + internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor, + new java.lang.String[] { + "LogEntryErrors", + }); + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor = + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor + .getNestedTypes() + .get(0); + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_logging_v2_ListLogEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_logging_v2_ListLogEntriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLogEntriesRequest_descriptor, + new java.lang.String[] { + "ResourceNames", "Filter", "OrderBy", "PageSize", "PageToken", + }); + internal_static_google_logging_v2_ListLogEntriesResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_logging_v2_ListLogEntriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLogEntriesResponse_descriptor, + new java.lang.String[] { + "Entries", "NextPageToken", + }); + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsRequest_descriptor, + new java.lang.String[] { + "PageSize", "PageToken", + }); + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListMonitoredResourceDescriptorsResponse_descriptor, + new java.lang.String[] { + "ResourceDescriptors", "NextPageToken", + }); + internal_static_google_logging_v2_ListLogsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_logging_v2_ListLogsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLogsRequest_descriptor, + new java.lang.String[] { + "Parent", "ResourceNames", "PageSize", "PageToken", + }); + internal_static_google_logging_v2_ListLogsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_logging_v2_ListLogsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_ListLogsResponse_descriptor, + new java.lang.String[] { + "LogNames", "NextPageToken", + }); + internal_static_google_logging_v2_TailLogEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_TailLogEntriesRequest_descriptor, + new java.lang.String[] { + "ResourceNames", "Filter", "BufferWindow", + }); + internal_static_google_logging_v2_TailLogEntriesResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_TailLogEntriesResponse_descriptor, + new java.lang.String[] { + "Entries", "SuppressionInfo", + }); + internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor = + internal_static_google_logging_v2_TailLogEntriesResponse_descriptor.getNestedTypes().get(0); + internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor, + new java.lang.String[] { + "Reason", "SuppressedCount", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.MonitoredResourceProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.logging.v2.LogEntryProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java index c45419ae6..6823936d1 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.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/logging/v2/logging_config.proto @@ -5,6 +20,8 @@ package com.google.logging.v2; /** + * + * *
  * List of different operation states.
  * High level state of the operation. This is used to report the job's
@@ -15,9 +32,10 @@
  *
  * Protobuf enum {@code google.logging.v2.OperationState}
  */
-public enum OperationState
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum OperationState implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Should not be used.
    * 
@@ -26,6 +44,8 @@ public enum OperationState */ OPERATION_STATE_UNSPECIFIED(0), /** + * + * *
    * The operation is scheduled.
    * 
@@ -34,6 +54,8 @@ public enum OperationState */ OPERATION_STATE_SCHEDULED(1), /** + * + * *
    * Waiting for necessary permissions.
    * 
@@ -42,6 +64,8 @@ public enum OperationState */ OPERATION_STATE_WAITING_FOR_PERMISSIONS(2), /** + * + * *
    * The operation is running.
    * 
@@ -50,6 +74,8 @@ public enum OperationState */ OPERATION_STATE_RUNNING(3), /** + * + * *
    * The operation was completed successfully.
    * 
@@ -58,6 +84,8 @@ public enum OperationState */ OPERATION_STATE_SUCCEEDED(4), /** + * + * *
    * The operation failed.
    * 
@@ -66,6 +94,8 @@ public enum OperationState */ OPERATION_STATE_FAILED(5), /** + * + * *
    * The operation was cancelled by the user.
    * 
@@ -77,6 +107,8 @@ public enum OperationState ; /** + * + * *
    * Should not be used.
    * 
@@ -85,6 +117,8 @@ public enum OperationState */ public static final int OPERATION_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The operation is scheduled.
    * 
@@ -93,6 +127,8 @@ public enum OperationState */ public static final int OPERATION_STATE_SCHEDULED_VALUE = 1; /** + * + * *
    * Waiting for necessary permissions.
    * 
@@ -101,6 +137,8 @@ public enum OperationState */ public static final int OPERATION_STATE_WAITING_FOR_PERMISSIONS_VALUE = 2; /** + * + * *
    * The operation is running.
    * 
@@ -109,6 +147,8 @@ public enum OperationState */ public static final int OPERATION_STATE_RUNNING_VALUE = 3; /** + * + * *
    * The operation was completed successfully.
    * 
@@ -117,6 +157,8 @@ public enum OperationState */ public static final int OPERATION_STATE_SUCCEEDED_VALUE = 4; /** + * + * *
    * The operation failed.
    * 
@@ -125,6 +167,8 @@ public enum OperationState */ public static final int OPERATION_STATE_FAILED_VALUE = 5; /** + * + * *
    * The operation was cancelled by the user.
    * 
@@ -133,7 +177,6 @@ public enum OperationState */ public static final int OPERATION_STATE_CANCELLED_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -158,53 +201,57 @@ public static OperationState valueOf(int value) { */ public static OperationState forNumber(int value) { switch (value) { - case 0: return OPERATION_STATE_UNSPECIFIED; - case 1: return OPERATION_STATE_SCHEDULED; - case 2: return OPERATION_STATE_WAITING_FOR_PERMISSIONS; - case 3: return OPERATION_STATE_RUNNING; - case 4: return OPERATION_STATE_SUCCEEDED; - case 5: return OPERATION_STATE_FAILED; - case 6: return OPERATION_STATE_CANCELLED; - default: return null; + case 0: + return OPERATION_STATE_UNSPECIFIED; + case 1: + return OPERATION_STATE_SCHEDULED; + case 2: + return OPERATION_STATE_WAITING_FOR_PERMISSIONS; + case 3: + return OPERATION_STATE_RUNNING; + case 4: + return OPERATION_STATE_SUCCEEDED; + case 5: + return OPERATION_STATE_FAILED; + case 6: + return OPERATION_STATE_CANCELLED; + 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< - OperationState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OperationState findValueByNumber(int number) { - return OperationState.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 OperationState findValueByNumber(int number) { + return OperationState.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.logging.v2.LoggingConfigProto.getDescriptor().getEnumTypes().get(0); } private static final OperationState[] VALUES = values(); - public static OperationState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static OperationState 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; @@ -220,4 +267,3 @@ private OperationState(int value) { // @@protoc_insertion_point(enum_scope:google.logging.v2.OperationState) } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java similarity index 79% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java index e9b6c53a1..d9cc1dd6a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.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/logging/v2/logging_config.proto @@ -5,6 +20,8 @@ package com.google.logging.v2; /** + * + * *
  * Describes the settings associated with a project, folder, organization,
  * billing account, or flexible resource.
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.logging.v2.Settings}
  */
-public final class Settings extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Settings extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.Settings)
     SettingsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Settings.newBuilder() to construct.
   private Settings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Settings() {
     name_ = "";
     kmsKeyName_ = "";
@@ -30,33 +48,37 @@ private Settings() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Settings();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Settings_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_Settings_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Settings_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_Settings_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.logging.v2.Settings.class, com.google.logging.v2.Settings.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. The resource name of the settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -65,29 +87,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,9 +118,12 @@ public java.lang.String getName() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** + * + * *
    * Optional. The resource name for the configured Cloud KMS key.
    *
@@ -130,6 +155,7 @@ public java.lang.String getName() {
    * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kmsKeyName. */ @java.lang.Override @@ -138,14 +164,15 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** + * + * *
    * Optional. The resource name for the configured Cloud KMS key.
    *
@@ -177,16 +204,15 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -195,9 +221,12 @@ public java.lang.String getKmsKeyName() { } public static final int KMS_SERVICE_ACCOUNT_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object kmsServiceAccountId_ = ""; /** + * + * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -214,6 +243,7 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kmsServiceAccountId. */ @java.lang.Override @@ -222,14 +252,15 @@ public java.lang.String getKmsServiceAccountId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsServiceAccountId_ = s; return s; } } /** + * + * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -246,16 +277,15 @@ public java.lang.String getKmsServiceAccountId() {
    * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kmsServiceAccountId. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsServiceAccountIdBytes() { + public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() { java.lang.Object ref = kmsServiceAccountId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsServiceAccountId_ = b; return b; } else { @@ -264,9 +294,12 @@ public java.lang.String getKmsServiceAccountId() { } public static final int STORAGE_LOCATION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object storageLocation_ = ""; /** + * + * *
    * Optional. The Cloud region that will be used for _Default and _Required log
    * buckets for newly created projects and folders. For example `europe-west1`.
@@ -274,6 +307,7 @@ public java.lang.String getKmsServiceAccountId() {
    * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The storageLocation. */ @java.lang.Override @@ -282,14 +316,15 @@ public java.lang.String getStorageLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageLocation_ = s; return s; } } /** + * + * *
    * Optional. The Cloud region that will be used for _Default and _Required log
    * buckets for newly created projects and folders. For example `europe-west1`.
@@ -297,16 +332,15 @@ public java.lang.String getStorageLocation() {
    * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for storageLocation. */ @java.lang.Override - public com.google.protobuf.ByteString - getStorageLocationBytes() { + public com.google.protobuf.ByteString getStorageLocationBytes() { java.lang.Object ref = storageLocation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storageLocation_ = b; return b; } else { @@ -317,6 +351,8 @@ public java.lang.String getStorageLocation() { public static final int DISABLE_DEFAULT_SINK_FIELD_NUMBER = 5; private boolean disableDefaultSink_ = false; /** + * + * *
    * Optional. If set to true, the _Default sink in newly created projects and
    * folders will created in a disabled state. This can be used to automatically
@@ -325,6 +361,7 @@ public java.lang.String getStorageLocation() {
    * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultSink. */ @java.lang.Override @@ -333,6 +370,7 @@ public boolean getDisableDefaultSink() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,8 +382,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_); } @@ -383,8 +420,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storageLocation_); } if (disableDefaultSink_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, disableDefaultSink_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disableDefaultSink_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -394,23 +430,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.logging.v2.Settings)) { return super.equals(obj); } com.google.logging.v2.Settings other = (com.google.logging.v2.Settings) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; - if (!getKmsServiceAccountId() - .equals(other.getKmsServiceAccountId())) return false; - if (!getStorageLocation() - .equals(other.getStorageLocation())) return false; - if (getDisableDefaultSink() - != other.getDisableDefaultSink()) return false; + if (!getName().equals(other.getName())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsServiceAccountId().equals(other.getKmsServiceAccountId())) return false; + if (!getStorageLocation().equals(other.getStorageLocation())) return false; + if (getDisableDefaultSink() != other.getDisableDefaultSink()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -431,106 +462,109 @@ public int hashCode() { hash = (37 * hash) + STORAGE_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getStorageLocation().hashCode(); hash = (37 * hash) + DISABLE_DEFAULT_SINK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableDefaultSink()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableDefaultSink()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.logging.v2.Settings parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.Settings parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.Settings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.Settings parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.Settings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.Settings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.Settings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.Settings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.Settings 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.logging.v2.Settings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.logging.v2.Settings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.Settings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.Settings parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.logging.v2.Settings parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.Settings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.Settings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes the settings associated with a project, folder, organization,
    * billing account, or flexible resource.
@@ -538,33 +572,31 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.Settings}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.Settings)
       com.google.logging.v2.SettingsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Settings_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_Settings_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Settings_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_Settings_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.logging.v2.Settings.class, com.google.logging.v2.Settings.Builder.class);
     }
 
     // Construct using com.google.logging.v2.Settings.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();
@@ -578,9 +610,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Settings_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_Settings_descriptor;
     }
 
     @java.lang.Override
@@ -600,7 +632,9 @@ public com.google.logging.v2.Settings build() {
     @java.lang.Override
     public com.google.logging.v2.Settings buildPartial() {
       com.google.logging.v2.Settings result = new com.google.logging.v2.Settings(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -628,38 +662,39 @@ private void buildPartial0(com.google.logging.v2.Settings 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.logging.v2.Settings) {
-        return mergeFrom((com.google.logging.v2.Settings)other);
+        return mergeFrom((com.google.logging.v2.Settings) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -717,37 +752,43 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              kmsKeyName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              kmsServiceAccountId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              storageLocation_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 40: {
-              disableDefaultSink_ = input.readBool();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            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:
+              {
+                kmsKeyName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                kmsServiceAccountId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                storageLocation_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 40:
+              {
+                disableDefaultSink_ = input.readBool();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -757,22 +798,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource name of the settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -781,20 +825,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -802,28 +847,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -833,17 +885,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the settings.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -853,6 +909,8 @@ public Builder setNameBytes( private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -884,13 +942,13 @@ public Builder setNameBytes(
      * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -899,6 +957,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -930,15 +990,14 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -946,6 +1005,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -977,18 +1038,22 @@ public java.lang.String getKmsKeyName() {
      * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -1020,6 +1085,7 @@ public Builder setKmsKeyName(
      * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -1029,6 +1095,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -1060,12 +1128,14 @@ public Builder clearKmsKeyName() {
      * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000002; @@ -1075,6 +1145,8 @@ public Builder setKmsKeyNameBytes( private java.lang.Object kmsServiceAccountId_ = ""; /** + * + * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1091,13 +1163,13 @@ public Builder setKmsKeyNameBytes(
      * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kmsServiceAccountId. */ public java.lang.String getKmsServiceAccountId() { java.lang.Object ref = kmsServiceAccountId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsServiceAccountId_ = s; return s; @@ -1106,6 +1178,8 @@ public java.lang.String getKmsServiceAccountId() { } } /** + * + * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1122,15 +1196,14 @@ public java.lang.String getKmsServiceAccountId() {
      * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kmsServiceAccountId. */ - public com.google.protobuf.ByteString - getKmsServiceAccountIdBytes() { + public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() { java.lang.Object ref = kmsServiceAccountId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsServiceAccountId_ = b; return b; } else { @@ -1138,6 +1211,8 @@ public java.lang.String getKmsServiceAccountId() { } } /** + * + * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1154,18 +1229,22 @@ public java.lang.String getKmsServiceAccountId() {
      * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The kmsServiceAccountId to set. * @return This builder for chaining. */ - public Builder setKmsServiceAccountId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsServiceAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsServiceAccountId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1182,6 +1261,7 @@ public Builder setKmsServiceAccountId(
      * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearKmsServiceAccountId() { @@ -1191,6 +1271,8 @@ public Builder clearKmsServiceAccountId() { return this; } /** + * + * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1207,12 +1289,14 @@ public Builder clearKmsServiceAccountId() {
      * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for kmsServiceAccountId to set. * @return This builder for chaining. */ - public Builder setKmsServiceAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsServiceAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsServiceAccountId_ = value; bitField0_ |= 0x00000004; @@ -1222,6 +1306,8 @@ public Builder setKmsServiceAccountIdBytes( private java.lang.Object storageLocation_ = ""; /** + * + * *
      * Optional. The Cloud region that will be used for _Default and _Required log
      * buckets for newly created projects and folders. For example `europe-west1`.
@@ -1229,13 +1315,13 @@ public Builder setKmsServiceAccountIdBytes(
      * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The storageLocation. */ public java.lang.String getStorageLocation() { java.lang.Object ref = storageLocation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); storageLocation_ = s; return s; @@ -1244,6 +1330,8 @@ public java.lang.String getStorageLocation() { } } /** + * + * *
      * Optional. The Cloud region that will be used for _Default and _Required log
      * buckets for newly created projects and folders. For example `europe-west1`.
@@ -1251,15 +1339,14 @@ public java.lang.String getStorageLocation() {
      * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for storageLocation. */ - public com.google.protobuf.ByteString - getStorageLocationBytes() { + public com.google.protobuf.ByteString getStorageLocationBytes() { java.lang.Object ref = storageLocation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); storageLocation_ = b; return b; } else { @@ -1267,6 +1354,8 @@ public java.lang.String getStorageLocation() { } } /** + * + * *
      * Optional. The Cloud region that will be used for _Default and _Required log
      * buckets for newly created projects and folders. For example `europe-west1`.
@@ -1274,18 +1363,22 @@ public java.lang.String getStorageLocation() {
      * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The storageLocation to set. * @return This builder for chaining. */ - public Builder setStorageLocation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStorageLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } storageLocation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. The Cloud region that will be used for _Default and _Required log
      * buckets for newly created projects and folders. For example `europe-west1`.
@@ -1293,6 +1386,7 @@ public Builder setStorageLocation(
      * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearStorageLocation() { @@ -1302,6 +1396,8 @@ public Builder clearStorageLocation() { return this; } /** + * + * *
      * Optional. The Cloud region that will be used for _Default and _Required log
      * buckets for newly created projects and folders. For example `europe-west1`.
@@ -1309,12 +1405,14 @@ public Builder clearStorageLocation() {
      * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for storageLocation to set. * @return This builder for chaining. */ - public Builder setStorageLocationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStorageLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); storageLocation_ = value; bitField0_ |= 0x00000008; @@ -1322,8 +1420,10 @@ public Builder setStorageLocationBytes( return this; } - private boolean disableDefaultSink_ ; + private boolean disableDefaultSink_; /** + * + * *
      * Optional. If set to true, the _Default sink in newly created projects and
      * folders will created in a disabled state. This can be used to automatically
@@ -1332,6 +1432,7 @@ public Builder setStorageLocationBytes(
      * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultSink. */ @java.lang.Override @@ -1339,6 +1440,8 @@ public boolean getDisableDefaultSink() { return disableDefaultSink_; } /** + * + * *
      * Optional. If set to true, the _Default sink in newly created projects and
      * folders will created in a disabled state. This can be used to automatically
@@ -1347,6 +1450,7 @@ public boolean getDisableDefaultSink() {
      * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The disableDefaultSink to set. * @return This builder for chaining. */ @@ -1358,6 +1462,8 @@ public Builder setDisableDefaultSink(boolean value) { return this; } /** + * + * *
      * Optional. If set to true, the _Default sink in newly created projects and
      * folders will created in a disabled state. This can be used to automatically
@@ -1366,6 +1472,7 @@ public Builder setDisableDefaultSink(boolean value) {
      * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisableDefaultSink() { @@ -1374,9 +1481,9 @@ public Builder clearDisableDefaultSink() { 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); } @@ -1386,12 +1493,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.Settings) } // @@protoc_insertion_point(class_scope:google.logging.v2.Settings) private static final com.google.logging.v2.Settings DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.Settings(); } @@ -1400,27 +1507,27 @@ public static com.google.logging.v2.Settings getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Settings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Settings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1435,6 +1542,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.Settings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java similarity index 86% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java index 1f3b2b529..d8919a202 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java @@ -1,34 +1,57 @@ +/* + * 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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface SettingsOrBuilder extends +public interface SettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.Settings) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the settings.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The resource name for the configured Cloud KMS key.
    *
@@ -60,10 +83,13 @@ public interface SettingsOrBuilder extends
    * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
    * Optional. The resource name for the configured Cloud KMS key.
    *
@@ -95,12 +121,14 @@ public interface SettingsOrBuilder extends
    * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); /** + * + * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -117,10 +145,13 @@ public interface SettingsOrBuilder extends
    * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kmsServiceAccountId. */ java.lang.String getKmsServiceAccountId(); /** + * + * *
    * Output only. The service account that will be used by the Log Router to
    * access your Cloud KMS key.
@@ -137,12 +168,14 @@ public interface SettingsOrBuilder extends
    * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kmsServiceAccountId. */ - com.google.protobuf.ByteString - getKmsServiceAccountIdBytes(); + com.google.protobuf.ByteString getKmsServiceAccountIdBytes(); /** + * + * *
    * Optional. The Cloud region that will be used for _Default and _Required log
    * buckets for newly created projects and folders. For example `europe-west1`.
@@ -150,10 +183,13 @@ public interface SettingsOrBuilder extends
    * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The storageLocation. */ java.lang.String getStorageLocation(); /** + * + * *
    * Optional. The Cloud region that will be used for _Default and _Required log
    * buckets for newly created projects and folders. For example `europe-west1`.
@@ -161,12 +197,14 @@ public interface SettingsOrBuilder extends
    * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for storageLocation. */ - com.google.protobuf.ByteString - getStorageLocationBytes(); + com.google.protobuf.ByteString getStorageLocationBytes(); /** + * + * *
    * Optional. If set to true, the _Default sink in newly created projects and
    * folders will created in a disabled state. This can be used to automatically
@@ -175,6 +213,7 @@ public interface SettingsOrBuilder extends
    * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultSink. */ boolean getDisableDefaultSink(); diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java similarity index 77% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java index 03ce6f835..7e3a717c8 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.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/logging/v2/logging.proto @@ -5,53 +20,59 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `TailLogEntries`.
  * 
* * Protobuf type {@code google.logging.v2.TailLogEntriesRequest} */ -public final class TailLogEntriesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TailLogEntriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.TailLogEntriesRequest) TailLogEntriesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TailLogEntriesRequest.newBuilder() to construct. private TailLogEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TailLogEntriesRequest() { - resourceNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); filter_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TailLogEntriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.TailLogEntriesRequest.class, com.google.logging.v2.TailLogEntriesRequest.Builder.class); + com.google.logging.v2.TailLogEntriesRequest.class, + com.google.logging.v2.TailLogEntriesRequest.Builder.class); } private int bitField0_; public static final int RESOURCE_NAMES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -69,13 +90,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList - getResourceNamesList() { + public com.google.protobuf.ProtocolStringList getResourceNamesList() { return resourceNames_; } /** + * + * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -93,12 +116,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** + * + * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -116,6 +142,7 @@ public int getResourceNamesCount() {
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -123,6 +150,8 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -140,18 +169,21 @@ public java.lang.String getResourceNames(int index) {
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString - getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } public static final int FILTER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -161,6 +193,7 @@ public java.lang.String getResourceNames(int index) {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -169,14 +202,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. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -186,16 +220,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -206,6 +239,8 @@ public java.lang.String getFilter() { public static final int BUFFER_WINDOW_FIELD_NUMBER = 3; private com.google.protobuf.Duration bufferWindow_; /** + * + * *
    * Optional. The amount of time to buffer log entries at the server before
    * being returned to prevent out of order results due to late arriving log
@@ -213,7 +248,9 @@ public java.lang.String getFilter() {
    * milliseconds.
    * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bufferWindow field is set. */ @java.lang.Override @@ -221,6 +258,8 @@ public boolean hasBufferWindow() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Optional. The amount of time to buffer log entries at the server before
    * being returned to prevent out of order results due to late arriving log
@@ -228,14 +267,20 @@ public boolean hasBufferWindow() {
    * milliseconds.
    * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bufferWindow. */ @java.lang.Override public com.google.protobuf.Duration getBufferWindow() { - return bufferWindow_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bufferWindow_; + return bufferWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : bufferWindow_; } /** + * + * *
    * Optional. The amount of time to buffer log entries at the server before
    * being returned to prevent out of order results due to late arriving log
@@ -243,14 +288,18 @@ public com.google.protobuf.Duration getBufferWindow() {
    * milliseconds.
    * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getBufferWindowOrBuilder() { - return bufferWindow_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bufferWindow_; + return bufferWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : bufferWindow_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,8 +311,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 < resourceNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceNames_.getRaw(i)); } @@ -294,8 +342,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBufferWindow()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBufferWindow()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -305,21 +352,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.logging.v2.TailLogEntriesRequest)) { return super.equals(obj); } - com.google.logging.v2.TailLogEntriesRequest other = (com.google.logging.v2.TailLogEntriesRequest) obj; + com.google.logging.v2.TailLogEntriesRequest other = + (com.google.logging.v2.TailLogEntriesRequest) obj; - if (!getResourceNamesList() - .equals(other.getResourceNamesList())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getResourceNamesList().equals(other.getResourceNamesList())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (hasBufferWindow() != other.hasBufferWindow()) return false; if (hasBufferWindow()) { - if (!getBufferWindow() - .equals(other.getBufferWindow())) return false; + if (!getBufferWindow().equals(other.getBufferWindow())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -347,120 +392,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.TailLogEntriesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.TailLogEntriesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.TailLogEntriesRequest 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.logging.v2.TailLogEntriesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.TailLogEntriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.TailLogEntriesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.TailLogEntriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `TailLogEntries`.
    * 
* * Protobuf type {@code google.logging.v2.TailLogEntriesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.TailLogEntriesRequest) com.google.logging.v2.TailLogEntriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.TailLogEntriesRequest.class, com.google.logging.v2.TailLogEntriesRequest.Builder.class); + com.google.logging.v2.TailLogEntriesRequest.class, + com.google.logging.v2.TailLogEntriesRequest.Builder.class); } // Construct using com.google.logging.v2.TailLogEntriesRequest.newBuilder() @@ -468,23 +520,22 @@ 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) { getBufferWindowFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - resourceNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); filter_ = ""; bufferWindow_ = null; if (bufferWindowBuilder_ != null) { @@ -495,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; } @java.lang.Override @@ -516,8 +567,11 @@ public com.google.logging.v2.TailLogEntriesRequest build() { @java.lang.Override public com.google.logging.v2.TailLogEntriesRequest buildPartial() { - com.google.logging.v2.TailLogEntriesRequest result = new com.google.logging.v2.TailLogEntriesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.TailLogEntriesRequest result = + new com.google.logging.v2.TailLogEntriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -533,9 +587,8 @@ private void buildPartial0(com.google.logging.v2.TailLogEntriesRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.bufferWindow_ = bufferWindowBuilder_ == null - ? bufferWindow_ - : bufferWindowBuilder_.build(); + result.bufferWindow_ = + bufferWindowBuilder_ == null ? bufferWindow_ : bufferWindowBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -545,38 +598,39 @@ private void buildPartial0(com.google.logging.v2.TailLogEntriesRequest 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.logging.v2.TailLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.TailLogEntriesRequest)other); + return mergeFrom((com.google.logging.v2.TailLogEntriesRequest) other); } else { super.mergeFrom(other); return this; @@ -629,30 +683,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureResourceNamesIsMutable(); - resourceNames_.add(s); - break; - } // case 10 - case 18: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getBufferWindowFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureResourceNamesIsMutable(); + resourceNames_.add(s); + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getBufferWindowFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -662,10 +718,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureResourceNamesIsMutable() { if (!resourceNames_.isModifiable()) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); @@ -673,6 +731,8 @@ private void ensureResourceNamesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -690,14 +750,16 @@ private void ensureResourceNamesIsMutable() {
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the resourceNames. */ - public com.google.protobuf.ProtocolStringList - getResourceNamesList() { + public com.google.protobuf.ProtocolStringList getResourceNamesList() { resourceNames_.makeImmutable(); return resourceNames_; } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -715,12 +777,15 @@ private void ensureResourceNamesIsMutable() {
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of resourceNames. */ public int getResourceNamesCount() { return resourceNames_.size(); } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -738,6 +803,7 @@ public int getResourceNamesCount() {
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The resourceNames at the given index. */ @@ -745,6 +811,8 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -762,14 +830,16 @@ public java.lang.String getResourceNames(int index) {
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - public com.google.protobuf.ByteString - getResourceNamesBytes(int index) { + public com.google.protobuf.ByteString getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -787,13 +857,15 @@ public java.lang.String getResourceNames(int index) {
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The resourceNames to set. * @return This builder for chaining. */ - public Builder setResourceNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setResourceNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceNamesIsMutable(); resourceNames_.set(index, value); bitField0_ |= 0x00000001; @@ -801,6 +873,8 @@ public Builder setResourceNames( return this; } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -818,12 +892,14 @@ public Builder setResourceNames(
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureResourceNamesIsMutable(); resourceNames_.add(value); bitField0_ |= 0x00000001; @@ -831,6 +907,8 @@ public Builder addResourceNames( return this; } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -848,19 +926,20 @@ public Builder addResourceNames(
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The resourceNames to add. * @return This builder for chaining. */ - public Builder addAllResourceNames( - java.lang.Iterable values) { + public Builder addAllResourceNames(java.lang.Iterable values) { ensureResourceNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceNames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceNames_); bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -878,16 +957,19 @@ public Builder addAllResourceNames(
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearResourceNames() { - resourceNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -905,12 +987,14 @@ public Builder clearResourceNames() {
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the resourceNames to add. * @return This builder for chaining. */ - public Builder addResourceNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureResourceNamesIsMutable(); resourceNames_.add(value); @@ -921,6 +1005,8 @@ public Builder addResourceNamesBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -930,13 +1016,13 @@ public Builder addResourceNamesBytes(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -945,6 +1031,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -954,15 +1042,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -970,6 +1057,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -979,18 +1068,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1000,6 +1093,7 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1009,6 +1103,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1018,12 +1114,14 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1033,8 +1131,13 @@ public Builder setFilterBytes( private com.google.protobuf.Duration bufferWindow_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> bufferWindowBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + bufferWindowBuilder_; /** + * + * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1042,13 +1145,17 @@ public Builder setFilterBytes(
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bufferWindow field is set. */ public boolean hasBufferWindow() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1056,17 +1163,23 @@ public boolean hasBufferWindow() {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bufferWindow. */ public com.google.protobuf.Duration getBufferWindow() { if (bufferWindowBuilder_ == null) { - return bufferWindow_ == null ? com.google.protobuf.Duration.getDefaultInstance() : bufferWindow_; + return bufferWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : bufferWindow_; } else { return bufferWindowBuilder_.getMessage(); } } /** + * + * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1074,7 +1187,8 @@ public com.google.protobuf.Duration getBufferWindow() {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBufferWindow(com.google.protobuf.Duration value) { if (bufferWindowBuilder_ == null) { @@ -1090,6 +1204,8 @@ public Builder setBufferWindow(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1097,10 +1213,10 @@ public Builder setBufferWindow(com.google.protobuf.Duration value) {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setBufferWindow( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setBufferWindow(com.google.protobuf.Duration.Builder builderForValue) { if (bufferWindowBuilder_ == null) { bufferWindow_ = builderForValue.build(); } else { @@ -1111,6 +1227,8 @@ public Builder setBufferWindow( return this; } /** + * + * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1118,13 +1236,14 @@ public Builder setBufferWindow(
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeBufferWindow(com.google.protobuf.Duration value) { if (bufferWindowBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - bufferWindow_ != null && - bufferWindow_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && bufferWindow_ != null + && bufferWindow_ != com.google.protobuf.Duration.getDefaultInstance()) { getBufferWindowBuilder().mergeFrom(value); } else { bufferWindow_ = value; @@ -1139,6 +1258,8 @@ public Builder mergeBufferWindow(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1146,7 +1267,8 @@ public Builder mergeBufferWindow(com.google.protobuf.Duration value) {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBufferWindow() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1159,6 +1281,8 @@ public Builder clearBufferWindow() { return this; } /** + * + * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1166,7 +1290,8 @@ public Builder clearBufferWindow() {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getBufferWindowBuilder() { bitField0_ |= 0x00000004; @@ -1174,6 +1299,8 @@ public com.google.protobuf.Duration.Builder getBufferWindowBuilder() { return getBufferWindowFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1181,17 +1308,21 @@ public com.google.protobuf.Duration.Builder getBufferWindowBuilder() {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getBufferWindowOrBuilder() { if (bufferWindowBuilder_ != null) { return bufferWindowBuilder_.getMessageOrBuilder(); } else { - return bufferWindow_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : bufferWindow_; + return bufferWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : bufferWindow_; } } /** + * + * *
      * Optional. The amount of time to buffer log entries at the server before
      * being returned to prevent out of order results due to late arriving log
@@ -1199,24 +1330,28 @@ public com.google.protobuf.DurationOrBuilder getBufferWindowOrBuilder() {
      * milliseconds.
      * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getBufferWindowFieldBuilder() { if (bufferWindowBuilder_ == null) { - bufferWindowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getBufferWindow(), - getParentForChildren(), - isClean()); + bufferWindowBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getBufferWindow(), getParentForChildren(), isClean()); bufferWindow_ = null; } return bufferWindowBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1226,12 +1361,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.TailLogEntriesRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.TailLogEntriesRequest) private static final com.google.logging.v2.TailLogEntriesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.TailLogEntriesRequest(); } @@ -1240,27 +1375,27 @@ public static com.google.logging.v2.TailLogEntriesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TailLogEntriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TailLogEntriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1275,6 +1410,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.TailLogEntriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java similarity index 85% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java index fca2d5505..1b67bdd3e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.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/logging/v2/logging.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface TailLogEntriesRequestOrBuilder extends +public interface TailLogEntriesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.TailLogEntriesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -26,11 +44,13 @@ public interface TailLogEntriesRequestOrBuilder extends
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the resourceNames. */ - java.util.List - getResourceNamesList(); + java.util.List getResourceNamesList(); /** + * + * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -48,10 +68,13 @@ public interface TailLogEntriesRequestOrBuilder extends
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of resourceNames. */ int getResourceNamesCount(); /** + * + * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -69,11 +92,14 @@ public interface TailLogEntriesRequestOrBuilder extends
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The resourceNames at the given index. */ java.lang.String getResourceNames(int index); /** + * + * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -91,13 +117,15 @@ public interface TailLogEntriesRequestOrBuilder extends
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. */ - com.google.protobuf.ByteString - getResourceNamesBytes(int index); + com.google.protobuf.ByteString getResourceNamesBytes(int index); /** + * + * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -107,10 +135,13 @@ public interface TailLogEntriesRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -120,12 +151,14 @@ public interface TailLogEntriesRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. The amount of time to buffer log entries at the server before
    * being returned to prevent out of order results due to late arriving log
@@ -133,11 +166,15 @@ public interface TailLogEntriesRequestOrBuilder extends
    * milliseconds.
    * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bufferWindow field is set. */ boolean hasBufferWindow(); /** + * + * *
    * Optional. The amount of time to buffer log entries at the server before
    * being returned to prevent out of order results due to late arriving log
@@ -145,11 +182,15 @@ public interface TailLogEntriesRequestOrBuilder extends
    * milliseconds.
    * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bufferWindow. */ com.google.protobuf.Duration getBufferWindow(); /** + * + * *
    * Optional. The amount of time to buffer log entries at the server before
    * being returned to prevent out of order results due to late arriving log
@@ -157,7 +198,8 @@ public interface TailLogEntriesRequestOrBuilder extends
    * milliseconds.
    * 
* - * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Duration buffer_window = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getBufferWindowOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java index 6c7ec302e..1f3796f7e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.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/logging/v2/logging.proto @@ -5,21 +20,24 @@ package com.google.logging.v2; /** + * + * *
  * Result returned from `TailLogEntries`.
  * 
* * Protobuf type {@code google.logging.v2.TailLogEntriesResponse} */ -public final class TailLogEntriesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TailLogEntriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.TailLogEntriesResponse) TailLogEntriesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TailLogEntriesResponse.newBuilder() to construct. private TailLogEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TailLogEntriesResponse() { entries_ = java.util.Collections.emptyList(); suppressionInfo_ = java.util.Collections.emptyList(); @@ -27,107 +45,125 @@ private TailLogEntriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TailLogEntriesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.TailLogEntriesResponse.class, com.google.logging.v2.TailLogEntriesResponse.Builder.class); + com.google.logging.v2.TailLogEntriesResponse.class, + com.google.logging.v2.TailLogEntriesResponse.Builder.class); } - public interface SuppressionInfoOrBuilder extends + public interface SuppressionInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.TailLogEntriesResponse.SuppressionInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The reason that entries were omitted from the session.
      * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; + * * @return The enum numeric value on the wire for reason. */ int getReasonValue(); /** + * + * *
      * The reason that entries were omitted from the session.
      * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; + * * @return The reason. */ com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason getReason(); /** + * + * *
      * A lower bound on the count of entries omitted due to `reason`.
      * 
* * int32 suppressed_count = 2; + * * @return The suppressedCount. */ int getSuppressedCount(); } /** + * + * *
    * Information about entries that were omitted from the session.
    * 
* * Protobuf type {@code google.logging.v2.TailLogEntriesResponse.SuppressionInfo} */ - public static final class SuppressionInfo extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SuppressionInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.TailLogEntriesResponse.SuppressionInfo) SuppressionInfoOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SuppressionInfo.newBuilder() to construct. private SuppressionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SuppressionInfo() { reason_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SuppressionInfo(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.class, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder.class); + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.class, + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder.class); } /** + * + * *
      * An indicator of why entries were omitted.
      * 
* * Protobuf enum {@code google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason} */ - public enum Reason - implements com.google.protobuf.ProtocolMessageEnum { + public enum Reason implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Unexpected default.
        * 
@@ -136,6 +172,8 @@ public enum Reason */ REASON_UNSPECIFIED(0), /** + * + * *
        * Indicates suppression occurred due to relevant entries being
        * received in excess of rate limits. For quotas and limits, see
@@ -147,6 +185,8 @@ public enum Reason
        */
       RATE_LIMIT(1),
       /**
+       *
+       *
        * 
        * Indicates suppression occurred due to the client not consuming
        * responses quickly enough.
@@ -159,6 +199,8 @@ public enum Reason
       ;
 
       /**
+       *
+       *
        * 
        * Unexpected default.
        * 
@@ -167,6 +209,8 @@ public enum Reason */ public static final int REASON_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Indicates suppression occurred due to relevant entries being
        * received in excess of rate limits. For quotas and limits, see
@@ -178,6 +222,8 @@ public enum Reason
        */
       public static final int RATE_LIMIT_VALUE = 1;
       /**
+       *
+       *
        * 
        * Indicates suppression occurred due to the client not consuming
        * responses quickly enough.
@@ -187,7 +233,6 @@ public enum Reason
        */
       public static final int NOT_CONSUMED_VALUE = 2;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -212,49 +257,51 @@ public static Reason valueOf(int value) {
        */
       public static Reason forNumber(int value) {
         switch (value) {
-          case 0: return REASON_UNSPECIFIED;
-          case 1: return RATE_LIMIT;
-          case 2: return NOT_CONSUMED;
-          default: return null;
+          case 0:
+            return REASON_UNSPECIFIED;
+          case 1:
+            return RATE_LIMIT;
+          case 2:
+            return NOT_CONSUMED;
+          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<
-          Reason> internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public Reason findValueByNumber(int number) {
-                return Reason.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 Reason findValueByNumber(int number) {
+              return Reason.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.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDescriptor().getEnumTypes().get(0);
+
+      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+        return com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDescriptor()
+            .getEnumTypes()
+            .get(0);
       }
 
       private static final Reason[] VALUES = values();
 
-      public static Reason valueOf(
-          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      public static Reason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
         if (desc.getType() != getDescriptor()) {
-          throw new java.lang.IllegalArgumentException(
-            "EnumValueDescriptor is not for this type.");
+          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
         }
         if (desc.getIndex() == -1) {
           return UNRECOGNIZED;
@@ -274,37 +321,51 @@ private Reason(int value) {
     public static final int REASON_FIELD_NUMBER = 1;
     private int reason_ = 0;
     /**
+     *
+     *
      * 
      * The reason that entries were omitted from the session.
      * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; + * * @return The enum numeric value on the wire for reason. */ - @java.lang.Override public int getReasonValue() { + @java.lang.Override + public int getReasonValue() { return reason_; } /** + * + * *
      * The reason that entries were omitted from the session.
      * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; + * * @return The reason. */ - @java.lang.Override public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason getReason() { - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason result = com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.forNumber(reason_); - return result == null ? com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.UNRECOGNIZED : result; + @java.lang.Override + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason getReason() { + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason result = + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.forNumber(reason_); + return result == null + ? com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.UNRECOGNIZED + : result; } public static final int SUPPRESSED_COUNT_FIELD_NUMBER = 2; private int suppressedCount_ = 0; /** + * + * *
      * A lower bound on the count of entries omitted due to `reason`.
      * 
* * int32 suppressed_count = 2; + * * @return The suppressedCount. */ @java.lang.Override @@ -313,6 +374,7 @@ public int getSuppressedCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,9 +386,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (reason_ != com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.REASON_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (reason_ + != com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.REASON_UNSPECIFIED + .getNumber()) { output.writeEnum(1, reason_); } if (suppressedCount_ != 0) { @@ -341,13 +404,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (reason_ != com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.REASON_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, reason_); + if (reason_ + != com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, reason_); } if (suppressedCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, suppressedCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, suppressedCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -357,16 +420,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo)) { return super.equals(obj); } - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo other = (com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo) obj; + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo other = + (com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo) obj; if (reason_ != other.reason_) return false; - if (getSuppressedCount() - != other.getSuppressedCount()) return false; + if (getSuppressedCount() != other.getSuppressedCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -388,89 +451,94 @@ public int hashCode() { } public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo 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.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo prototype) { + + public static Builder newBuilder( + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -480,39 +548,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about entries that were omitted from the session.
      * 
* * Protobuf type {@code google.logging.v2.TailLogEntriesResponse.SuppressionInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.TailLogEntriesResponse.SuppressionInfo) com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.class, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder.class); + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.class, + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder.class); } // Construct using com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.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(); @@ -523,13 +593,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesResponse_SuppressionInfo_descriptor; } @java.lang.Override - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getDefaultInstanceForType() { + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo + getDefaultInstanceForType() { return com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDefaultInstance(); } @@ -544,13 +615,17 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo build() { @java.lang.Override public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo buildPartial() { - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo result = new com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo result = + new com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo result) { + private void buildPartial0( + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.reason_ = reason_; @@ -564,38 +639,41 @@ private void buildPartial0(com.google.logging.v2.TailLogEntriesResponse.Suppress public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo) { - return mergeFrom((com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo)other); + return mergeFrom((com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo) other); } else { super.mergeFrom(other); return this; @@ -603,7 +681,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo other) { - if (other == com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDefaultInstance()) return this; + if (other + == com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDefaultInstance()) + return this; if (other.reason_ != 0) { setReasonValue(other.getReasonValue()); } @@ -636,22 +716,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - reason_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - suppressedCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + reason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + suppressedCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -661,26 +744,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int reason_ = 0; /** + * + * *
        * The reason that entries were omitted from the session.
        * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; + * * @return The enum numeric value on the wire for reason. */ - @java.lang.Override public int getReasonValue() { + @java.lang.Override + public int getReasonValue() { return reason_; } /** + * + * *
        * The reason that entries were omitted from the session.
        * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; + * * @param value The enum numeric value on the wire for reason to set. * @return This builder for chaining. */ @@ -691,28 +782,38 @@ public Builder setReasonValue(int value) { return this; } /** + * + * *
        * The reason that entries were omitted from the session.
        * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; + * * @return The reason. */ @java.lang.Override public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason getReason() { - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason result = com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.forNumber(reason_); - return result == null ? com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.UNRECOGNIZED : result; + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason result = + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.forNumber(reason_); + return result == null + ? com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.UNRECOGNIZED + : result; } /** + * + * *
        * The reason that entries were omitted from the session.
        * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; + * * @param value The reason to set. * @return This builder for chaining. */ - public Builder setReason(com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason value) { + public Builder setReason( + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason value) { if (value == null) { throw new NullPointerException(); } @@ -722,11 +823,14 @@ public Builder setReason(com.google.logging.v2.TailLogEntriesResponse.Suppressio return this; } /** + * + * *
        * The reason that entries were omitted from the session.
        * 
* * .google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason reason = 1; + * * @return This builder for chaining. */ public Builder clearReason() { @@ -736,13 +840,16 @@ public Builder clearReason() { return this; } - private int suppressedCount_ ; + private int suppressedCount_; /** + * + * *
        * A lower bound on the count of entries omitted due to `reason`.
        * 
* * int32 suppressed_count = 2; + * * @return The suppressedCount. */ @java.lang.Override @@ -750,11 +857,14 @@ public int getSuppressedCount() { return suppressedCount_; } /** + * + * *
        * A lower bound on the count of entries omitted due to `reason`.
        * 
* * int32 suppressed_count = 2; + * * @param value The suppressedCount to set. * @return This builder for chaining. */ @@ -766,11 +876,14 @@ public Builder setSuppressedCount(int value) { return this; } /** + * + * *
        * A lower bound on the count of entries omitted due to `reason`.
        * 
* * int32 suppressed_count = 2; + * * @return This builder for chaining. */ public Builder clearSuppressedCount() { @@ -779,6 +892,7 @@ public Builder clearSuppressedCount() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -791,41 +905,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.TailLogEntriesResponse.SuppressionInfo) } // @@protoc_insertion_point(class_scope:google.logging.v2.TailLogEntriesResponse.SuppressionInfo) - private static final com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo DEFAULT_INSTANCE; + private static final com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo(); } - public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getDefaultInstance() { + public static com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SuppressionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuppressionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -837,16 +954,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getDefaultInstanceForType() { + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ENTRIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List entries_; /** + * + * *
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -860,6 +980,8 @@ public java.util.List getEntriesList() {
     return entries_;
   }
   /**
+   *
+   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -869,11 +991,13 @@ public java.util.List getEntriesList() {
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getEntriesOrBuilderList() {
     return entries_;
   }
   /**
+   *
+   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -887,6 +1011,8 @@ public int getEntriesCount() {
     return entries_.size();
   }
   /**
+   *
+   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -900,6 +1026,8 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
     return entries_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -909,15 +1037,18 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
   @java.lang.Override
-  public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
-      int index) {
+  public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
     return entries_.get(index);
   }
 
   public static final int SUPPRESSION_INFO_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
-  private java.util.List suppressionInfo_;
+  private java.util.List
+      suppressionInfo_;
   /**
+   *
+   *
    * 
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -926,13 +1057,17 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ @java.lang.Override - public java.util.List getSuppressionInfoList() { + public java.util.List + getSuppressionInfoList() { return suppressionInfo_; } /** + * + * *
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -941,14 +1076,18 @@ public java.util.List
    *
-   * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2;
+   * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2;
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder>
       getSuppressionInfoOrBuilderList() {
     return suppressionInfo_;
   }
   /**
+   *
+   *
    * 
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -957,13 +1096,16 @@ public java.util.List
    *
-   * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2;
+   * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2;
+   * 
    */
   @java.lang.Override
   public int getSuppressionInfoCount() {
     return suppressionInfo_.size();
   }
   /**
+   *
+   *
    * 
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -972,13 +1114,17 @@ public int getSuppressionInfoCount() {
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ @java.lang.Override - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressionInfo(int index) { + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressionInfo( + int index) { return suppressionInfo_.get(index); } /** + * + * *
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -987,15 +1133,17 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressi
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ @java.lang.Override - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder getSuppressionInfoOrBuilder( - int index) { + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder + getSuppressionInfoOrBuilder(int index) { return suppressionInfo_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1007,8 +1155,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 < entries_.size(); i++) { output.writeMessage(1, entries_.get(i)); } @@ -1025,12 +1172,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i)); } for (int i = 0; i < suppressionInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, suppressionInfo_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, suppressionInfo_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1040,17 +1185,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.TailLogEntriesResponse)) { return super.equals(obj); } - com.google.logging.v2.TailLogEntriesResponse other = (com.google.logging.v2.TailLogEntriesResponse) obj; + com.google.logging.v2.TailLogEntriesResponse other = + (com.google.logging.v2.TailLogEntriesResponse) obj; - if (!getEntriesList() - .equals(other.getEntriesList())) return false; - if (!getSuppressionInfoList() - .equals(other.getSuppressionInfoList())) return false; + if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getSuppressionInfoList().equals(other.getSuppressionInfoList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1075,132 +1219,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.TailLogEntriesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.TailLogEntriesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.TailLogEntriesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.TailLogEntriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.TailLogEntriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.TailLogEntriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.TailLogEntriesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.TailLogEntriesResponse 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.logging.v2.TailLogEntriesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.TailLogEntriesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.TailLogEntriesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.TailLogEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.TailLogEntriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.TailLogEntriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Result returned from `TailLogEntries`.
    * 
* * Protobuf type {@code google.logging.v2.TailLogEntriesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.TailLogEntriesResponse) com.google.logging.v2.TailLogEntriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.TailLogEntriesResponse.class, com.google.logging.v2.TailLogEntriesResponse.Builder.class); + com.google.logging.v2.TailLogEntriesResponse.class, + com.google.logging.v2.TailLogEntriesResponse.Builder.class); } // Construct using com.google.logging.v2.TailLogEntriesResponse.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(); @@ -1223,9 +1371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesResponse_descriptor; } @java.lang.Override @@ -1244,9 +1392,12 @@ public com.google.logging.v2.TailLogEntriesResponse build() { @java.lang.Override public com.google.logging.v2.TailLogEntriesResponse buildPartial() { - com.google.logging.v2.TailLogEntriesResponse result = new com.google.logging.v2.TailLogEntriesResponse(this); + com.google.logging.v2.TailLogEntriesResponse result = + new com.google.logging.v2.TailLogEntriesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -1280,38 +1431,39 @@ private void buildPartial0(com.google.logging.v2.TailLogEntriesResponse 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.logging.v2.TailLogEntriesResponse) { - return mergeFrom((com.google.logging.v2.TailLogEntriesResponse)other); + return mergeFrom((com.google.logging.v2.TailLogEntriesResponse) other); } else { super.mergeFrom(other); return this; @@ -1338,9 +1490,10 @@ public Builder mergeFrom(com.google.logging.v2.TailLogEntriesResponse other) { entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); - entriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntriesFieldBuilder() : null; + entriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntriesFieldBuilder() + : null; } else { entriesBuilder_.addAllMessages(other.entries_); } @@ -1364,9 +1517,10 @@ public Builder mergeFrom(com.google.logging.v2.TailLogEntriesResponse other) { suppressionInfoBuilder_ = null; suppressionInfo_ = other.suppressionInfo_; bitField0_ = (bitField0_ & ~0x00000002); - suppressionInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSuppressionInfoFieldBuilder() : null; + suppressionInfoBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSuppressionInfoFieldBuilder() + : null; } else { suppressionInfoBuilder_.addAllMessages(other.suppressionInfo_); } @@ -1398,38 +1552,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.logging.v2.LogEntry m = - input.readMessage( - com.google.logging.v2.LogEntry.parser(), - extensionRegistry); - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(m); - } else { - entriesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo m = - input.readMessage( - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.parser(), - extensionRegistry); - if (suppressionInfoBuilder_ == null) { - ensureSuppressionInfoIsMutable(); - suppressionInfo_.add(m); - } else { - suppressionInfoBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.logging.v2.LogEntry m = + input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo m = + input.readMessage( + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.parser(), + extensionRegistry); + if (suppressionInfoBuilder_ == null) { + ensureSuppressionInfoIsMutable(); + suppressionInfo_.add(m); + } else { + suppressionInfoBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1439,21 +1594,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List entries_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder> entriesBuilder_; + com.google.logging.v2.LogEntry, + com.google.logging.v2.LogEntry.Builder, + com.google.logging.v2.LogEntryOrBuilder> + entriesBuilder_; /** + * + * *
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1470,6 +1632,8 @@ public java.util.List getEntriesList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1486,6 +1650,8 @@ public int getEntriesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1502,6 +1668,8 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1510,8 +1678,7 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder setEntries(
-        int index, com.google.logging.v2.LogEntry value) {
+    public Builder setEntries(int index, com.google.logging.v2.LogEntry value) {
       if (entriesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1525,6 +1692,8 @@ public Builder setEntries(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1533,8 +1702,7 @@ public Builder setEntries(
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder setEntries(
-        int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
+    public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
         entries_.set(index, builderForValue.build());
@@ -1545,6 +1713,8 @@ public Builder setEntries(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1567,6 +1737,8 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1575,8 +1747,7 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder addEntries(
-        int index, com.google.logging.v2.LogEntry value) {
+    public Builder addEntries(int index, com.google.logging.v2.LogEntry value) {
       if (entriesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1590,6 +1761,8 @@ public Builder addEntries(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1598,8 +1771,7 @@ public Builder addEntries(
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder addEntries(
-        com.google.logging.v2.LogEntry.Builder builderForValue) {
+    public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
         entries_.add(builderForValue.build());
@@ -1610,6 +1782,8 @@ public Builder addEntries(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1618,8 +1792,7 @@ public Builder addEntries(
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public Builder addEntries(
-        int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
+    public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
         entries_.add(index, builderForValue.build());
@@ -1630,6 +1803,8 @@ public Builder addEntries(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1642,8 +1817,7 @@ public Builder addAllEntries(
         java.lang.Iterable values) {
       if (entriesBuilder_ == null) {
         ensureEntriesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, entries_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_);
         onChanged();
       } else {
         entriesBuilder_.addAllMessages(values);
@@ -1651,6 +1825,8 @@ public Builder addAllEntries(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1670,6 +1846,8 @@ public Builder clearEntries() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1689,6 +1867,8 @@ public Builder removeEntries(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1697,11 +1877,12 @@ public Builder removeEntries(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(
-        int index) {
+    public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) {
       return getEntriesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1710,14 +1891,16 @@ public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
-        int index) {
+    public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
       if (entriesBuilder_ == null) {
-        return entries_.get(index);  } else {
+        return entries_.get(index);
+      } else {
         return entriesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1726,8 +1909,8 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public java.util.List 
-         getEntriesOrBuilderList() {
+    public java.util.List
+        getEntriesOrBuilderList() {
       if (entriesBuilder_ != null) {
         return entriesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1735,6 +1918,8 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1744,10 +1929,12 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
     public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() {
-      return getEntriesFieldBuilder().addBuilder(
-          com.google.logging.v2.LogEntry.getDefaultInstance());
+      return getEntriesFieldBuilder()
+          .addBuilder(com.google.logging.v2.LogEntry.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1756,12 +1943,13 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(
-        int index) {
-      return getEntriesFieldBuilder().addBuilder(
-          index, com.google.logging.v2.LogEntry.getDefaultInstance());
+    public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) {
+      return getEntriesFieldBuilder()
+          .addBuilder(index, com.google.logging.v2.LogEntry.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of log entries. Each response in the stream will order entries with
      * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -1770,38 +1958,48 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public java.util.List 
-         getEntriesBuilderList() {
+    public java.util.List getEntriesBuilderList() {
       return getEntriesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder> 
+            com.google.logging.v2.LogEntry,
+            com.google.logging.v2.LogEntry.Builder,
+            com.google.logging.v2.LogEntryOrBuilder>
         getEntriesFieldBuilder() {
       if (entriesBuilder_ == null) {
-        entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder>(
-                entries_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        entriesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.logging.v2.LogEntry,
+                com.google.logging.v2.LogEntry.Builder,
+                com.google.logging.v2.LogEntryOrBuilder>(
+                entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         entries_ = null;
       }
       return entriesBuilder_;
     }
 
-    private java.util.List suppressionInfo_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        suppressionInfo_ = java.util.Collections.emptyList();
+
     private void ensureSuppressionInfoIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        suppressionInfo_ = new java.util.ArrayList(suppressionInfo_);
+        suppressionInfo_ =
+            new java.util.ArrayList(
+                suppressionInfo_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder> suppressionInfoBuilder_;
+            com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo,
+            com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder,
+            com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder>
+        suppressionInfoBuilder_;
 
     /**
+     *
+     *
      * 
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -1810,9 +2008,12 @@ private void ensureSuppressionInfoIsMutable() {
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ - public java.util.List getSuppressionInfoList() { + public java.util.List + getSuppressionInfoList() { if (suppressionInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(suppressionInfo_); } else { @@ -1820,6 +2021,8 @@ public java.util.List * If entries that otherwise would have been included in the session were not * sent back to the client, counts of relevant entries omitted from the @@ -1828,7 +2031,9 @@ public java.util.List * - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ public int getSuppressionInfoCount() { if (suppressionInfoBuilder_ == null) { @@ -1838,6 +2043,8 @@ public int getSuppressionInfoCount() { } } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -1846,9 +2053,12 @@ public int getSuppressionInfoCount() {
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressionInfo(int index) { + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressionInfo( + int index) { if (suppressionInfoBuilder_ == null) { return suppressionInfo_.get(index); } else { @@ -1856,6 +2066,8 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressi } } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -1864,7 +2076,9 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressi
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ public Builder setSuppressionInfo( int index, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo value) { @@ -1881,6 +2095,8 @@ public Builder setSuppressionInfo( return this; } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -1889,10 +2105,13 @@ public Builder setSuppressionInfo(
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ public Builder setSuppressionInfo( - int index, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder builderForValue) { + int index, + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder builderForValue) { if (suppressionInfoBuilder_ == null) { ensureSuppressionInfoIsMutable(); suppressionInfo_.set(index, builderForValue.build()); @@ -1903,6 +2122,8 @@ public Builder setSuppressionInfo( return this; } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -1911,9 +2132,12 @@ public Builder setSuppressionInfo(
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ - public Builder addSuppressionInfo(com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo value) { + public Builder addSuppressionInfo( + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo value) { if (suppressionInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1927,6 +2151,8 @@ public Builder addSuppressionInfo(com.google.logging.v2.TailLogEntriesResponse.S return this; } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -1935,7 +2161,9 @@ public Builder addSuppressionInfo(com.google.logging.v2.TailLogEntriesResponse.S
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ public Builder addSuppressionInfo( int index, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo value) { @@ -1952,6 +2180,8 @@ public Builder addSuppressionInfo( return this; } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -1960,7 +2190,9 @@ public Builder addSuppressionInfo(
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ public Builder addSuppressionInfo( com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder builderForValue) { @@ -1974,6 +2206,8 @@ public Builder addSuppressionInfo( return this; } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -1982,10 +2216,13 @@ public Builder addSuppressionInfo(
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ public Builder addSuppressionInfo( - int index, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder builderForValue) { + int index, + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder builderForValue) { if (suppressionInfoBuilder_ == null) { ensureSuppressionInfoIsMutable(); suppressionInfo_.add(index, builderForValue.build()); @@ -1996,6 +2233,8 @@ public Builder addSuppressionInfo( return this; } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2004,14 +2243,16 @@ public Builder addSuppressionInfo(
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ public Builder addAllSuppressionInfo( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (suppressionInfoBuilder_ == null) { ensureSuppressionInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, suppressionInfo_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suppressionInfo_); onChanged(); } else { suppressionInfoBuilder_.addAllMessages(values); @@ -2019,6 +2260,8 @@ public Builder addAllSuppressionInfo( return this; } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2027,7 +2270,9 @@ public Builder addAllSuppressionInfo(
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ public Builder clearSuppressionInfo() { if (suppressionInfoBuilder_ == null) { @@ -2040,6 +2285,8 @@ public Builder clearSuppressionInfo() { return this; } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2048,7 +2295,9 @@ public Builder clearSuppressionInfo() {
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ public Builder removeSuppressionInfo(int index) { if (suppressionInfoBuilder_ == null) { @@ -2061,6 +2310,8 @@ public Builder removeSuppressionInfo(int index) { return this; } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2069,13 +2320,17 @@ public Builder removeSuppressionInfo(int index) {
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder getSuppressionInfoBuilder( - int index) { + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder + getSuppressionInfoBuilder(int index) { return getSuppressionInfoFieldBuilder().getBuilder(index); } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2084,16 +2339,21 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder getS
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder getSuppressionInfoOrBuilder( - int index) { + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder + getSuppressionInfoOrBuilder(int index) { if (suppressionInfoBuilder_ == null) { - return suppressionInfo_.get(index); } else { + return suppressionInfo_.get(index); + } else { return suppressionInfoBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2102,10 +2362,13 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder get
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ - public java.util.List - getSuppressionInfoOrBuilderList() { + public java.util.List< + ? extends com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder> + getSuppressionInfoOrBuilderList() { if (suppressionInfoBuilder_ != null) { return suppressionInfoBuilder_.getMessageOrBuilderList(); } else { @@ -2113,6 +2376,8 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder get } } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2121,13 +2386,19 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder get
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder addSuppressionInfoBuilder() { - return getSuppressionInfoFieldBuilder().addBuilder( - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDefaultInstance()); + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder + addSuppressionInfoBuilder() { + return getSuppressionInfoFieldBuilder() + .addBuilder( + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDefaultInstance()); } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2136,14 +2407,20 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder addS
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ - public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder addSuppressionInfoBuilder( - int index) { - return getSuppressionInfoFieldBuilder().addBuilder( - index, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDefaultInstance()); + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder + addSuppressionInfoBuilder(int index) { + return getSuppressionInfoFieldBuilder() + .addBuilder( + index, + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.getDefaultInstance()); } /** + * + * *
      * If entries that otherwise would have been included in the session were not
      * sent back to the client, counts of relevant entries omitted from the
@@ -2152,18 +2429,26 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder addS
      * suppressed entries since the last streamed response.
      * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ - public java.util.List - getSuppressionInfoBuilderList() { + public java.util.List + getSuppressionInfoBuilderList() { return getSuppressionInfoFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder> + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo, + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder, + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder> getSuppressionInfoFieldBuilder() { if (suppressionInfoBuilder_ == null) { - suppressionInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder, com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder>( + suppressionInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo, + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder, + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder>( suppressionInfo_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2172,9 +2457,9 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Builder addS } return suppressionInfoBuilder_; } + @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); } @@ -2184,12 +2469,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.TailLogEntriesResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.TailLogEntriesResponse) private static final com.google.logging.v2.TailLogEntriesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.TailLogEntriesResponse(); } @@ -2198,27 +2483,27 @@ public static com.google.logging.v2.TailLogEntriesResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TailLogEntriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TailLogEntriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2233,6 +2518,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.TailLogEntriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java similarity index 79% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java index 3e1f1a3c4..99b28fc40 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.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/logging/v2/logging.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface TailLogEntriesResponseOrBuilder extends +public interface TailLogEntriesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.TailLogEntriesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -17,9 +35,10 @@ public interface TailLogEntriesResponseOrBuilder extends
    *
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
-  java.util.List 
-      getEntriesList();
+  java.util.List getEntriesList();
   /**
+   *
+   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -30,6 +49,8 @@ public interface TailLogEntriesResponseOrBuilder extends
    */
   com.google.logging.v2.LogEntry getEntries(int index);
   /**
+   *
+   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -40,6 +61,8 @@ public interface TailLogEntriesResponseOrBuilder extends
    */
   int getEntriesCount();
   /**
+   *
+   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -48,9 +71,10 @@ public interface TailLogEntriesResponseOrBuilder extends
    *
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
-  java.util.List 
-      getEntriesOrBuilderList();
+  java.util.List getEntriesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of log entries. Each response in the stream will order entries with
    * increasing values of `LogEntry.timestamp`. Ordering is not guaranteed
@@ -59,10 +83,11 @@ public interface TailLogEntriesResponseOrBuilder extends
    *
    * repeated .google.logging.v2.LogEntry entries = 1;
    */
-  com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
-      int index);
+  com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -71,11 +96,14 @@ com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ - java.util.List + java.util.List getSuppressionInfoList(); /** + * + * *
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -84,10 +112,13 @@ com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo getSuppressionInfo(int index); /** + * + * *
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -96,10 +127,13 @@ com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ int getSuppressionInfoCount(); /** + * + * *
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -108,11 +142,14 @@ com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ - java.util.List + java.util.List getSuppressionInfoOrBuilderList(); /** + * + * *
    * If entries that otherwise would have been included in the session were not
    * sent back to the client, counts of relevant entries omitted from the
@@ -121,7 +158,8 @@ com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * suppressed entries since the last streamed response.
    * 
* - * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * repeated .google.logging.v2.TailLogEntriesResponse.SuppressionInfo suppression_info = 2; + * */ com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder getSuppressionInfoOrBuilder( int index); diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java index 2a33aafb2..68f227239 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.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/logging/v2/logging_config.proto @@ -5,49 +20,56 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `UndeleteBucket`.
  * 
* * Protobuf type {@code google.logging.v2.UndeleteBucketRequest} */ -public final class UndeleteBucketRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UndeleteBucketRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.UndeleteBucketRequest) UndeleteBucketRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UndeleteBucketRequest.newBuilder() to construct. private UndeleteBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UndeleteBucketRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UndeleteBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UndeleteBucketRequest.class, com.google.logging.v2.UndeleteBucketRequest.Builder.class); + com.google.logging.v2.UndeleteBucketRequest.class, + com.google.logging.v2.UndeleteBucketRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The full resource name of the bucket to undelete.
    *
@@ -61,7 +83,10 @@ protected java.lang.Object newInstance(
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * 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 @@ -70,14 +95,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The full resource name of the bucket to undelete.
    *
@@ -91,17 +117,18 @@ public java.lang.String getName() {
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * 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 { @@ -110,6 +137,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +149,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_); } @@ -146,15 +173,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.logging.v2.UndeleteBucketRequest)) { return super.equals(obj); } - com.google.logging.v2.UndeleteBucketRequest other = (com.google.logging.v2.UndeleteBucketRequest) obj; + com.google.logging.v2.UndeleteBucketRequest other = + (com.google.logging.v2.UndeleteBucketRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -173,132 +200,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UndeleteBucketRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.UndeleteBucketRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UndeleteBucketRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UndeleteBucketRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UndeleteBucketRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UndeleteBucketRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UndeleteBucketRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UndeleteBucketRequest 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.logging.v2.UndeleteBucketRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UndeleteBucketRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UndeleteBucketRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UndeleteBucketRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.UndeleteBucketRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UndeleteBucketRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.UndeleteBucketRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `UndeleteBucket`.
    * 
* * Protobuf type {@code google.logging.v2.UndeleteBucketRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UndeleteBucketRequest) com.google.logging.v2.UndeleteBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UndeleteBucketRequest.class, com.google.logging.v2.UndeleteBucketRequest.Builder.class); + com.google.logging.v2.UndeleteBucketRequest.class, + com.google.logging.v2.UndeleteBucketRequest.Builder.class); } // Construct using com.google.logging.v2.UndeleteBucketRequest.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(); @@ -308,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UndeleteBucketRequest_descriptor; } @java.lang.Override @@ -329,8 +360,11 @@ public com.google.logging.v2.UndeleteBucketRequest build() { @java.lang.Override public com.google.logging.v2.UndeleteBucketRequest buildPartial() { - com.google.logging.v2.UndeleteBucketRequest result = new com.google.logging.v2.UndeleteBucketRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.UndeleteBucketRequest result = + new com.google.logging.v2.UndeleteBucketRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -346,38 +380,39 @@ private void buildPartial0(com.google.logging.v2.UndeleteBucketRequest 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.logging.v2.UndeleteBucketRequest) { - return mergeFrom((com.google.logging.v2.UndeleteBucketRequest)other); + return mergeFrom((com.google.logging.v2.UndeleteBucketRequest) other); } else { super.mergeFrom(other); return this; @@ -417,17 +452,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) { @@ -437,10 +474,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -454,14 +494,16 @@ public Builder mergeFrom(
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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; @@ -470,6 +512,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -483,16 +527,17 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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 { @@ -500,6 +545,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -513,19 +560,25 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -539,7 +592,10 @@ public Builder setName(
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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() { @@ -549,6 +605,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -562,22 +620,26 @@ public Builder clearName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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); } @@ -587,12 +649,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.UndeleteBucketRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UndeleteBucketRequest) private static final com.google.logging.v2.UndeleteBucketRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.UndeleteBucketRequest(); } @@ -601,27 +663,27 @@ public static com.google.logging.v2.UndeleteBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,6 +698,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UndeleteBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java index c100b6673..a4e3b327a 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UndeleteBucketRequestOrBuilder extends +public interface UndeleteBucketRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UndeleteBucketRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The full resource name of the bucket to undelete.
    *
@@ -22,11 +40,16 @@ public interface UndeleteBucketRequestOrBuilder extends
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The full resource name of the bucket to undelete.
    *
@@ -40,9 +63,11 @@ public interface UndeleteBucketRequestOrBuilder extends
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * 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/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java index 4aa4aeac4..5a8c72d0c 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.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/logging/v2/logging_config.proto @@ -5,50 +20,57 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `UpdateBucket`.
  * 
* * Protobuf type {@code google.logging.v2.UpdateBucketRequest} */ -public final class UpdateBucketRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateBucketRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateBucketRequest) UpdateBucketRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateBucketRequest.newBuilder() to construct. private UpdateBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateBucketRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateBucketRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateBucketRequest.class, com.google.logging.v2.UpdateBucketRequest.Builder.class); + com.google.logging.v2.UpdateBucketRequest.class, + com.google.logging.v2.UpdateBucketRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The full resource name of the bucket to update.
    *
@@ -62,7 +84,10 @@ protected java.lang.Object newInstance(
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * 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 @@ -71,14 +96,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The full resource name of the bucket to update.
    *
@@ -92,17 +118,18 @@ public java.lang.String getName() {
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * 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 { @@ -113,11 +140,14 @@ public java.lang.String getName() { public static final int BUCKET_FIELD_NUMBER = 2; private com.google.logging.v2.LogBucket bucket_; /** + * + * *
    * Required. The updated bucket.
    * 
* * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the bucket field is set. */ @java.lang.Override @@ -125,11 +155,14 @@ public boolean hasBucket() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The updated bucket.
    * 
* * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucket. */ @java.lang.Override @@ -137,6 +170,8 @@ public com.google.logging.v2.LogBucket getBucket() { return bucket_ == null ? com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; } /** + * + * *
    * Required. The updated bucket.
    * 
@@ -151,6 +186,8 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 4; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Field mask that specifies the fields in `bucket` that need an
    * update. A bucket field will be overwritten if, and only if, it is in the
@@ -162,7 +199,9 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() {
    * For example: `updateMask=retention_days`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -170,6 +209,8 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Required. Field mask that specifies the fields in `bucket` that need an
    * update. A bucket field will be overwritten if, and only if, it is in the
@@ -181,7 +222,9 @@ public boolean hasUpdateMask() {
    * For example: `updateMask=retention_days`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -189,6 +232,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Field mask that specifies the fields in `bucket` that need an
    * update. A bucket field will be overwritten if, and only if, it is in the
@@ -200,7 +245,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * For example: `updateMask=retention_days`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -208,6 +254,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,8 +266,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_); } @@ -243,12 +289,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBucket()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBucket()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -258,24 +302,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.logging.v2.UpdateBucketRequest)) { return super.equals(obj); } - com.google.logging.v2.UpdateBucketRequest other = (com.google.logging.v2.UpdateBucketRequest) obj; + com.google.logging.v2.UpdateBucketRequest other = + (com.google.logging.v2.UpdateBucketRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasBucket() != other.hasBucket()) return false; if (hasBucket()) { - if (!getBucket() - .equals(other.getBucket())) return false; + if (!getBucket().equals(other.getBucket())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -303,120 +345,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateBucketRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateBucketRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateBucketRequest 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.logging.v2.UpdateBucketRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateBucketRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UpdateBucketRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UpdateBucketRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.UpdateBucketRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `UpdateBucket`.
    * 
* * Protobuf type {@code google.logging.v2.UpdateBucketRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateBucketRequest) com.google.logging.v2.UpdateBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateBucketRequest.class, com.google.logging.v2.UpdateBucketRequest.Builder.class); + com.google.logging.v2.UpdateBucketRequest.class, + com.google.logging.v2.UpdateBucketRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateBucketRequest.newBuilder() @@ -424,18 +473,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) { getBucketFieldBuilder(); getUpdateMaskFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -455,9 +504,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateBucketRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateBucketRequest_descriptor; } @java.lang.Override @@ -476,8 +525,11 @@ public com.google.logging.v2.UpdateBucketRequest build() { @java.lang.Override public com.google.logging.v2.UpdateBucketRequest buildPartial() { - com.google.logging.v2.UpdateBucketRequest result = new com.google.logging.v2.UpdateBucketRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.UpdateBucketRequest result = + new com.google.logging.v2.UpdateBucketRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -489,15 +541,11 @@ private void buildPartial0(com.google.logging.v2.UpdateBucketRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.bucket_ = bucketBuilder_ == null - ? bucket_ - : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -507,38 +555,39 @@ private void buildPartial0(com.google.logging.v2.UpdateBucketRequest 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.logging.v2.UpdateBucketRequest) { - return mergeFrom((com.google.logging.v2.UpdateBucketRequest)other); + return mergeFrom((com.google.logging.v2.UpdateBucketRequest) other); } else { super.mergeFrom(other); return this; @@ -584,31 +633,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getBucketFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - 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: + { + input.readMessage(getBucketFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -618,10 +667,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full resource name of the bucket to update.
      *
@@ -635,14 +687,16 @@ public Builder mergeFrom(
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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; @@ -651,6 +705,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to update.
      *
@@ -664,16 +720,17 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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 { @@ -681,6 +738,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to update.
      *
@@ -694,19 +753,25 @@ public java.lang.String getName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the bucket to update.
      *
@@ -720,7 +785,10 @@ public Builder setName(
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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() { @@ -730,6 +798,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The full resource name of the bucket to update.
      *
@@ -743,13 +813,17 @@ public Builder clearName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * 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; @@ -759,24 +833,35 @@ public Builder setNameBytes( private com.google.logging.v2.LogBucket bucket_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder> bucketBuilder_; + com.google.logging.v2.LogBucket, + com.google.logging.v2.LogBucket.Builder, + com.google.logging.v2.LogBucketOrBuilder> + bucketBuilder_; /** + * + * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the bucket field is set. */ public boolean hasBucket() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bucket. */ public com.google.logging.v2.LogBucket getBucket() { @@ -787,11 +872,14 @@ public com.google.logging.v2.LogBucket getBucket() { } } /** + * + * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBucket(com.google.logging.v2.LogBucket value) { if (bucketBuilder_ == null) { @@ -807,14 +895,16 @@ public Builder setBucket(com.google.logging.v2.LogBucket value) { return this; } /** + * + * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBucket( - com.google.logging.v2.LogBucket.Builder builderForValue) { + public Builder setBucket(com.google.logging.v2.LogBucket.Builder builderForValue) { if (bucketBuilder_ == null) { bucket_ = builderForValue.build(); } else { @@ -825,17 +915,20 @@ public Builder setBucket( return this; } /** + * + * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeBucket(com.google.logging.v2.LogBucket value) { if (bucketBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - bucket_ != null && - bucket_ != com.google.logging.v2.LogBucket.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && bucket_ != null + && bucket_ != com.google.logging.v2.LogBucket.getDefaultInstance()) { getBucketBuilder().mergeFrom(value); } else { bucket_ = value; @@ -850,11 +943,14 @@ public Builder mergeBucket(com.google.logging.v2.LogBucket value) { return this; } /** + * + * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000002); @@ -867,11 +963,14 @@ public Builder clearBucket() { return this; } /** + * + * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogBucket.Builder getBucketBuilder() { bitField0_ |= 0x00000002; @@ -879,36 +978,44 @@ public com.google.logging.v2.LogBucket.Builder getBucketBuilder() { return getBucketFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() { if (bucketBuilder_ != null) { return bucketBuilder_.getMessageOrBuilder(); } else { - return bucket_ == null ? - com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; + return bucket_ == null ? com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; } } /** + * + * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder> + com.google.logging.v2.LogBucket, + com.google.logging.v2.LogBucket.Builder, + com.google.logging.v2.LogBucketOrBuilder> getBucketFieldBuilder() { if (bucketBuilder_ == null) { - bucketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogBucket, com.google.logging.v2.LogBucket.Builder, com.google.logging.v2.LogBucketOrBuilder>( - getBucket(), - getParentForChildren(), - isClean()); + bucketBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogBucket, + com.google.logging.v2.LogBucket.Builder, + com.google.logging.v2.LogBucketOrBuilder>( + getBucket(), getParentForChildren(), isClean()); bucket_ = null; } return bucketBuilder_; @@ -916,8 +1023,13 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -929,13 +1041,17 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -947,17 +1063,23 @@ public boolean hasUpdateMask() {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -969,7 +1091,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -985,6 +1108,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -996,10 +1121,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1010,6 +1135,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -1021,13 +1148,14 @@ public Builder setUpdateMask(
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1042,6 +1170,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -1053,7 +1183,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1066,6 +1197,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -1077,7 +1210,8 @@ public Builder clearUpdateMask() {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000004; @@ -1085,6 +1219,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -1096,17 +1232,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Field mask that specifies the fields in `bucket` that need an
      * update. A bucket field will be overwritten if, and only if, it is in the
@@ -1118,24 +1258,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * For example: `updateMask=retention_days`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1145,12 +1289,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateBucketRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateBucketRequest) private static final com.google.logging.v2.UpdateBucketRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.UpdateBucketRequest(); } @@ -1159,27 +1303,27 @@ public static com.google.logging.v2.UpdateBucketRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateBucketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBucketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1194,6 +1338,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java index 92cd82142..29502b73d 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UpdateBucketRequestOrBuilder extends +public interface UpdateBucketRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateBucketRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The full resource name of the bucket to update.
    *
@@ -22,11 +40,16 @@ public interface UpdateBucketRequestOrBuilder extends
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The full resource name of the bucket to update.
    *
@@ -40,31 +63,41 @@ public interface UpdateBucketRequestOrBuilder extends
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The updated bucket.
    * 
* * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the bucket field is set. */ boolean hasBucket(); /** + * + * *
    * Required. The updated bucket.
    * 
* * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucket. */ com.google.logging.v2.LogBucket getBucket(); /** + * + * *
    * Required. The updated bucket.
    * 
@@ -74,6 +107,8 @@ public interface UpdateBucketRequestOrBuilder extends com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder(); /** + * + * *
    * Required. Field mask that specifies the fields in `bucket` that need an
    * update. A bucket field will be overwritten if, and only if, it is in the
@@ -85,11 +120,15 @@ public interface UpdateBucketRequestOrBuilder extends
    * For example: `updateMask=retention_days`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Field mask that specifies the fields in `bucket` that need an
    * update. A bucket field will be overwritten if, and only if, it is in the
@@ -101,11 +140,15 @@ public interface UpdateBucketRequestOrBuilder extends
    * For example: `updateMask=retention_days`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Field mask that specifies the fields in `bucket` that need an
    * update. A bucket field will be overwritten if, and only if, it is in the
@@ -117,7 +160,8 @@ public interface UpdateBucketRequestOrBuilder extends
    * For example: `updateMask=retention_days`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java index 9edca88f4..39ed29039 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.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/logging/v2/logging_config.proto @@ -5,6 +20,8 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to
  * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
@@ -16,44 +33,49 @@
  *
  * Protobuf type {@code google.logging.v2.UpdateCmekSettingsRequest}
  */
-public final class UpdateCmekSettingsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateCmekSettingsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateCmekSettingsRequest)
     UpdateCmekSettingsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateCmekSettingsRequest.newBuilder() to construct.
   private UpdateCmekSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpdateCmekSettingsRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateCmekSettingsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.UpdateCmekSettingsRequest.class, com.google.logging.v2.UpdateCmekSettingsRequest.Builder.class);
+            com.google.logging.v2.UpdateCmekSettingsRequest.class,
+            com.google.logging.v2.UpdateCmekSettingsRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The resource name for the CMEK settings to update.
    *
@@ -72,6 +94,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -80,14 +103,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for the CMEK settings to update.
    *
@@ -106,16 +130,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -126,6 +149,8 @@ public java.lang.String getName() { public static final int CMEK_SETTINGS_FIELD_NUMBER = 2; private com.google.logging.v2.CmekSettings cmekSettings_; /** + * + * *
    * Required. The CMEK settings to update.
    *
@@ -134,7 +159,10 @@ public java.lang.String getName() {
    * for more information.
    * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the cmekSettings field is set. */ @java.lang.Override @@ -142,6 +170,8 @@ public boolean hasCmekSettings() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The CMEK settings to update.
    *
@@ -150,14 +180,21 @@ public boolean hasCmekSettings() {
    * for more information.
    * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The cmekSettings. */ @java.lang.Override public com.google.logging.v2.CmekSettings getCmekSettings() { - return cmekSettings_ == null ? com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_; + return cmekSettings_ == null + ? com.google.logging.v2.CmekSettings.getDefaultInstance() + : cmekSettings_; } /** + * + * *
    * Required. The CMEK settings to update.
    *
@@ -166,16 +203,22 @@ public com.google.logging.v2.CmekSettings getCmekSettings() {
    * for more information.
    * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { - return cmekSettings_ == null ? com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_; + return cmekSettings_ == null + ? com.google.logging.v2.CmekSettings.getDefaultInstance() + : cmekSettings_; } public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Field mask identifying which fields from `cmek_settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -186,7 +229,9 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() {
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -194,6 +239,8 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Optional. Field mask identifying which fields from `cmek_settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -204,7 +251,9 @@ public boolean hasUpdateMask() {
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -212,6 +261,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Field mask identifying which fields from `cmek_settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -222,7 +273,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -230,6 +282,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,8 +294,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_); } @@ -265,12 +317,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCmekSettings()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCmekSettings()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -280,24 +330,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.logging.v2.UpdateCmekSettingsRequest)) { return super.equals(obj); } - com.google.logging.v2.UpdateCmekSettingsRequest other = (com.google.logging.v2.UpdateCmekSettingsRequest) obj; + com.google.logging.v2.UpdateCmekSettingsRequest other = + (com.google.logging.v2.UpdateCmekSettingsRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCmekSettings() != other.hasCmekSettings()) return false; if (hasCmekSettings()) { - if (!getCmekSettings() - .equals(other.getCmekSettings())) return false; + if (!getCmekSettings().equals(other.getCmekSettings())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -325,99 +373,104 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateCmekSettingsRequest 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.logging.v2.UpdateCmekSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateCmekSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UpdateCmekSettingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UpdateCmekSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.UpdateCmekSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to
    * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
@@ -429,21 +482,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.UpdateCmekSettingsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateCmekSettingsRequest)
       com.google.logging.v2.UpdateCmekSettingsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.UpdateCmekSettingsRequest.class, com.google.logging.v2.UpdateCmekSettingsRequest.Builder.class);
+              com.google.logging.v2.UpdateCmekSettingsRequest.class,
+              com.google.logging.v2.UpdateCmekSettingsRequest.Builder.class);
     }
 
     // Construct using com.google.logging.v2.UpdateCmekSettingsRequest.newBuilder()
@@ -451,18 +506,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) {
         getCmekSettingsFieldBuilder();
         getUpdateMaskFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -482,9 +537,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -503,8 +558,11 @@ public com.google.logging.v2.UpdateCmekSettingsRequest build() {
 
     @java.lang.Override
     public com.google.logging.v2.UpdateCmekSettingsRequest buildPartial() {
-      com.google.logging.v2.UpdateCmekSettingsRequest result = new com.google.logging.v2.UpdateCmekSettingsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.logging.v2.UpdateCmekSettingsRequest result =
+          new com.google.logging.v2.UpdateCmekSettingsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -516,15 +574,12 @@ private void buildPartial0(com.google.logging.v2.UpdateCmekSettingsRequest resul
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.cmekSettings_ = cmekSettingsBuilder_ == null
-            ? cmekSettings_
-            : cmekSettingsBuilder_.build();
+        result.cmekSettings_ =
+            cmekSettingsBuilder_ == null ? cmekSettings_ : cmekSettingsBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -534,38 +589,39 @@ private void buildPartial0(com.google.logging.v2.UpdateCmekSettingsRequest resul
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.logging.v2.UpdateCmekSettingsRequest) {
-        return mergeFrom((com.google.logging.v2.UpdateCmekSettingsRequest)other);
+        return mergeFrom((com.google.logging.v2.UpdateCmekSettingsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -573,7 +629,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.logging.v2.UpdateCmekSettingsRequest other) {
-      if (other == com.google.logging.v2.UpdateCmekSettingsRequest.getDefaultInstance()) return this;
+      if (other == com.google.logging.v2.UpdateCmekSettingsRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -611,31 +668,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCmekSettingsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCmekSettingsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -645,10 +702,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for the CMEK settings to update.
      *
@@ -667,13 +727,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -682,6 +742,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -700,15 +762,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -716,6 +777,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -734,18 +797,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -764,6 +831,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -773,6 +841,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -791,12 +861,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -806,8 +878,13 @@ public Builder setNameBytes( private com.google.logging.v2.CmekSettings cmekSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CmekSettings, com.google.logging.v2.CmekSettings.Builder, com.google.logging.v2.CmekSettingsOrBuilder> cmekSettingsBuilder_; + com.google.logging.v2.CmekSettings, + com.google.logging.v2.CmekSettings.Builder, + com.google.logging.v2.CmekSettingsOrBuilder> + cmekSettingsBuilder_; /** + * + * *
      * Required. The CMEK settings to update.
      *
@@ -816,13 +893,18 @@ public Builder setNameBytes(
      * for more information.
      * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the cmekSettings field is set. */ public boolean hasCmekSettings() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The CMEK settings to update.
      *
@@ -831,17 +913,24 @@ public boolean hasCmekSettings() {
      * for more information.
      * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The cmekSettings. */ public com.google.logging.v2.CmekSettings getCmekSettings() { if (cmekSettingsBuilder_ == null) { - return cmekSettings_ == null ? com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_; + return cmekSettings_ == null + ? com.google.logging.v2.CmekSettings.getDefaultInstance() + : cmekSettings_; } else { return cmekSettingsBuilder_.getMessage(); } } /** + * + * *
      * Required. The CMEK settings to update.
      *
@@ -850,7 +939,9 @@ public com.google.logging.v2.CmekSettings getCmekSettings() {
      * for more information.
      * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) { if (cmekSettingsBuilder_ == null) { @@ -866,6 +957,8 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) { return this; } /** + * + * *
      * Required. The CMEK settings to update.
      *
@@ -874,10 +967,11 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) {
      * for more information.
      * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCmekSettings( - com.google.logging.v2.CmekSettings.Builder builderForValue) { + public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builderForValue) { if (cmekSettingsBuilder_ == null) { cmekSettings_ = builderForValue.build(); } else { @@ -888,6 +982,8 @@ public Builder setCmekSettings( return this; } /** + * + * *
      * Required. The CMEK settings to update.
      *
@@ -896,13 +992,15 @@ public Builder setCmekSettings(
      * for more information.
      * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) { if (cmekSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - cmekSettings_ != null && - cmekSettings_ != com.google.logging.v2.CmekSettings.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && cmekSettings_ != null + && cmekSettings_ != com.google.logging.v2.CmekSettings.getDefaultInstance()) { getCmekSettingsBuilder().mergeFrom(value); } else { cmekSettings_ = value; @@ -917,6 +1015,8 @@ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) { return this; } /** + * + * *
      * Required. The CMEK settings to update.
      *
@@ -925,7 +1025,9 @@ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) {
      * for more information.
      * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCmekSettings() { bitField0_ = (bitField0_ & ~0x00000002); @@ -938,6 +1040,8 @@ public Builder clearCmekSettings() { return this; } /** + * + * *
      * Required. The CMEK settings to update.
      *
@@ -946,7 +1050,9 @@ public Builder clearCmekSettings() {
      * for more information.
      * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() { bitField0_ |= 0x00000002; @@ -954,6 +1060,8 @@ public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() { return getCmekSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The CMEK settings to update.
      *
@@ -962,17 +1070,22 @@ public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() {
      * for more information.
      * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { if (cmekSettingsBuilder_ != null) { return cmekSettingsBuilder_.getMessageOrBuilder(); } else { - return cmekSettings_ == null ? - com.google.logging.v2.CmekSettings.getDefaultInstance() : cmekSettings_; + return cmekSettings_ == null + ? com.google.logging.v2.CmekSettings.getDefaultInstance() + : cmekSettings_; } } /** + * + * *
      * Required. The CMEK settings to update.
      *
@@ -981,17 +1094,22 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() {
      * for more information.
      * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CmekSettings, com.google.logging.v2.CmekSettings.Builder, com.google.logging.v2.CmekSettingsOrBuilder> + com.google.logging.v2.CmekSettings, + com.google.logging.v2.CmekSettings.Builder, + com.google.logging.v2.CmekSettingsOrBuilder> getCmekSettingsFieldBuilder() { if (cmekSettingsBuilder_ == null) { - cmekSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.CmekSettings, com.google.logging.v2.CmekSettings.Builder, com.google.logging.v2.CmekSettingsOrBuilder>( - getCmekSettings(), - getParentForChildren(), - isClean()); + cmekSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CmekSettings, + com.google.logging.v2.CmekSettings.Builder, + com.google.logging.v2.CmekSettingsOrBuilder>( + getCmekSettings(), getParentForChildren(), isClean()); cmekSettings_ = null; } return cmekSettingsBuilder_; @@ -999,8 +1117,13 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1011,13 +1134,17 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1028,17 +1155,23 @@ public boolean hasUpdateMask() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1049,7 +1182,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1065,6 +1199,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1075,10 +1211,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1089,6 +1225,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1099,13 +1237,14 @@ public Builder setUpdateMask(
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1120,6 +1259,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1130,7 +1271,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1143,6 +1285,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1153,7 +1297,8 @@ public Builder clearUpdateMask() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000004; @@ -1161,6 +1306,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1171,17 +1318,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. Field mask identifying which fields from `cmek_settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1192,24 +1343,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1219,12 +1374,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateCmekSettingsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateCmekSettingsRequest) private static final com.google.logging.v2.UpdateCmekSettingsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.UpdateCmekSettingsRequest(); } @@ -1233,27 +1388,27 @@ public static com.google.logging.v2.UpdateCmekSettingsRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCmekSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCmekSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1268,6 +1423,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.logging.v2.UpdateCmekSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java index 973acef19..3b39566d1 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UpdateCmekSettingsRequestOrBuilder extends +public interface UpdateCmekSettingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateCmekSettingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for the CMEK settings to update.
    *
@@ -27,10 +45,13 @@ public interface UpdateCmekSettingsRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name for the CMEK settings to update.
    *
@@ -49,12 +70,14 @@ public interface UpdateCmekSettingsRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The CMEK settings to update.
    *
@@ -63,11 +86,16 @@ public interface UpdateCmekSettingsRequestOrBuilder extends
    * for more information.
    * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the cmekSettings field is set. */ boolean hasCmekSettings(); /** + * + * *
    * Required. The CMEK settings to update.
    *
@@ -76,11 +104,16 @@ public interface UpdateCmekSettingsRequestOrBuilder extends
    * for more information.
    * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The cmekSettings. */ com.google.logging.v2.CmekSettings getCmekSettings(); /** + * + * *
    * Required. The CMEK settings to update.
    *
@@ -89,11 +122,15 @@ public interface UpdateCmekSettingsRequestOrBuilder extends
    * for more information.
    * 
* - * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.CmekSettings cmek_settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder(); /** + * + * *
    * Optional. Field mask identifying which fields from `cmek_settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -104,11 +141,15 @@ public interface UpdateCmekSettingsRequestOrBuilder extends
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Field mask identifying which fields from `cmek_settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -119,11 +160,15 @@ public interface UpdateCmekSettingsRequestOrBuilder extends
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Field mask identifying which fields from `cmek_settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -134,7 +179,8 @@ public interface UpdateCmekSettingsRequestOrBuilder extends
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java similarity index 70% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java index 8925c8bf9..f10be6aec 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.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/logging/v2/logging_config.proto @@ -5,50 +20,57 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `UpdateExclusion`.
  * 
* * Protobuf type {@code google.logging.v2.UpdateExclusionRequest} */ -public final class UpdateExclusionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateExclusionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateExclusionRequest) UpdateExclusionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateExclusionRequest.newBuilder() to construct. private UpdateExclusionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateExclusionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateExclusionRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateExclusionRequest.class, com.google.logging.v2.UpdateExclusionRequest.Builder.class); + com.google.logging.v2.UpdateExclusionRequest.class, + com.google.logging.v2.UpdateExclusionRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name of the exclusion to update:
    *
@@ -62,7 +84,10 @@ protected java.lang.Object newInstance(
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * 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 @@ -71,14 +96,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the exclusion to update:
    *
@@ -92,17 +118,18 @@ public java.lang.String getName() {
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * 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 { @@ -113,12 +140,16 @@ public java.lang.String getName() { public static final int EXCLUSION_FIELD_NUMBER = 2; private com.google.logging.v2.LogExclusion exclusion_; /** + * + * *
    * Required. New values for the existing exclusion. Only the fields specified
    * in `update_mask` are relevant.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the exclusion field is set. */ @java.lang.Override @@ -126,34 +157,47 @@ public boolean hasExclusion() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. New values for the existing exclusion. Only the fields specified
    * in `update_mask` are relevant.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The exclusion. */ @java.lang.Override public com.google.logging.v2.LogExclusion getExclusion() { - return exclusion_ == null ? com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; + return exclusion_ == null + ? com.google.logging.v2.LogExclusion.getDefaultInstance() + : exclusion_; } /** + * + * *
    * Required. New values for the existing exclusion. Only the fields specified
    * in `update_mask` are relevant.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { - return exclusion_ == null ? com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; + return exclusion_ == null + ? com.google.logging.v2.LogExclusion.getDefaultInstance() + : exclusion_; } public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
@@ -165,7 +209,9 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() {
    * specify an `update_mask` of `"filter,description"`.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -173,6 +219,8 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
@@ -184,7 +232,9 @@ public boolean hasUpdateMask() {
    * specify an `update_mask` of `"filter,description"`.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -192,6 +242,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
@@ -203,7 +255,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * specify an `update_mask` of `"filter,description"`.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -211,6 +264,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,8 +276,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -246,12 +299,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExclusion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -261,24 +312,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.logging.v2.UpdateExclusionRequest)) { return super.equals(obj); } - com.google.logging.v2.UpdateExclusionRequest other = (com.google.logging.v2.UpdateExclusionRequest) obj; + com.google.logging.v2.UpdateExclusionRequest other = + (com.google.logging.v2.UpdateExclusionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasExclusion() != other.hasExclusion()) return false; if (hasExclusion()) { - if (!getExclusion() - .equals(other.getExclusion())) return false; + if (!getExclusion().equals(other.getExclusion())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -306,120 +355,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateExclusionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateExclusionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateExclusionRequest 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.logging.v2.UpdateExclusionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateExclusionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UpdateExclusionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UpdateExclusionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.UpdateExclusionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `UpdateExclusion`.
    * 
* * Protobuf type {@code google.logging.v2.UpdateExclusionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateExclusionRequest) com.google.logging.v2.UpdateExclusionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateExclusionRequest.class, com.google.logging.v2.UpdateExclusionRequest.Builder.class); + com.google.logging.v2.UpdateExclusionRequest.class, + com.google.logging.v2.UpdateExclusionRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateExclusionRequest.newBuilder() @@ -427,18 +483,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) { getExclusionFieldBuilder(); getUpdateMaskFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +514,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; } @java.lang.Override @@ -479,8 +535,11 @@ public com.google.logging.v2.UpdateExclusionRequest build() { @java.lang.Override public com.google.logging.v2.UpdateExclusionRequest buildPartial() { - com.google.logging.v2.UpdateExclusionRequest result = new com.google.logging.v2.UpdateExclusionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.UpdateExclusionRequest result = + new com.google.logging.v2.UpdateExclusionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -492,15 +551,11 @@ private void buildPartial0(com.google.logging.v2.UpdateExclusionRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.exclusion_ = exclusionBuilder_ == null - ? exclusion_ - : exclusionBuilder_.build(); + result.exclusion_ = exclusionBuilder_ == null ? exclusion_ : exclusionBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -510,38 +565,39 @@ private void buildPartial0(com.google.logging.v2.UpdateExclusionRequest 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.logging.v2.UpdateExclusionRequest) { - return mergeFrom((com.google.logging.v2.UpdateExclusionRequest)other); + return mergeFrom((com.google.logging.v2.UpdateExclusionRequest) other); } else { super.mergeFrom(other); return this; @@ -587,31 +643,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExclusionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExclusionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -621,10 +677,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the exclusion to update:
      *
@@ -638,14 +697,16 @@ public Builder mergeFrom(
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * 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; @@ -654,6 +715,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the exclusion to update:
      *
@@ -667,16 +730,17 @@ public java.lang.String getName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * 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 { @@ -684,6 +748,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the exclusion to update:
      *
@@ -697,19 +763,25 @@ public java.lang.String getName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the exclusion to update:
      *
@@ -723,7 +795,10 @@ public Builder setName(
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * 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() { @@ -733,6 +808,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the exclusion to update:
      *
@@ -746,13 +823,17 @@ public Builder clearName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * 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; @@ -762,42 +843,61 @@ public Builder setNameBytes( private com.google.logging.v2.LogExclusion exclusion_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> exclusionBuilder_; + com.google.logging.v2.LogExclusion, + com.google.logging.v2.LogExclusion.Builder, + com.google.logging.v2.LogExclusionOrBuilder> + exclusionBuilder_; /** + * + * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the exclusion field is set. */ public boolean hasExclusion() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The exclusion. */ public com.google.logging.v2.LogExclusion getExclusion() { if (exclusionBuilder_ == null) { - return exclusion_ == null ? com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; + return exclusion_ == null + ? com.google.logging.v2.LogExclusion.getDefaultInstance() + : exclusion_; } else { return exclusionBuilder_.getMessage(); } } /** + * + * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setExclusion(com.google.logging.v2.LogExclusion value) { if (exclusionBuilder_ == null) { @@ -813,15 +913,18 @@ public Builder setExclusion(com.google.logging.v2.LogExclusion value) { return this; } /** + * + * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setExclusion( - com.google.logging.v2.LogExclusion.Builder builderForValue) { + public Builder setExclusion(com.google.logging.v2.LogExclusion.Builder builderForValue) { if (exclusionBuilder_ == null) { exclusion_ = builderForValue.build(); } else { @@ -832,18 +935,22 @@ public Builder setExclusion( return this; } /** + * + * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeExclusion(com.google.logging.v2.LogExclusion value) { if (exclusionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - exclusion_ != null && - exclusion_ != com.google.logging.v2.LogExclusion.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && exclusion_ != null + && exclusion_ != com.google.logging.v2.LogExclusion.getDefaultInstance()) { getExclusionBuilder().mergeFrom(value); } else { exclusion_ = value; @@ -858,12 +965,16 @@ public Builder mergeExclusion(com.google.logging.v2.LogExclusion value) { return this; } /** + * + * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearExclusion() { bitField0_ = (bitField0_ & ~0x00000002); @@ -876,12 +987,16 @@ public Builder clearExclusion() { return this; } /** + * + * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogExclusion.Builder getExclusionBuilder() { bitField0_ |= 0x00000002; @@ -889,38 +1004,50 @@ public com.google.logging.v2.LogExclusion.Builder getExclusionBuilder() { return getExclusionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { if (exclusionBuilder_ != null) { return exclusionBuilder_.getMessageOrBuilder(); } else { - return exclusion_ == null ? - com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; + return exclusion_ == null + ? com.google.logging.v2.LogExclusion.getDefaultInstance() + : exclusion_; } } /** + * + * *
      * Required. New values for the existing exclusion. Only the fields specified
      * in `update_mask` are relevant.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> + com.google.logging.v2.LogExclusion, + com.google.logging.v2.LogExclusion.Builder, + com.google.logging.v2.LogExclusionOrBuilder> getExclusionFieldBuilder() { if (exclusionBuilder_ == null) { - exclusionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder>( - getExclusion(), - getParentForChildren(), - isClean()); + exclusionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogExclusion, + com.google.logging.v2.LogExclusion.Builder, + com.google.logging.v2.LogExclusionOrBuilder>( + getExclusion(), getParentForChildren(), isClean()); exclusion_ = null; } return exclusionBuilder_; @@ -928,8 +1055,13 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -941,13 +1073,17 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -959,17 +1095,23 @@ public boolean hasUpdateMask() {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -981,7 +1123,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -997,6 +1140,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1008,10 +1153,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1022,6 +1167,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1033,13 +1180,14 @@ public Builder setUpdateMask(
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1054,6 +1202,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1065,7 +1215,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1078,6 +1229,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1089,7 +1242,8 @@ public Builder clearUpdateMask() {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000004; @@ -1097,6 +1251,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1108,17 +1264,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. A non-empty list of fields to change in the existing exclusion.
      * New values for the fields are taken from the corresponding fields in the
@@ -1130,24 +1290,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * specify an `update_mask` of `"filter,description"`.
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1157,12 +1321,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateExclusionRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateExclusionRequest) private static final com.google.logging.v2.UpdateExclusionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.UpdateExclusionRequest(); } @@ -1171,27 +1335,27 @@ public static com.google.logging.v2.UpdateExclusionRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateExclusionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateExclusionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1206,6 +1370,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateExclusionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java index 011e1b62c..62bd8d572 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UpdateExclusionRequestOrBuilder extends +public interface UpdateExclusionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateExclusionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the exclusion to update:
    *
@@ -22,11 +40,16 @@ public interface UpdateExclusionRequestOrBuilder extends
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name of the exclusion to update:
    *
@@ -40,43 +63,58 @@ public interface UpdateExclusionRequestOrBuilder extends
    *   `"projects/my-project/exclusions/my-exclusion"`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. New values for the existing exclusion. Only the fields specified
    * in `update_mask` are relevant.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the exclusion field is set. */ boolean hasExclusion(); /** + * + * *
    * Required. New values for the existing exclusion. Only the fields specified
    * in `update_mask` are relevant.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The exclusion. */ com.google.logging.v2.LogExclusion getExclusion(); /** + * + * *
    * Required. New values for the existing exclusion. Only the fields specified
    * in `update_mask` are relevant.
    * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder(); /** + * + * *
    * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
@@ -88,11 +126,15 @@ public interface UpdateExclusionRequestOrBuilder extends
    * specify an `update_mask` of `"filter,description"`.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
@@ -104,11 +146,15 @@ public interface UpdateExclusionRequestOrBuilder extends
    * specify an `update_mask` of `"filter,description"`.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. A non-empty list of fields to change in the existing exclusion.
    * New values for the fields are taken from the corresponding fields in the
@@ -120,7 +166,8 @@ public interface UpdateExclusionRequestOrBuilder extends
    * specify an `update_mask` of `"filter,description"`.
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java similarity index 67% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java index 6695a1f99..3b73ee70e 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.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/logging/v2/logging_metrics.proto @@ -5,50 +20,57 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to UpdateLogMetric.
  * 
* * Protobuf type {@code google.logging.v2.UpdateLogMetricRequest} */ -public final class UpdateLogMetricRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateLogMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateLogMetricRequest) UpdateLogMetricRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateLogMetricRequest.newBuilder() to construct. private UpdateLogMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateLogMetricRequest() { metricName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateLogMetricRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateLogMetricRequest.class, com.google.logging.v2.UpdateLogMetricRequest.Builder.class); + com.google.logging.v2.UpdateLogMetricRequest.class, + com.google.logging.v2.UpdateLogMetricRequest.Builder.class); } private int bitField0_; public static final int METRIC_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object metricName_ = ""; /** + * + * *
    * Required. The resource name of the metric to update:
    *
@@ -59,7 +81,10 @@ protected java.lang.Object newInstance(
    * does not exist in `[PROJECT_ID]`, then a new metric is created.
    * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The metricName. */ @java.lang.Override @@ -68,14 +93,15 @@ public java.lang.String getMetricName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; } } /** + * + * *
    * Required. The resource name of the metric to update:
    *
@@ -86,17 +112,18 @@ public java.lang.String getMetricName() {
    * does not exist in `[PROJECT_ID]`, then a new metric is created.
    * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for metricName. */ @java.lang.Override - public com.google.protobuf.ByteString - getMetricNameBytes() { + public com.google.protobuf.ByteString getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metricName_ = b; return b; } else { @@ -107,11 +134,14 @@ public java.lang.String getMetricName() { public static final int METRIC_FIELD_NUMBER = 2; private com.google.logging.v2.LogMetric metric_; /** + * + * *
    * Required. The updated metric.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the metric field is set. */ @java.lang.Override @@ -119,11 +149,14 @@ public boolean hasMetric() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The updated metric.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The metric. */ @java.lang.Override @@ -131,6 +164,8 @@ public com.google.logging.v2.LogMetric getMetric() { return metric_ == null ? com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; } /** + * + * *
    * Required. The updated metric.
    * 
@@ -143,6 +178,7 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,8 +190,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(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -175,8 +210,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMetric()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetric()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -186,19 +220,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.logging.v2.UpdateLogMetricRequest)) { return super.equals(obj); } - com.google.logging.v2.UpdateLogMetricRequest other = (com.google.logging.v2.UpdateLogMetricRequest) obj; + com.google.logging.v2.UpdateLogMetricRequest other = + (com.google.logging.v2.UpdateLogMetricRequest) obj; - if (!getMetricName() - .equals(other.getMetricName())) return false; + if (!getMetricName().equals(other.getMetricName())) return false; if (hasMetric() != other.hasMetric()) return false; if (hasMetric()) { - if (!getMetric() - .equals(other.getMetric())) return false; + if (!getMetric().equals(other.getMetric())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -222,120 +255,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateLogMetricRequest 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.logging.v2.UpdateLogMetricRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateLogMetricRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UpdateLogMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UpdateLogMetricRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.UpdateLogMetricRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to UpdateLogMetric.
    * 
* * Protobuf type {@code google.logging.v2.UpdateLogMetricRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateLogMetricRequest) com.google.logging.v2.UpdateLogMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateLogMetricRequest.class, com.google.logging.v2.UpdateLogMetricRequest.Builder.class); + com.google.logging.v2.UpdateLogMetricRequest.class, + com.google.logging.v2.UpdateLogMetricRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateLogMetricRequest.newBuilder() @@ -343,17 +383,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) { getMetricFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -368,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; } @java.lang.Override @@ -389,8 +429,11 @@ public com.google.logging.v2.UpdateLogMetricRequest build() { @java.lang.Override public com.google.logging.v2.UpdateLogMetricRequest buildPartial() { - com.google.logging.v2.UpdateLogMetricRequest result = new com.google.logging.v2.UpdateLogMetricRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.UpdateLogMetricRequest result = + new com.google.logging.v2.UpdateLogMetricRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -402,9 +445,7 @@ private void buildPartial0(com.google.logging.v2.UpdateLogMetricRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.metric_ = metricBuilder_ == null - ? metric_ - : metricBuilder_.build(); + result.metric_ = metricBuilder_ == null ? metric_ : metricBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -414,38 +455,39 @@ private void buildPartial0(com.google.logging.v2.UpdateLogMetricRequest 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.logging.v2.UpdateLogMetricRequest) { - return mergeFrom((com.google.logging.v2.UpdateLogMetricRequest)other); + return mergeFrom((com.google.logging.v2.UpdateLogMetricRequest) other); } else { super.mergeFrom(other); return this; @@ -488,24 +530,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - metricName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getMetricFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + metricName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getMetricFieldBuilder().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) { @@ -515,10 +558,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object metricName_ = ""; /** + * + * *
      * Required. The resource name of the metric to update:
      *
@@ -529,14 +575,16 @@ public Builder mergeFrom(
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The metricName. */ public java.lang.String getMetricName() { java.lang.Object ref = metricName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); metricName_ = s; return s; @@ -545,6 +593,8 @@ public java.lang.String getMetricName() { } } /** + * + * *
      * Required. The resource name of the metric to update:
      *
@@ -555,16 +605,17 @@ public java.lang.String getMetricName() {
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for metricName. */ - public com.google.protobuf.ByteString - getMetricNameBytes() { + public com.google.protobuf.ByteString getMetricNameBytes() { java.lang.Object ref = metricName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); metricName_ = b; return b; } else { @@ -572,6 +623,8 @@ public java.lang.String getMetricName() { } } /** + * + * *
      * Required. The resource name of the metric to update:
      *
@@ -582,19 +635,25 @@ public java.lang.String getMetricName() {
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The metricName to set. * @return This builder for chaining. */ - public Builder setMetricName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMetricName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } metricName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the metric to update:
      *
@@ -605,7 +664,10 @@ public Builder setMetricName(
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearMetricName() { @@ -615,6 +677,8 @@ public Builder clearMetricName() { return this; } /** + * + * *
      * Required. The resource name of the metric to update:
      *
@@ -625,13 +689,17 @@ public Builder clearMetricName() {
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for metricName to set. * @return This builder for chaining. */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); metricName_ = value; bitField0_ |= 0x00000001; @@ -641,24 +709,35 @@ public Builder setMetricNameBytes( private com.google.logging.v2.LogMetric metric_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder> metricBuilder_; + com.google.logging.v2.LogMetric, + com.google.logging.v2.LogMetric.Builder, + com.google.logging.v2.LogMetricOrBuilder> + metricBuilder_; /** + * + * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the metric field is set. */ public boolean hasMetric() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The metric. */ public com.google.logging.v2.LogMetric getMetric() { @@ -669,11 +748,14 @@ public com.google.logging.v2.LogMetric getMetric() { } } /** + * + * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMetric(com.google.logging.v2.LogMetric value) { if (metricBuilder_ == null) { @@ -689,14 +771,16 @@ public Builder setMetric(com.google.logging.v2.LogMetric value) { return this; } /** + * + * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setMetric( - com.google.logging.v2.LogMetric.Builder builderForValue) { + public Builder setMetric(com.google.logging.v2.LogMetric.Builder builderForValue) { if (metricBuilder_ == null) { metric_ = builderForValue.build(); } else { @@ -707,17 +791,20 @@ public Builder setMetric( return this; } /** + * + * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMetric(com.google.logging.v2.LogMetric value) { if (metricBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - metric_ != null && - metric_ != com.google.logging.v2.LogMetric.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && metric_ != null + && metric_ != com.google.logging.v2.LogMetric.getDefaultInstance()) { getMetricBuilder().mergeFrom(value); } else { metric_ = value; @@ -732,11 +819,14 @@ public Builder mergeMetric(com.google.logging.v2.LogMetric value) { return this; } /** + * + * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMetric() { bitField0_ = (bitField0_ & ~0x00000002); @@ -749,11 +839,14 @@ public Builder clearMetric() { return this; } /** + * + * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogMetric.Builder getMetricBuilder() { bitField0_ |= 0x00000002; @@ -761,43 +854,51 @@ public com.google.logging.v2.LogMetric.Builder getMetricBuilder() { return getMetricFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { if (metricBuilder_ != null) { return metricBuilder_.getMessageOrBuilder(); } else { - return metric_ == null ? - com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; + return metric_ == null ? com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; } } /** + * + * *
      * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder> + com.google.logging.v2.LogMetric, + com.google.logging.v2.LogMetric.Builder, + com.google.logging.v2.LogMetricOrBuilder> getMetricFieldBuilder() { if (metricBuilder_ == null) { - metricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogMetric, com.google.logging.v2.LogMetric.Builder, com.google.logging.v2.LogMetricOrBuilder>( - getMetric(), - getParentForChildren(), - isClean()); + metricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogMetric, + com.google.logging.v2.LogMetric.Builder, + com.google.logging.v2.LogMetricOrBuilder>( + getMetric(), getParentForChildren(), isClean()); metric_ = null; } return metricBuilder_; } + @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); } @@ -807,12 +908,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateLogMetricRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateLogMetricRequest) private static final com.google.logging.v2.UpdateLogMetricRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.UpdateLogMetricRequest(); } @@ -821,27 +922,27 @@ public static com.google.logging.v2.UpdateLogMetricRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateLogMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateLogMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -856,6 +957,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateLogMetricRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java index d57d3de99..1d02fd8e6 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.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/logging/v2/logging_metrics.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UpdateLogMetricRequestOrBuilder extends +public interface UpdateLogMetricRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateLogMetricRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name of the metric to update:
    *
@@ -19,11 +37,16 @@ public interface UpdateLogMetricRequestOrBuilder extends
    * does not exist in `[PROJECT_ID]`, then a new metric is created.
    * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The metricName. */ java.lang.String getMetricName(); /** + * + * *
    * Required. The resource name of the metric to update:
    *
@@ -34,31 +57,41 @@ public interface UpdateLogMetricRequestOrBuilder extends
    * does not exist in `[PROJECT_ID]`, then a new metric is created.
    * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for metricName. */ - com.google.protobuf.ByteString - getMetricNameBytes(); + com.google.protobuf.ByteString getMetricNameBytes(); /** + * + * *
    * Required. The updated metric.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the metric field is set. */ boolean hasMetric(); /** + * + * *
    * Required. The updated metric.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The metric. */ com.google.logging.v2.LogMetric getMetric(); /** + * + * *
    * Required. The updated metric.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java index 02433f6de..ca0ea5fe3 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.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/logging/v2/logging_config.proto @@ -5,6 +20,8 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to
  * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings].
@@ -16,44 +33,49 @@
  *
  * Protobuf type {@code google.logging.v2.UpdateSettingsRequest}
  */
-public final class UpdateSettingsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateSettingsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateSettingsRequest)
     UpdateSettingsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateSettingsRequest.newBuilder() to construct.
   private UpdateSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpdateSettingsRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateSettingsRequest();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSettingsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_UpdateSettingsRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable
+    return com.google.logging.v2.LoggingConfigProto
+        .internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.logging.v2.UpdateSettingsRequest.class, com.google.logging.v2.UpdateSettingsRequest.Builder.class);
+            com.google.logging.v2.UpdateSettingsRequest.class,
+            com.google.logging.v2.UpdateSettingsRequest.Builder.class);
   }
 
   private int bitField0_;
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Required. The resource name for the settings to update.
    *
@@ -69,6 +91,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -77,14 +100,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for the settings to update.
    *
@@ -100,16 +124,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -120,6 +143,8 @@ public java.lang.String getName() { public static final int SETTINGS_FIELD_NUMBER = 2; private com.google.logging.v2.Settings settings_; /** + * + * *
    * Required. The settings to update.
    *
@@ -128,7 +153,9 @@ public java.lang.String getName() {
    * for more information.
    * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the settings field is set. */ @java.lang.Override @@ -136,6 +163,8 @@ public boolean hasSettings() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The settings to update.
    *
@@ -144,7 +173,9 @@ public boolean hasSettings() {
    * for more information.
    * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The settings. */ @java.lang.Override @@ -152,6 +183,8 @@ public com.google.logging.v2.Settings getSettings() { return settings_ == null ? com.google.logging.v2.Settings.getDefaultInstance() : settings_; } /** + * + * *
    * Required. The settings to update.
    *
@@ -160,7 +193,8 @@ public com.google.logging.v2.Settings getSettings() {
    * for more information.
    * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() { @@ -170,6 +204,8 @@ public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Field mask identifying which fields from `settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -180,7 +216,9 @@ public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() {
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -188,6 +226,8 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Optional. Field mask identifying which fields from `settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -198,7 +238,9 @@ public boolean hasUpdateMask() {
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -206,6 +248,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Field mask identifying which fields from `settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -216,7 +260,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -224,6 +269,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,8 +281,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_); } @@ -259,12 +304,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSettings()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSettings()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -274,24 +317,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.logging.v2.UpdateSettingsRequest)) { return super.equals(obj); } - com.google.logging.v2.UpdateSettingsRequest other = (com.google.logging.v2.UpdateSettingsRequest) obj; + com.google.logging.v2.UpdateSettingsRequest other = + (com.google.logging.v2.UpdateSettingsRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasSettings() != other.hasSettings()) return false; if (hasSettings()) { - if (!getSettings() - .equals(other.getSettings())) return false; + if (!getSettings().equals(other.getSettings())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -319,99 +360,104 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateSettingsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateSettingsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateSettingsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateSettingsRequest 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.logging.v2.UpdateSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UpdateSettingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UpdateSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.UpdateSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to
    * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings].
@@ -423,21 +469,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.UpdateSettingsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateSettingsRequest)
       com.google.logging.v2.UpdateSettingsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSettingsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_UpdateSettingsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.UpdateSettingsRequest.class, com.google.logging.v2.UpdateSettingsRequest.Builder.class);
+              com.google.logging.v2.UpdateSettingsRequest.class,
+              com.google.logging.v2.UpdateSettingsRequest.Builder.class);
     }
 
     // Construct using com.google.logging.v2.UpdateSettingsRequest.newBuilder()
@@ -445,18 +493,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) {
         getSettingsFieldBuilder();
         getUpdateMaskFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -476,9 +524,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSettingsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_UpdateSettingsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -497,8 +545,11 @@ public com.google.logging.v2.UpdateSettingsRequest build() {
 
     @java.lang.Override
     public com.google.logging.v2.UpdateSettingsRequest buildPartial() {
-      com.google.logging.v2.UpdateSettingsRequest result = new com.google.logging.v2.UpdateSettingsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.logging.v2.UpdateSettingsRequest result =
+          new com.google.logging.v2.UpdateSettingsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -510,15 +561,11 @@ private void buildPartial0(com.google.logging.v2.UpdateSettingsRequest result) {
       }
       int to_bitField0_ = 0;
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.settings_ = settingsBuilder_ == null
-            ? settings_
-            : settingsBuilder_.build();
+        result.settings_ = settingsBuilder_ == null ? settings_ : settingsBuilder_.build();
         to_bitField0_ |= 0x00000001;
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
         to_bitField0_ |= 0x00000002;
       }
       result.bitField0_ |= to_bitField0_;
@@ -528,38 +575,39 @@ private void buildPartial0(com.google.logging.v2.UpdateSettingsRequest 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.logging.v2.UpdateSettingsRequest) {
-        return mergeFrom((com.google.logging.v2.UpdateSettingsRequest)other);
+        return mergeFrom((com.google.logging.v2.UpdateSettingsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -605,31 +653,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getSettingsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateMaskFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getSettingsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -639,10 +687,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for the settings to update.
      *
@@ -658,13 +709,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -673,6 +724,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the settings to update.
      *
@@ -688,15 +741,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -704,6 +756,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the settings to update.
      *
@@ -719,18 +773,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the settings to update.
      *
@@ -746,6 +804,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -755,6 +814,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name for the settings to update.
      *
@@ -770,12 +831,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -785,8 +848,13 @@ public Builder setNameBytes( private com.google.logging.v2.Settings settings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.Settings, com.google.logging.v2.Settings.Builder, com.google.logging.v2.SettingsOrBuilder> settingsBuilder_; + com.google.logging.v2.Settings, + com.google.logging.v2.Settings.Builder, + com.google.logging.v2.SettingsOrBuilder> + settingsBuilder_; /** + * + * *
      * Required. The settings to update.
      *
@@ -795,13 +863,17 @@ public Builder setNameBytes(
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the settings field is set. */ public boolean hasSettings() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The settings to update.
      *
@@ -810,7 +882,9 @@ public boolean hasSettings() {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The settings. */ public com.google.logging.v2.Settings getSettings() { @@ -821,6 +895,8 @@ public com.google.logging.v2.Settings getSettings() { } } /** + * + * *
      * Required. The settings to update.
      *
@@ -829,7 +905,8 @@ public com.google.logging.v2.Settings getSettings() {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSettings(com.google.logging.v2.Settings value) { if (settingsBuilder_ == null) { @@ -845,6 +922,8 @@ public Builder setSettings(com.google.logging.v2.Settings value) { return this; } /** + * + * *
      * Required. The settings to update.
      *
@@ -853,10 +932,10 @@ public Builder setSettings(com.google.logging.v2.Settings value) {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSettings( - com.google.logging.v2.Settings.Builder builderForValue) { + public Builder setSettings(com.google.logging.v2.Settings.Builder builderForValue) { if (settingsBuilder_ == null) { settings_ = builderForValue.build(); } else { @@ -867,6 +946,8 @@ public Builder setSettings( return this; } /** + * + * *
      * Required. The settings to update.
      *
@@ -875,13 +956,14 @@ public Builder setSettings(
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSettings(com.google.logging.v2.Settings value) { if (settingsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - settings_ != null && - settings_ != com.google.logging.v2.Settings.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && settings_ != null + && settings_ != com.google.logging.v2.Settings.getDefaultInstance()) { getSettingsBuilder().mergeFrom(value); } else { settings_ = value; @@ -896,6 +978,8 @@ public Builder mergeSettings(com.google.logging.v2.Settings value) { return this; } /** + * + * *
      * Required. The settings to update.
      *
@@ -904,7 +988,8 @@ public Builder mergeSettings(com.google.logging.v2.Settings value) {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSettings() { bitField0_ = (bitField0_ & ~0x00000002); @@ -917,6 +1002,8 @@ public Builder clearSettings() { return this; } /** + * + * *
      * Required. The settings to update.
      *
@@ -925,7 +1012,8 @@ public Builder clearSettings() {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.Settings.Builder getSettingsBuilder() { bitField0_ |= 0x00000002; @@ -933,6 +1021,8 @@ public com.google.logging.v2.Settings.Builder getSettingsBuilder() { return getSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The settings to update.
      *
@@ -941,17 +1031,19 @@ public com.google.logging.v2.Settings.Builder getSettingsBuilder() {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() { if (settingsBuilder_ != null) { return settingsBuilder_.getMessageOrBuilder(); } else { - return settings_ == null ? - com.google.logging.v2.Settings.getDefaultInstance() : settings_; + return settings_ == null ? com.google.logging.v2.Settings.getDefaultInstance() : settings_; } } /** + * + * *
      * Required. The settings to update.
      *
@@ -960,17 +1052,21 @@ public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() {
      * for more information.
      * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.Settings, com.google.logging.v2.Settings.Builder, com.google.logging.v2.SettingsOrBuilder> + com.google.logging.v2.Settings, + com.google.logging.v2.Settings.Builder, + com.google.logging.v2.SettingsOrBuilder> getSettingsFieldBuilder() { if (settingsBuilder_ == null) { - settingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.Settings, com.google.logging.v2.Settings.Builder, com.google.logging.v2.SettingsOrBuilder>( - getSettings(), - getParentForChildren(), - isClean()); + settingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.Settings, + com.google.logging.v2.Settings.Builder, + com.google.logging.v2.SettingsOrBuilder>( + getSettings(), getParentForChildren(), isClean()); settings_ = null; } return settingsBuilder_; @@ -978,8 +1074,13 @@ public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -990,13 +1091,17 @@ public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1007,17 +1112,23 @@ public boolean hasUpdateMask() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1028,7 +1139,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1044,6 +1156,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1054,10 +1168,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1068,6 +1182,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1078,13 +1194,14 @@ public Builder setUpdateMask(
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1099,6 +1216,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1109,7 +1228,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1122,6 +1242,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1132,7 +1254,8 @@ public Builder clearUpdateMask() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000004; @@ -1140,6 +1263,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1150,17 +1275,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. Field mask identifying which fields from `settings` should
      * be updated. A field will be overwritten if and only if it is in the update
@@ -1171,24 +1300,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * For example: `"updateMask=kmsKeyName"`
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1198,12 +1331,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateSettingsRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateSettingsRequest) private static final com.google.logging.v2.UpdateSettingsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.UpdateSettingsRequest(); } @@ -1212,27 +1345,27 @@ public static com.google.logging.v2.UpdateSettingsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1247,6 +1380,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java index 561f5f9fd..e1f6ecdac 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UpdateSettingsRequestOrBuilder extends +public interface UpdateSettingsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateSettingsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for the settings to update.
    *
@@ -24,10 +42,13 @@ public interface UpdateSettingsRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name for the settings to update.
    *
@@ -43,12 +64,14 @@ public interface UpdateSettingsRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The settings to update.
    *
@@ -57,11 +80,15 @@ public interface UpdateSettingsRequestOrBuilder extends
    * for more information.
    * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the settings field is set. */ boolean hasSettings(); /** + * + * *
    * Required. The settings to update.
    *
@@ -70,11 +97,15 @@ public interface UpdateSettingsRequestOrBuilder extends
    * for more information.
    * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The settings. */ com.google.logging.v2.Settings getSettings(); /** + * + * *
    * Required. The settings to update.
    *
@@ -83,11 +114,14 @@ public interface UpdateSettingsRequestOrBuilder extends
    * for more information.
    * 
* - * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder(); /** + * + * *
    * Optional. Field mask identifying which fields from `settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -98,11 +132,15 @@ public interface UpdateSettingsRequestOrBuilder extends
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Field mask identifying which fields from `settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -113,11 +151,15 @@ public interface UpdateSettingsRequestOrBuilder extends
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Field mask identifying which fields from `settings` should
    * be updated. A field will be overwritten if and only if it is in the update
@@ -128,7 +170,8 @@ public interface UpdateSettingsRequestOrBuilder extends
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java similarity index 77% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java index fa5ab9802..1d3d6e5f9 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.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/logging/v2/logging_config.proto @@ -5,50 +20,57 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `UpdateSink`.
  * 
* * Protobuf type {@code google.logging.v2.UpdateSinkRequest} */ -public final class UpdateSinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateSinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateSinkRequest) UpdateSinkRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateSinkRequest.newBuilder() to construct. private UpdateSinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateSinkRequest() { sinkName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateSinkRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateSinkRequest.class, com.google.logging.v2.UpdateSinkRequest.Builder.class); + com.google.logging.v2.UpdateSinkRequest.class, + com.google.logging.v2.UpdateSinkRequest.Builder.class); } private int bitField0_; public static final int SINK_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object sinkName_ = ""; /** + * + * *
    * Required. The full resource name of the sink to update, including the
    * parent resource and the sink identifier:
@@ -63,7 +85,10 @@ protected java.lang.Object newInstance(
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The sinkName. */ @java.lang.Override @@ -72,14 +97,15 @@ public java.lang.String getSinkName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sinkName_ = s; return s; } } /** + * + * *
    * Required. The full resource name of the sink to update, including the
    * parent resource and the sink identifier:
@@ -94,17 +120,18 @@ public java.lang.String getSinkName() {
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for sinkName. */ @java.lang.Override - public com.google.protobuf.ByteString - getSinkNameBytes() { + public com.google.protobuf.ByteString getSinkNameBytes() { java.lang.Object ref = sinkName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sinkName_ = b; return b; } else { @@ -115,12 +142,15 @@ public java.lang.String getSinkName() { public static final int SINK_FIELD_NUMBER = 2; private com.google.logging.v2.LogSink sink_; /** + * + * *
    * Required. The updated sink, whose name is the same identifier that appears
    * as part of `sink_name`.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the sink field is set. */ @java.lang.Override @@ -128,12 +158,15 @@ public boolean hasSink() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The updated sink, whose name is the same identifier that appears
    * as part of `sink_name`.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sink. */ @java.lang.Override @@ -141,6 +174,8 @@ public com.google.logging.v2.LogSink getSink() { return sink_ == null ? com.google.logging.v2.LogSink.getDefaultInstance() : sink_; } /** + * + * *
    * Required. The updated sink, whose name is the same identifier that appears
    * as part of `sink_name`.
@@ -156,6 +191,8 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
   public static final int UNIQUE_WRITER_IDENTITY_FIELD_NUMBER = 3;
   private boolean uniqueWriterIdentity_ = false;
   /**
+   *
+   *
    * 
    * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
    * for a description of this field. When updating a sink, the effect of this
@@ -171,6 +208,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -181,6 +219,8 @@ public boolean getUniqueWriterIdentity() { public static final int UPDATE_MASK_FIELD_NUMBER = 4; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
@@ -200,7 +240,9 @@ public boolean getUniqueWriterIdentity() {
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -208,6 +250,8 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
@@ -227,7 +271,9 @@ public boolean hasUpdateMask() {
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -235,6 +281,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
@@ -254,7 +302,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -262,6 +311,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +323,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(sinkName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sinkName_); } @@ -300,16 +349,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sinkName_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSink()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSink()); } if (uniqueWriterIdentity_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, uniqueWriterIdentity_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, uniqueWriterIdentity_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -319,26 +365,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.logging.v2.UpdateSinkRequest)) { return super.equals(obj); } com.google.logging.v2.UpdateSinkRequest other = (com.google.logging.v2.UpdateSinkRequest) obj; - if (!getSinkName() - .equals(other.getSinkName())) return false; + if (!getSinkName().equals(other.getSinkName())) return false; if (hasSink() != other.hasSink()) return false; if (hasSink()) { - if (!getSink() - .equals(other.getSink())) return false; + if (!getSink().equals(other.getSink())) return false; } - if (getUniqueWriterIdentity() - != other.getUniqueWriterIdentity()) return false; + if (getUniqueWriterIdentity() != other.getUniqueWriterIdentity()) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -358,8 +400,7 @@ public int hashCode() { hash = (53 * hash) + getSink().hashCode(); } hash = (37 * hash) + UNIQUE_WRITER_IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUniqueWriterIdentity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUniqueWriterIdentity()); if (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); @@ -369,120 +410,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateSinkRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateSinkRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateSinkRequest 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.logging.v2.UpdateSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UpdateSinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UpdateSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.UpdateSinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `UpdateSink`.
    * 
* * Protobuf type {@code google.logging.v2.UpdateSinkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateSinkRequest) com.google.logging.v2.UpdateSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateSinkRequest.class, com.google.logging.v2.UpdateSinkRequest.Builder.class); + com.google.logging.v2.UpdateSinkRequest.class, + com.google.logging.v2.UpdateSinkRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateSinkRequest.newBuilder() @@ -490,18 +538,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) { getSinkFieldBuilder(); getUpdateMaskFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -522,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSinkRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateSinkRequest_descriptor; } @java.lang.Override @@ -543,8 +591,11 @@ public com.google.logging.v2.UpdateSinkRequest build() { @java.lang.Override public com.google.logging.v2.UpdateSinkRequest buildPartial() { - com.google.logging.v2.UpdateSinkRequest result = new com.google.logging.v2.UpdateSinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.UpdateSinkRequest result = + new com.google.logging.v2.UpdateSinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -556,18 +607,14 @@ private void buildPartial0(com.google.logging.v2.UpdateSinkRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.sink_ = sinkBuilder_ == null - ? sink_ - : sinkBuilder_.build(); + result.sink_ = sinkBuilder_ == null ? sink_ : sinkBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.uniqueWriterIdentity_ = uniqueWriterIdentity_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -577,38 +624,39 @@ private void buildPartial0(com.google.logging.v2.UpdateSinkRequest 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.logging.v2.UpdateSinkRequest) { - return mergeFrom((com.google.logging.v2.UpdateSinkRequest)other); + return mergeFrom((com.google.logging.v2.UpdateSinkRequest) other); } else { super.mergeFrom(other); return this; @@ -657,36 +705,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - sinkName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - uniqueWriterIdentity_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + sinkName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + uniqueWriterIdentity_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getUpdateMaskFieldBuilder().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) { @@ -696,10 +745,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object sinkName_ = ""; /** + * + * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -714,14 +766,16 @@ public Builder mergeFrom(
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The sinkName. */ public java.lang.String getSinkName() { java.lang.Object ref = sinkName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sinkName_ = s; return s; @@ -730,6 +784,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -744,16 +800,17 @@ public java.lang.String getSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for sinkName. */ - public com.google.protobuf.ByteString - getSinkNameBytes() { + public com.google.protobuf.ByteString getSinkNameBytes() { java.lang.Object ref = sinkName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sinkName_ = b; return b; } else { @@ -761,6 +818,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -775,19 +834,25 @@ public java.lang.String getSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The sinkName to set. * @return This builder for chaining. */ - public Builder setSinkName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSinkName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sinkName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -802,7 +867,10 @@ public Builder setSinkName(
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSinkName() { @@ -812,6 +880,8 @@ public Builder clearSinkName() { return this; } /** + * + * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -826,13 +896,17 @@ public Builder clearSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for sinkName to set. * @return This builder for chaining. */ - public Builder setSinkNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSinkNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sinkName_ = value; bitField0_ |= 0x00000001; @@ -842,26 +916,35 @@ public Builder setSinkNameBytes( private com.google.logging.v2.LogSink sink_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder> sinkBuilder_; + com.google.logging.v2.LogSink, + com.google.logging.v2.LogSink.Builder, + com.google.logging.v2.LogSinkOrBuilder> + sinkBuilder_; /** + * + * *
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
      * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the sink field is set. */ public boolean hasSink() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
      * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sink. */ public com.google.logging.v2.LogSink getSink() { @@ -872,6 +955,8 @@ public com.google.logging.v2.LogSink getSink() { } } /** + * + * *
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -893,6 +978,8 @@ public Builder setSink(com.google.logging.v2.LogSink value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -900,8 +987,7 @@ public Builder setSink(com.google.logging.v2.LogSink value) {
      *
      * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      */
-    public Builder setSink(
-        com.google.logging.v2.LogSink.Builder builderForValue) {
+    public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) {
       if (sinkBuilder_ == null) {
         sink_ = builderForValue.build();
       } else {
@@ -912,6 +998,8 @@ public Builder setSink(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -921,9 +1009,9 @@ public Builder setSink(
      */
     public Builder mergeSink(com.google.logging.v2.LogSink value) {
       if (sinkBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          sink_ != null &&
-          sink_ != com.google.logging.v2.LogSink.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && sink_ != null
+            && sink_ != com.google.logging.v2.LogSink.getDefaultInstance()) {
           getSinkBuilder().mergeFrom(value);
         } else {
           sink_ = value;
@@ -938,6 +1026,8 @@ public Builder mergeSink(com.google.logging.v2.LogSink value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -956,6 +1046,8 @@ public Builder clearSink() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -969,6 +1061,8 @@ public com.google.logging.v2.LogSink.Builder getSinkBuilder() {
       return getSinkFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -980,11 +1074,12 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
       if (sinkBuilder_ != null) {
         return sinkBuilder_.getMessageOrBuilder();
       } else {
-        return sink_ == null ?
-            com.google.logging.v2.LogSink.getDefaultInstance() : sink_;
+        return sink_ == null ? com.google.logging.v2.LogSink.getDefaultInstance() : sink_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -993,21 +1088,26 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder> 
+            com.google.logging.v2.LogSink,
+            com.google.logging.v2.LogSink.Builder,
+            com.google.logging.v2.LogSinkOrBuilder>
         getSinkFieldBuilder() {
       if (sinkBuilder_ == null) {
-        sinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.logging.v2.LogSink, com.google.logging.v2.LogSink.Builder, com.google.logging.v2.LogSinkOrBuilder>(
-                getSink(),
-                getParentForChildren(),
-                isClean());
+        sinkBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.logging.v2.LogSink,
+                com.google.logging.v2.LogSink.Builder,
+                com.google.logging.v2.LogSinkOrBuilder>(
+                getSink(), getParentForChildren(), isClean());
         sink_ = null;
       }
       return sinkBuilder_;
     }
 
-    private boolean uniqueWriterIdentity_ ;
+    private boolean uniqueWriterIdentity_;
     /**
+     *
+     *
      * 
      * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
      * for a description of this field. When updating a sink, the effect of this
@@ -1023,6 +1123,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -1030,6 +1131,8 @@ public boolean getUniqueWriterIdentity() { return uniqueWriterIdentity_; } /** + * + * *
      * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
      * for a description of this field. When updating a sink, the effect of this
@@ -1045,6 +1148,7 @@ public boolean getUniqueWriterIdentity() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The uniqueWriterIdentity to set. * @return This builder for chaining. */ @@ -1056,6 +1160,8 @@ public Builder setUniqueWriterIdentity(boolean value) { return this; } /** + * + * *
      * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
      * for a description of this field. When updating a sink, the effect of this
@@ -1071,6 +1177,7 @@ public Builder setUniqueWriterIdentity(boolean value) {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUniqueWriterIdentity() { @@ -1082,8 +1189,13 @@ public Builder clearUniqueWriterIdentity() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1103,13 +1215,17 @@ public Builder clearUniqueWriterIdentity() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1129,17 +1245,23 @@ public boolean hasUpdateMask() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1159,7 +1281,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1175,6 +1298,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1194,10 +1319,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -1208,6 +1333,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1227,13 +1354,14 @@ public Builder setUpdateMask(
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1248,6 +1376,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1267,7 +1397,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1280,6 +1411,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1299,7 +1432,8 @@ public Builder clearUpdateMask() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000008; @@ -1307,6 +1441,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1326,17 +1462,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. Field mask that specifies the fields in `sink` that need
      * an update. A sink field will be overwritten if, and only if, it is
@@ -1356,24 +1496,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1383,12 +1527,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateSinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateSinkRequest) private static final com.google.logging.v2.UpdateSinkRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.UpdateSinkRequest(); } @@ -1397,27 +1541,27 @@ public static com.google.logging.v2.UpdateSinkRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1432,6 +1576,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateSinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java similarity index 82% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java index 30d1a3a1a..8fa7af5a1 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UpdateSinkRequestOrBuilder extends +public interface UpdateSinkRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateSinkRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The full resource name of the sink to update, including the
    * parent resource and the sink identifier:
@@ -23,11 +41,16 @@ public interface UpdateSinkRequestOrBuilder extends
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The sinkName. */ java.lang.String getSinkName(); /** + * + * *
    * Required. The full resource name of the sink to update, including the
    * parent resource and the sink identifier:
@@ -42,33 +65,43 @@ public interface UpdateSinkRequestOrBuilder extends
    *   `"projects/my-project/sinks/my-sink"`
    * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for sinkName. */ - com.google.protobuf.ByteString - getSinkNameBytes(); + com.google.protobuf.ByteString getSinkNameBytes(); /** + * + * *
    * Required. The updated sink, whose name is the same identifier that appears
    * as part of `sink_name`.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the sink field is set. */ boolean hasSink(); /** + * + * *
    * Required. The updated sink, whose name is the same identifier that appears
    * as part of `sink_name`.
    * 
* * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The sink. */ com.google.logging.v2.LogSink getSink(); /** + * + * *
    * Required. The updated sink, whose name is the same identifier that appears
    * as part of `sink_name`.
@@ -79,6 +112,8 @@ public interface UpdateSinkRequestOrBuilder extends
   com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder();
 
   /**
+   *
+   *
    * 
    * Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink]
    * for a description of this field. When updating a sink, the effect of this
@@ -94,11 +129,14 @@ public interface UpdateSinkRequestOrBuilder extends
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uniqueWriterIdentity. */ boolean getUniqueWriterIdentity(); /** + * + * *
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
@@ -118,11 +156,15 @@ public interface UpdateSinkRequestOrBuilder extends
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
@@ -142,11 +184,15 @@ public interface UpdateSinkRequestOrBuilder extends
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Field mask that specifies the fields in `sink` that need
    * an update. A sink field will be overwritten if, and only if, it is
@@ -166,7 +212,8 @@ public interface UpdateSinkRequestOrBuilder extends
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java index fa83e3178..72105b830 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.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/logging/v2/logging_config.proto @@ -5,50 +20,57 @@ package com.google.logging.v2; /** + * + * *
  * The parameters to `UpdateView`.
  * 
* * Protobuf type {@code google.logging.v2.UpdateViewRequest} */ -public final class UpdateViewRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateViewRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateViewRequest) UpdateViewRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateViewRequest.newBuilder() to construct. private UpdateViewRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateViewRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateViewRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateViewRequest.class, com.google.logging.v2.UpdateViewRequest.Builder.class); + com.google.logging.v2.UpdateViewRequest.class, + com.google.logging.v2.UpdateViewRequest.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The full resource name of the view to update
    *
@@ -60,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -68,14 +91,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The full resource name of the view to update
    *
@@ -87,16 +111,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -107,11 +130,14 @@ public java.lang.String getName() { public static final int VIEW_FIELD_NUMBER = 2; private com.google.logging.v2.LogView view_; /** + * + * *
    * Required. The updated view.
    * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the view field is set. */ @java.lang.Override @@ -119,11 +145,14 @@ public boolean hasView() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Required. The updated view.
    * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The view. */ @java.lang.Override @@ -131,6 +160,8 @@ public com.google.logging.v2.LogView getView() { return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; } /** + * + * *
    * Required. The updated view.
    * 
@@ -145,6 +176,8 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 4; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Field mask that specifies the fields in `view` that need
    * an update. A field will be overwritten if, and only if, it is
@@ -156,7 +189,9 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() {
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -164,6 +199,8 @@ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Optional. Field mask that specifies the fields in `view` that need
    * an update. A field will be overwritten if, and only if, it is
@@ -175,7 +212,9 @@ public boolean hasUpdateMask() {
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -183,6 +222,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Field mask that specifies the fields in `view` that need
    * an update. A field will be overwritten if, and only if, it is
@@ -194,7 +235,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -202,6 +244,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,8 +256,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_); } @@ -237,12 +279,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getView()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getView()); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -252,24 +292,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.logging.v2.UpdateViewRequest)) { return super.equals(obj); } com.google.logging.v2.UpdateViewRequest other = (com.google.logging.v2.UpdateViewRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasView() != other.hasView()) return false; if (hasView()) { - if (!getView() - .equals(other.getView())) return false; + if (!getView().equals(other.getView())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -297,120 +334,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateViewRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateViewRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateViewRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateViewRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateViewRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateViewRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateViewRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateViewRequest 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.logging.v2.UpdateViewRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateViewRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.UpdateViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.UpdateViewRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.UpdateViewRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateViewRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.UpdateViewRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `UpdateView`.
    * 
* * Protobuf type {@code google.logging.v2.UpdateViewRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateViewRequest) com.google.logging.v2.UpdateViewRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateViewRequest.class, com.google.logging.v2.UpdateViewRequest.Builder.class); + com.google.logging.v2.UpdateViewRequest.class, + com.google.logging.v2.UpdateViewRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateViewRequest.newBuilder() @@ -418,18 +462,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) { getViewFieldBuilder(); getUpdateMaskFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateViewRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateViewRequest_descriptor; } @java.lang.Override @@ -470,8 +514,11 @@ public com.google.logging.v2.UpdateViewRequest build() { @java.lang.Override public com.google.logging.v2.UpdateViewRequest buildPartial() { - com.google.logging.v2.UpdateViewRequest result = new com.google.logging.v2.UpdateViewRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.UpdateViewRequest result = + new com.google.logging.v2.UpdateViewRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -483,15 +530,11 @@ private void buildPartial0(com.google.logging.v2.UpdateViewRequest result) { } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.view_ = viewBuilder_ == null - ? view_ - : viewBuilder_.build(); + result.view_ = viewBuilder_ == null ? view_ : viewBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; @@ -501,38 +544,39 @@ private void buildPartial0(com.google.logging.v2.UpdateViewRequest 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.logging.v2.UpdateViewRequest) { - return mergeFrom((com.google.logging.v2.UpdateViewRequest)other); + return mergeFrom((com.google.logging.v2.UpdateViewRequest) other); } else { super.mergeFrom(other); return this; @@ -578,31 +622,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getViewFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - 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: + { + input.readMessage(getViewFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -612,10 +656,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full resource name of the view to update
      *
@@ -627,13 +674,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -642,6 +689,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the view to update
      *
@@ -653,15 +702,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -669,6 +717,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the view to update
      *
@@ -680,18 +730,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the view to update
      *
@@ -703,6 +757,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -712,6 +767,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The full resource name of the view to update
      *
@@ -723,12 +780,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -738,24 +797,33 @@ public Builder setNameBytes( private com.google.logging.v2.LogView view_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder> viewBuilder_; + com.google.logging.v2.LogView, + com.google.logging.v2.LogView.Builder, + com.google.logging.v2.LogViewOrBuilder> + viewBuilder_; /** + * + * *
      * Required. The updated view.
      * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the view field is set. */ public boolean hasView() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The updated view.
      * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The view. */ public com.google.logging.v2.LogView getView() { @@ -766,6 +834,8 @@ public com.google.logging.v2.LogView getView() { } } /** + * + * *
      * Required. The updated view.
      * 
@@ -786,14 +856,15 @@ public Builder setView(com.google.logging.v2.LogView value) { return this; } /** + * + * *
      * Required. The updated view.
      * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setView( - com.google.logging.v2.LogView.Builder builderForValue) { + public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { if (viewBuilder_ == null) { view_ = builderForValue.build(); } else { @@ -804,6 +875,8 @@ public Builder setView( return this; } /** + * + * *
      * Required. The updated view.
      * 
@@ -812,9 +885,9 @@ public Builder setView( */ public Builder mergeView(com.google.logging.v2.LogView value) { if (viewBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - view_ != null && - view_ != com.google.logging.v2.LogView.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && view_ != null + && view_ != com.google.logging.v2.LogView.getDefaultInstance()) { getViewBuilder().mergeFrom(value); } else { view_ = value; @@ -829,6 +902,8 @@ public Builder mergeView(com.google.logging.v2.LogView value) { return this; } /** + * + * *
      * Required. The updated view.
      * 
@@ -846,6 +921,8 @@ public Builder clearView() { return this; } /** + * + * *
      * Required. The updated view.
      * 
@@ -858,6 +935,8 @@ public com.google.logging.v2.LogView.Builder getViewBuilder() { return getViewFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated view.
      * 
@@ -868,11 +947,12 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { if (viewBuilder_ != null) { return viewBuilder_.getMessageOrBuilder(); } else { - return view_ == null ? - com.google.logging.v2.LogView.getDefaultInstance() : view_; + return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; } } /** + * + * *
      * Required. The updated view.
      * 
@@ -880,14 +960,17 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder> + com.google.logging.v2.LogView, + com.google.logging.v2.LogView.Builder, + com.google.logging.v2.LogViewOrBuilder> getViewFieldBuilder() { if (viewBuilder_ == null) { - viewBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogView, com.google.logging.v2.LogView.Builder, com.google.logging.v2.LogViewOrBuilder>( - getView(), - getParentForChildren(), - isClean()); + viewBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogView, + com.google.logging.v2.LogView.Builder, + com.google.logging.v2.LogViewOrBuilder>( + getView(), getParentForChildren(), isClean()); view_ = null; } return viewBuilder_; @@ -895,8 +978,13 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -908,13 +996,17 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -926,17 +1018,23 @@ public boolean hasUpdateMask() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -948,7 +1046,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -964,6 +1063,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -975,10 +1076,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -989,6 +1090,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -1000,13 +1103,14 @@ public Builder setUpdateMask(
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -1021,6 +1125,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -1032,7 +1138,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1045,6 +1152,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -1056,7 +1165,8 @@ public Builder clearUpdateMask() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000004; @@ -1064,6 +1174,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -1075,17 +1187,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. Field mask that specifies the fields in `view` that need
      * an update. A field will be overwritten if, and only if, it is
@@ -1097,24 +1213,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * For example: `updateMask=filter`
      * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1124,12 +1244,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateViewRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateViewRequest) private static final com.google.logging.v2.UpdateViewRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.UpdateViewRequest(); } @@ -1138,27 +1258,27 @@ public static com.google.logging.v2.UpdateViewRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateViewRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateViewRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1173,6 +1293,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateViewRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java index 2fa6c5476..76df75a19 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.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/logging/v2/logging_config.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface UpdateViewRequestOrBuilder extends +public interface UpdateViewRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateViewRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The full resource name of the view to update
    *
@@ -20,10 +38,13 @@ public interface UpdateViewRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The full resource name of the view to update
    *
@@ -35,30 +56,38 @@ public interface UpdateViewRequestOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The updated view.
    * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the view field is set. */ boolean hasView(); /** + * + * *
    * Required. The updated view.
    * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The view. */ com.google.logging.v2.LogView getView(); /** + * + * *
    * Required. The updated view.
    * 
@@ -68,6 +97,8 @@ public interface UpdateViewRequestOrBuilder extends com.google.logging.v2.LogViewOrBuilder getViewOrBuilder(); /** + * + * *
    * Optional. Field mask that specifies the fields in `view` that need
    * an update. A field will be overwritten if, and only if, it is
@@ -79,11 +110,15 @@ public interface UpdateViewRequestOrBuilder extends
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Field mask that specifies the fields in `view` that need
    * an update. A field will be overwritten if, and only if, it is
@@ -95,11 +130,15 @@ public interface UpdateViewRequestOrBuilder extends
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Field mask that specifies the fields in `view` that need
    * an update. A field will be overwritten if, and only if, it is
@@ -111,7 +150,8 @@ public interface UpdateViewRequestOrBuilder extends
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java similarity index 66% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java index 1553066c1..dd8276d23 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.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/logging/v2/logging.proto @@ -5,34 +20,35 @@ package com.google.logging.v2; /** + * + * *
  * Error details for WriteLogEntries with partial success.
  * 
* * Protobuf type {@code google.logging.v2.WriteLogEntriesPartialErrors} */ -public final class WriteLogEntriesPartialErrors extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WriteLogEntriesPartialErrors extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.WriteLogEntriesPartialErrors) WriteLogEntriesPartialErrorsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WriteLogEntriesPartialErrors.newBuilder() to construct. private WriteLogEntriesPartialErrors(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WriteLogEntriesPartialErrors() { - } + + private WriteLogEntriesPartialErrors() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WriteLogEntriesPartialErrors(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -43,45 +59,53 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 1: return internalGetLogEntryErrors(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.WriteLogEntriesPartialErrors.class, com.google.logging.v2.WriteLogEntriesPartialErrors.Builder.class); + com.google.logging.v2.WriteLogEntriesPartialErrors.class, + com.google.logging.v2.WriteLogEntriesPartialErrors.Builder.class); } public static final int LOG_ENTRY_ERRORS_FIELD_NUMBER = 1; + private static final class LogEntryErrorsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.Integer, com.google.rpc.Status> defaultEntry = + static final com.google.protobuf.MapEntry + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.INT32, - 0, - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.rpc.Status.getDefaultInstance()); + .newDefaultInstance( + com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesPartialErrors_LogEntryErrorsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.INT32, + 0, + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.rpc.Status.getDefaultInstance()); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.Integer, com.google.rpc.Status> logEntryErrors_; + private com.google.protobuf.MapField logEntryErrors_; + private com.google.protobuf.MapField - internalGetLogEntryErrors() { + internalGetLogEntryErrors() { if (logEntryErrors_ == null) { return com.google.protobuf.MapField.emptyMapField( LogEntryErrorsDefaultEntryHolder.defaultEntry); } return logEntryErrors_; } + public int getLogEntryErrorsCount() { return internalGetLogEntryErrors().getMap().size(); } /** + * + * *
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -94,20 +118,19 @@ public int getLogEntryErrorsCount() {
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
   @java.lang.Override
-  public boolean containsLogEntryErrors(
-      int key) {
+  public boolean containsLogEntryErrors(int key) {
 
     return internalGetLogEntryErrors().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLogEntryErrorsMap()} instead.
-   */
+  /** Use {@link #getLogEntryErrorsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLogEntryErrors() {
     return getLogEntryErrorsMap();
   }
   /**
+   *
+   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -124,6 +147,8 @@ public java.util.Map getLogEntryErrors
     return internalGetLogEntryErrors().getMap();
   }
   /**
+   *
+   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -136,17 +161,18 @@ public java.util.Map getLogEntryErrors
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
   @java.lang.Override
-  public /* nullable */
-com.google.rpc.Status getLogEntryErrorsOrDefault(
+  public /* nullable */ com.google.rpc.Status getLogEntryErrorsOrDefault(
       int key,
       /* nullable */
-com.google.rpc.Status defaultValue) {
+      com.google.rpc.Status defaultValue) {
 
     java.util.Map map =
         internalGetLogEntryErrors().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -159,8 +185,7 @@ com.google.rpc.Status getLogEntryErrorsOrDefault(
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
   @java.lang.Override
-  public com.google.rpc.Status getLogEntryErrorsOrThrow(
-      int key) {
+  public com.google.rpc.Status getLogEntryErrorsOrThrow(int key) {
 
     java.util.Map map =
         internalGetLogEntryErrors().getMap();
@@ -171,6 +196,7 @@ public com.google.rpc.Status getLogEntryErrorsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -182,14 +208,9 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
-    com.google.protobuf.GeneratedMessageV3
-      .serializeIntegerMapTo(
-        output,
-        internalGetLogEntryErrors(),
-        LogEntryErrorsDefaultEntryHolder.defaultEntry,
-        1);
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3.serializeIntegerMapTo(
+        output, internalGetLogEntryErrors(), LogEntryErrorsDefaultEntryHolder.defaultEntry, 1);
     getUnknownFields().writeTo(output);
   }
 
@@ -199,15 +220,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry
-         : internalGetLogEntryErrors().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      logEntryErrors__ = LogEntryErrorsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, logEntryErrors__);
+    for (java.util.Map.Entry entry :
+        internalGetLogEntryErrors().getMap().entrySet()) {
+      com.google.protobuf.MapEntry logEntryErrors__ =
+          LogEntryErrorsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, logEntryErrors__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -217,15 +238,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.logging.v2.WriteLogEntriesPartialErrors)) {
       return super.equals(obj);
     }
-    com.google.logging.v2.WriteLogEntriesPartialErrors other = (com.google.logging.v2.WriteLogEntriesPartialErrors) obj;
+    com.google.logging.v2.WriteLogEntriesPartialErrors other =
+        (com.google.logging.v2.WriteLogEntriesPartialErrors) obj;
 
-    if (!internalGetLogEntryErrors().equals(
-        other.internalGetLogEntryErrors())) return false;
+    if (!internalGetLogEntryErrors().equals(other.internalGetLogEntryErrors())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -247,111 +268,116 @@ public int hashCode() {
   }
 
   public static com.google.logging.v2.WriteLogEntriesPartialErrors 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.logging.v2.WriteLogEntriesPartialErrors parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
-  public static com.google.logging.v2.WriteLogEntriesPartialErrors parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+  public static com.google.logging.v2.WriteLogEntriesPartialErrors parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
 
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.WriteLogEntriesPartialErrors parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.logging.v2.WriteLogEntriesPartialErrors prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder 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;
   }
   /**
+   *
+   *
    * 
    * Error details for WriteLogEntries with partial success.
    * 
* * Protobuf type {@code google.logging.v2.WriteLogEntriesPartialErrors} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.WriteLogEntriesPartialErrors) com.google.logging.v2.WriteLogEntriesPartialErrorsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -361,10 +387,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 1: return internalGetLogEntryErrors(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -372,28 +398,27 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi case 1: return internalGetMutableLogEntryErrors(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesPartialErrors_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.WriteLogEntriesPartialErrors.class, com.google.logging.v2.WriteLogEntriesPartialErrors.Builder.class); + com.google.logging.v2.WriteLogEntriesPartialErrors.class, + com.google.logging.v2.WriteLogEntriesPartialErrors.Builder.class); } // Construct using com.google.logging.v2.WriteLogEntriesPartialErrors.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -403,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesPartialErrors_descriptor; } @java.lang.Override @@ -424,8 +449,11 @@ public com.google.logging.v2.WriteLogEntriesPartialErrors build() { @java.lang.Override public com.google.logging.v2.WriteLogEntriesPartialErrors buildPartial() { - com.google.logging.v2.WriteLogEntriesPartialErrors result = new com.google.logging.v2.WriteLogEntriesPartialErrors(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.logging.v2.WriteLogEntriesPartialErrors result = + new com.google.logging.v2.WriteLogEntriesPartialErrors(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -433,7 +461,8 @@ public com.google.logging.v2.WriteLogEntriesPartialErrors buildPartial() { private void buildPartial0(com.google.logging.v2.WriteLogEntriesPartialErrors result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.logEntryErrors_ = internalGetLogEntryErrors().build(LogEntryErrorsDefaultEntryHolder.defaultEntry); + result.logEntryErrors_ = + internalGetLogEntryErrors().build(LogEntryErrorsDefaultEntryHolder.defaultEntry); } } @@ -441,38 +470,39 @@ private void buildPartial0(com.google.logging.v2.WriteLogEntriesPartialErrors re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.logging.v2.WriteLogEntriesPartialErrors) { - return mergeFrom((com.google.logging.v2.WriteLogEntriesPartialErrors)other); + return mergeFrom((com.google.logging.v2.WriteLogEntriesPartialErrors) other); } else { super.mergeFrom(other); return this; @@ -480,9 +510,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.logging.v2.WriteLogEntriesPartialErrors other) { - if (other == com.google.logging.v2.WriteLogEntriesPartialErrors.getDefaultInstance()) return this; - internalGetMutableLogEntryErrors().mergeFrom( - other.internalGetLogEntryErrors()); + if (other == com.google.logging.v2.WriteLogEntriesPartialErrors.getDefaultInstance()) + return this; + internalGetMutableLogEntryErrors().mergeFrom(other.internalGetLogEntryErrors()); bitField0_ |= 0x00000001; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -510,21 +540,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.MapEntry - logEntryErrors__ = input.readMessage( - LogEntryErrorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLogEntryErrors().ensureBuilderMap().put( - logEntryErrors__.getKey(), logEntryErrors__.getValue()); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.MapEntry + logEntryErrors__ = + input.readMessage( + LogEntryErrorsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLogEntryErrors() + .ensureBuilderMap() + .put(logEntryErrors__.getKey(), logEntryErrors__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -534,12 +569,17 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private static final class LogEntryErrorsConverter implements com.google.protobuf.MapFieldBuilder.Converter { + private static final class LogEntryErrorsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.Integer, com.google.rpc.StatusOrBuilder, com.google.rpc.Status> { @java.lang.Override public com.google.rpc.Status build(com.google.rpc.StatusOrBuilder val) { - if (val instanceof com.google.rpc.Status) { return (com.google.rpc.Status) val; } + if (val instanceof com.google.rpc.Status) { + return (com.google.rpc.Status) val; + } return ((com.google.rpc.Status.Builder) val).build(); } @@ -548,18 +588,34 @@ public com.google.protobuf.MapEntry de return LogEntryErrorsDefaultEntryHolder.defaultEntry; } }; - private static final LogEntryErrorsConverter logEntryErrorsConverter = new LogEntryErrorsConverter(); + + private static final LogEntryErrorsConverter logEntryErrorsConverter = + new LogEntryErrorsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.Integer, + com.google.rpc.StatusOrBuilder, + com.google.rpc.Status, + com.google.rpc.Status.Builder> + logEntryErrors_; private com.google.protobuf.MapFieldBuilder< - java.lang.Integer, com.google.rpc.StatusOrBuilder, com.google.rpc.Status, com.google.rpc.Status.Builder> logEntryErrors_; - private com.google.protobuf.MapFieldBuilder + java.lang.Integer, + com.google.rpc.StatusOrBuilder, + com.google.rpc.Status, + com.google.rpc.Status.Builder> internalGetLogEntryErrors() { if (logEntryErrors_ == null) { return new com.google.protobuf.MapFieldBuilder<>(logEntryErrorsConverter); } return logEntryErrors_; } - private com.google.protobuf.MapFieldBuilder + + private com.google.protobuf.MapFieldBuilder< + java.lang.Integer, + com.google.rpc.StatusOrBuilder, + com.google.rpc.Status, + com.google.rpc.Status.Builder> internalGetMutableLogEntryErrors() { if (logEntryErrors_ == null) { logEntryErrors_ = new com.google.protobuf.MapFieldBuilder<>(logEntryErrorsConverter); @@ -568,10 +624,13 @@ public com.google.protobuf.MapEntry de onChanged(); return logEntryErrors_; } + public int getLogEntryErrorsCount() { return internalGetLogEntryErrors().ensureBuilderMap().size(); } /** + * + * *
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -584,20 +643,19 @@ public int getLogEntryErrorsCount() {
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
     @java.lang.Override
-    public boolean containsLogEntryErrors(
-        int key) {
+    public boolean containsLogEntryErrors(int key) {
 
       return internalGetLogEntryErrors().ensureBuilderMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLogEntryErrorsMap()} instead.
-     */
+    /** Use {@link #getLogEntryErrorsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLogEntryErrors() {
       return getLogEntryErrorsMap();
     }
     /**
+     *
+     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -614,6 +672,8 @@ public java.util.Map getLogEntryErrors
       return internalGetLogEntryErrors().getImmutableMap();
     }
     /**
+     *
+     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -626,16 +686,18 @@ public java.util.Map getLogEntryErrors
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
     @java.lang.Override
-    public /* nullable */
-com.google.rpc.Status getLogEntryErrorsOrDefault(
+    public /* nullable */ com.google.rpc.Status getLogEntryErrorsOrDefault(
         int key,
         /* nullable */
-com.google.rpc.Status defaultValue) {
+        com.google.rpc.Status defaultValue) {
 
-      java.util.Map map = internalGetMutableLogEntryErrors().ensureBuilderMap();
+      java.util.Map map =
+          internalGetMutableLogEntryErrors().ensureBuilderMap();
       return map.containsKey(key) ? logEntryErrorsConverter.build(map.get(key)) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -648,21 +710,24 @@ com.google.rpc.Status getLogEntryErrorsOrDefault(
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
     @java.lang.Override
-    public com.google.rpc.Status getLogEntryErrorsOrThrow(
-        int key) {
+    public com.google.rpc.Status getLogEntryErrorsOrThrow(int key) {
 
-      java.util.Map map = internalGetMutableLogEntryErrors().ensureBuilderMap();
+      java.util.Map map =
+          internalGetMutableLogEntryErrors().ensureBuilderMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return logEntryErrorsConverter.build(map.get(key));
     }
+
     public Builder clearLogEntryErrors() {
       bitField0_ = (bitField0_ & ~0x00000001);
       internalGetMutableLogEntryErrors().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -674,23 +739,20 @@ public Builder clearLogEntryErrors() {
      *
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
-    public Builder removeLogEntryErrors(
-        int key) {
+    public Builder removeLogEntryErrors(int key) {
 
-      internalGetMutableLogEntryErrors().ensureBuilderMap()
-          .remove(key);
+      internalGetMutableLogEntryErrors().ensureBuilderMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLogEntryErrors() {
+    public java.util.Map getMutableLogEntryErrors() {
       bitField0_ |= 0x00000001;
       return internalGetMutableLogEntryErrors().ensureMessageMap();
     }
     /**
+     *
+     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -702,17 +764,18 @@ public Builder removeLogEntryErrors(
      *
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
-    public Builder putLogEntryErrors(
-        int key,
-        com.google.rpc.Status value) {
+    public Builder putLogEntryErrors(int key, com.google.rpc.Status value) {
 
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLogEntryErrors().ensureBuilderMap()
-          .put(key, value);
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLogEntryErrors().ensureBuilderMap().put(key, value);
       bitField0_ |= 0x00000001;
       return this;
     }
     /**
+     *
+     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -731,12 +794,13 @@ public Builder putAllLogEntryErrors(
           throw new NullPointerException();
         }
       }
-      internalGetMutableLogEntryErrors().ensureBuilderMap()
-          .putAll(values);
+      internalGetMutableLogEntryErrors().ensureBuilderMap().putAll(values);
       bitField0_ |= 0x00000001;
       return this;
     }
     /**
+     *
+     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -748,9 +812,9 @@ public Builder putAllLogEntryErrors(
      *
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
-    public com.google.rpc.Status.Builder putLogEntryErrorsBuilderIfAbsent(
-        int key) {
-      java.util.Map builderMap = internalGetMutableLogEntryErrors().ensureBuilderMap();
+    public com.google.rpc.Status.Builder putLogEntryErrorsBuilderIfAbsent(int key) {
+      java.util.Map builderMap =
+          internalGetMutableLogEntryErrors().ensureBuilderMap();
       com.google.rpc.StatusOrBuilder entry = builderMap.get(key);
       if (entry == null) {
         entry = com.google.rpc.Status.newBuilder();
@@ -762,9 +826,9 @@ public com.google.rpc.Status.Builder putLogEntryErrorsBuilderIfAbsent(
       }
       return (com.google.rpc.Status.Builder) entry;
     }
+
     @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 +838,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.logging.v2.WriteLogEntriesPartialErrors)
   }
 
   // @@protoc_insertion_point(class_scope:google.logging.v2.WriteLogEntriesPartialErrors)
   private static final com.google.logging.v2.WriteLogEntriesPartialErrors DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.logging.v2.WriteLogEntriesPartialErrors();
   }
@@ -788,27 +852,27 @@ public static com.google.logging.v2.WriteLogEntriesPartialErrors getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public WriteLogEntriesPartialErrors parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public WriteLogEntriesPartialErrors parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.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,6 +887,4 @@ public com.google.protobuf.Parser getParserForType
   public com.google.logging.v2.WriteLogEntriesPartialErrors getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java
similarity index 70%
rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java
rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java
index c7fdf6657..4b4572597 100644
--- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.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/logging/v2/logging.proto
 
 // Protobuf Java Version: 3.25.3
 package com.google.logging.v2;
 
-public interface WriteLogEntriesPartialErrorsOrBuilder extends
+public interface WriteLogEntriesPartialErrorsOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.logging.v2.WriteLogEntriesPartialErrors)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -22,6 +40,8 @@ public interface WriteLogEntriesPartialErrorsOrBuilder extends
    */
   int getLogEntryErrorsCount();
   /**
+   *
+   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -33,15 +53,13 @@ public interface WriteLogEntriesPartialErrorsOrBuilder extends
    *
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
-  boolean containsLogEntryErrors(
-      int key);
-  /**
-   * Use {@link #getLogEntryErrorsMap()} instead.
-   */
+  boolean containsLogEntryErrors(int key);
+  /** Use {@link #getLogEntryErrorsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLogEntryErrors();
+  java.util.Map getLogEntryErrors();
   /**
+   *
+   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -53,9 +71,10 @@ boolean containsLogEntryErrors(
    *
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
-  java.util.Map
-  getLogEntryErrorsMap();
+  java.util.Map getLogEntryErrorsMap();
   /**
+   *
+   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -68,11 +87,13 @@ boolean containsLogEntryErrors(
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
   /* nullable */
-com.google.rpc.Status getLogEntryErrorsOrDefault(
+  com.google.rpc.Status getLogEntryErrorsOrDefault(
       int key,
       /* nullable */
-com.google.rpc.Status defaultValue);
+      com.google.rpc.Status defaultValue);
   /**
+   *
+   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -84,6 +105,5 @@ com.google.rpc.Status getLogEntryErrorsOrDefault(
    *
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
-  com.google.rpc.Status getLogEntryErrorsOrThrow(
-      int key);
+  com.google.rpc.Status getLogEntryErrorsOrThrow(int key);
 }
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
similarity index 79%
rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
index 69f8eb873..2173b907f 100644
--- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.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/logging/v2/logging.proto
 
@@ -5,21 +20,24 @@
 package com.google.logging.v2;
 
 /**
+ *
+ *
  * 
  * The parameters to WriteLogEntries.
  * 
* * Protobuf type {@code google.logging.v2.WriteLogEntriesRequest} */ -public final class WriteLogEntriesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WriteLogEntriesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.WriteLogEntriesRequest) WriteLogEntriesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WriteLogEntriesRequest.newBuilder() to construct. private WriteLogEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WriteLogEntriesRequest() { logName_ = ""; entries_ = java.util.Collections.emptyList(); @@ -27,14 +45,13 @@ private WriteLogEntriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WriteLogEntriesRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -45,23 +62,28 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 3: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.WriteLogEntriesRequest.class, com.google.logging.v2.WriteLogEntriesRequest.Builder.class); + com.google.logging.v2.WriteLogEntriesRequest.class, + com.google.logging.v2.WriteLogEntriesRequest.Builder.class); } private int bitField0_; public static final int LOG_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object logName_ = ""; /** + * + * *
    * Optional. A default log resource name that is assigned to all log entries
    * in `entries` that do not specify a value for `log_name`:
@@ -82,7 +104,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
    * individual log entry.
    * 
* - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The logName. */ @java.lang.Override @@ -91,14 +116,15 @@ public java.lang.String getLogName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logName_ = s; return s; } } /** + * + * *
    * Optional. A default log resource name that is assigned to all log entries
    * in `entries` that do not specify a value for `log_name`:
@@ -119,17 +145,18 @@ public java.lang.String getLogName() {
    * individual log entry.
    * 
* - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for logName. */ @java.lang.Override - public com.google.protobuf.ByteString - getLogNameBytes() { + public com.google.protobuf.ByteString getLogNameBytes() { java.lang.Object ref = logName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); logName_ = b; return b; } else { @@ -140,6 +167,8 @@ public java.lang.String getLogName() { public static final int RESOURCE_FIELD_NUMBER = 2; private com.google.api.MonitoredResource resource_; /** + * + * *
    * Optional. A default monitored resource object that is assigned to all log
    * entries in `entries` that do not specify a value for `resource`. Example:
@@ -151,7 +180,9 @@ public java.lang.String getLogName() {
    * See [LogEntry][google.logging.v2.LogEntry].
    * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resource field is set. */ @java.lang.Override @@ -159,6 +190,8 @@ public boolean hasResource() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Optional. A default monitored resource object that is assigned to all log
    * entries in `entries` that do not specify a value for `resource`. Example:
@@ -170,7 +203,9 @@ public boolean hasResource() {
    * See [LogEntry][google.logging.v2.LogEntry].
    * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resource. */ @java.lang.Override @@ -178,6 +213,8 @@ public com.google.api.MonitoredResource getResource() { return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; } /** + * + * *
    * Optional. A default monitored resource object that is assigned to all log
    * entries in `entries` that do not specify a value for `resource`. Example:
@@ -189,7 +226,8 @@ public com.google.api.MonitoredResource getResource() {
    * See [LogEntry][google.logging.v2.LogEntry].
    * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { @@ -197,32 +235,34 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 3; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -233,20 +273,21 @@ public int getLabelsCount() {
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public boolean containsLabels(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetLabels().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -261,6 +302,8 @@ public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -271,17 +314,19 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public /* nullable */
-java.lang.String getLabelsOrDefault(
+  public /* nullable */ java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+      java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -292,11 +337,11 @@ java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -304,9 +349,12 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int ENTRIES_FIELD_NUMBER = 4;
+
   @SuppressWarnings("serial")
   private java.util.List entries_;
   /**
+   *
+   *
    * 
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -334,13 +382,17 @@ public java.lang.String getLabelsOrThrow(
    * list, rather than calling this method for each individual log entry.
    * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** + * + * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -368,14 +420,18 @@ public java.util.List getEntriesList() {
    * list, rather than calling this method for each individual log entry.
    * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List + public java.util.List getEntriesOrBuilderList() { return entries_; } /** + * + * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -403,13 +459,17 @@ public java.util.List getEntriesList() {
    * list, rather than calling this method for each individual log entry.
    * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** + * + * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -437,13 +497,17 @@ public int getEntriesCount() {
    * list, rather than calling this method for each individual log entry.
    * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.logging.v2.LogEntry getEntries(int index) { return entries_.get(index); } /** + * + * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -471,17 +535,20 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
    * list, rather than calling this method for each individual log entry.
    * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder( - int index) { + public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) { return entries_.get(index); } public static final int PARTIAL_SUCCESS_FIELD_NUMBER = 5; private boolean partialSuccess_ = false; /** + * + * *
    * Optional. Whether a batch's valid entries should be written even if some
    * other entry failed due to a permanent error such as INVALID_ARGUMENT or
@@ -493,6 +560,7 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The partialSuccess. */ @java.lang.Override @@ -503,6 +571,8 @@ public boolean getPartialSuccess() { public static final int DRY_RUN_FIELD_NUMBER = 6; private boolean dryRun_ = false; /** + * + * *
    * Optional. If true, the request should expect normal response, but the
    * entries won't be persisted nor exported. Useful for checking whether the
@@ -510,6 +580,7 @@ public boolean getPartialSuccess() {
    * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dryRun. */ @java.lang.Override @@ -518,6 +589,7 @@ public boolean getDryRun() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -529,20 +601,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logName_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getResource()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3); for (int i = 0; i < entries_.size(); i++) { output.writeMessage(4, entries_.get(i)); } @@ -565,30 +632,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, logName_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getResource()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getResource()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, labels__); } for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, entries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, entries_.get(i)); } if (partialSuccess_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, partialSuccess_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, partialSuccess_); } if (dryRun_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, dryRun_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, dryRun_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -598,28 +661,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.logging.v2.WriteLogEntriesRequest)) { return super.equals(obj); } - com.google.logging.v2.WriteLogEntriesRequest other = (com.google.logging.v2.WriteLogEntriesRequest) obj; + com.google.logging.v2.WriteLogEntriesRequest other = + (com.google.logging.v2.WriteLogEntriesRequest) obj; - if (!getLogName() - .equals(other.getLogName())) return false; + if (!getLogName().equals(other.getLogName())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getEntriesList() - .equals(other.getEntriesList())) return false; - if (getPartialSuccess() - != other.getPartialSuccess()) return false; - if (getDryRun() - != other.getDryRun()) return false; + if (!getResource().equals(other.getResource())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getEntriesList().equals(other.getEntriesList())) return false; + if (getPartialSuccess() != other.getPartialSuccess()) return false; + if (getDryRun() != other.getDryRun()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -646,122 +704,125 @@ public int hashCode() { hash = (53 * hash) + getEntriesList().hashCode(); } hash = (37 * hash) + PARTIAL_SUCCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPartialSuccess()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPartialSuccess()); hash = (37 * hash) + DRY_RUN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDryRun()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDryRun()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.WriteLogEntriesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.WriteLogEntriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.WriteLogEntriesRequest 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.logging.v2.WriteLogEntriesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.WriteLogEntriesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.WriteLogEntriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.WriteLogEntriesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.WriteLogEntriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.WriteLogEntriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to WriteLogEntries.
    * 
* * Protobuf type {@code google.logging.v2.WriteLogEntriesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.WriteLogEntriesRequest) com.google.logging.v2.WriteLogEntriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -771,10 +832,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl case 3: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { @@ -782,16 +843,18 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi case 3: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.WriteLogEntriesRequest.class, com.google.logging.v2.WriteLogEntriesRequest.Builder.class); + com.google.logging.v2.WriteLogEntriesRequest.class, + com.google.logging.v2.WriteLogEntriesRequest.Builder.class); } // Construct using com.google.logging.v2.WriteLogEntriesRequest.newBuilder() @@ -799,18 +862,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) { getResourceFieldBuilder(); getEntriesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -835,9 +898,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; } @java.lang.Override @@ -856,9 +919,12 @@ public com.google.logging.v2.WriteLogEntriesRequest build() { @java.lang.Override public com.google.logging.v2.WriteLogEntriesRequest buildPartial() { - com.google.logging.v2.WriteLogEntriesRequest result = new com.google.logging.v2.WriteLogEntriesRequest(this); + com.google.logging.v2.WriteLogEntriesRequest result = + new com.google.logging.v2.WriteLogEntriesRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -882,9 +948,7 @@ private void buildPartial0(com.google.logging.v2.WriteLogEntriesRequest result) } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.resource_ = resourceBuilder_ == null - ? resource_ - : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { @@ -904,38 +968,39 @@ private void buildPartial0(com.google.logging.v2.WriteLogEntriesRequest 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.logging.v2.WriteLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.WriteLogEntriesRequest)other); + return mergeFrom((com.google.logging.v2.WriteLogEntriesRequest) other); } else { super.mergeFrom(other); return this; @@ -952,8 +1017,7 @@ public Builder mergeFrom(com.google.logging.v2.WriteLogEntriesRequest other) { if (other.hasResource()) { mergeResource(other.getResource()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000004; if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { @@ -973,9 +1037,10 @@ public Builder mergeFrom(com.google.logging.v2.WriteLogEntriesRequest other) { entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000008); - entriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntriesFieldBuilder() : null; + entriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntriesFieldBuilder() + : null; } else { entriesBuilder_.addAllMessages(other.entries_); } @@ -1013,56 +1078,61 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - logName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getResourceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - com.google.logging.v2.LogEntry m = - input.readMessage( - com.google.logging.v2.LogEntry.parser(), - extensionRegistry); - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(m); - } else { - entriesBuilder_.addMessage(m); - } - break; - } // case 34 - case 40: { - partialSuccess_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - dryRun_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + logName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getResourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.logging.v2.LogEntry m = + input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: + { + partialSuccess_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + dryRun_ = input.readBool(); + bitField0_ |= 0x00000020; + 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) { @@ -1072,10 +1142,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object logName_ = ""; /** + * + * *
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
@@ -1096,14 +1169,16 @@ public Builder mergeFrom(
      * individual log entry.
      * 
* - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The logName. */ public java.lang.String getLogName() { java.lang.Object ref = logName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); logName_ = s; return s; @@ -1112,6 +1187,8 @@ public java.lang.String getLogName() { } } /** + * + * *
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
@@ -1132,16 +1209,17 @@ public java.lang.String getLogName() {
      * individual log entry.
      * 
* - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for logName. */ - public com.google.protobuf.ByteString - getLogNameBytes() { + public com.google.protobuf.ByteString getLogNameBytes() { java.lang.Object ref = logName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); logName_ = b; return b; } else { @@ -1149,6 +1227,8 @@ public java.lang.String getLogName() { } } /** + * + * *
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
@@ -1169,19 +1249,25 @@ public java.lang.String getLogName() {
      * individual log entry.
      * 
* - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The logName to set. * @return This builder for chaining. */ - public Builder setLogName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLogName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } logName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
@@ -1202,7 +1288,10 @@ public Builder setLogName(
      * individual log entry.
      * 
* - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLogName() { @@ -1212,6 +1301,8 @@ public Builder clearLogName() { return this; } /** + * + * *
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
@@ -1232,13 +1323,17 @@ public Builder clearLogName() {
      * individual log entry.
      * 
* - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for logName to set. * @return This builder for chaining. */ - public Builder setLogNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLogNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); logName_ = value; bitField0_ |= 0x00000001; @@ -1248,8 +1343,13 @@ public Builder setLogNameBytes( private com.google.api.MonitoredResource resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> resourceBuilder_; + com.google.api.MonitoredResource, + com.google.api.MonitoredResource.Builder, + com.google.api.MonitoredResourceOrBuilder> + resourceBuilder_; /** + * + * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1261,13 +1361,17 @@ public Builder setLogNameBytes(
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resource field is set. */ public boolean hasResource() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1279,17 +1383,23 @@ public boolean hasResource() {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resource. */ public com.google.api.MonitoredResource getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.api.MonitoredResource.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1301,7 +1411,8 @@ public com.google.api.MonitoredResource getResource() {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setResource(com.google.api.MonitoredResource value) { if (resourceBuilder_ == null) { @@ -1317,6 +1428,8 @@ public Builder setResource(com.google.api.MonitoredResource value) { return this; } /** + * + * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1328,10 +1441,10 @@ public Builder setResource(com.google.api.MonitoredResource value) {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setResource( - com.google.api.MonitoredResource.Builder builderForValue) { + public Builder setResource(com.google.api.MonitoredResource.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); } else { @@ -1342,6 +1455,8 @@ public Builder setResource( return this; } /** + * + * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1353,13 +1468,14 @@ public Builder setResource(
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeResource(com.google.api.MonitoredResource value) { if (resourceBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - resource_ != null && - resource_ != com.google.api.MonitoredResource.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && resource_ != null + && resource_ != com.google.api.MonitoredResource.getDefaultInstance()) { getResourceBuilder().mergeFrom(value); } else { resource_ = value; @@ -1374,6 +1490,8 @@ public Builder mergeResource(com.google.api.MonitoredResource value) { return this; } /** + * + * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1385,7 +1503,8 @@ public Builder mergeResource(com.google.api.MonitoredResource value) {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearResource() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1398,6 +1517,8 @@ public Builder clearResource() { return this; } /** + * + * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1409,7 +1530,8 @@ public Builder clearResource() {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.api.MonitoredResource.Builder getResourceBuilder() { bitField0_ |= 0x00000002; @@ -1417,6 +1539,8 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() { return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1428,17 +1552,21 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.api.MonitoredResource.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.api.MonitoredResource.getDefaultInstance() + : resource_; } } /** + * + * *
      * Optional. A default monitored resource object that is assigned to all log
      * entries in `entries` that do not specify a value for `resource`. Example:
@@ -1450,37 +1578,39 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
      * See [LogEntry][google.logging.v2.LogEntry].
      * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder> + com.google.api.MonitoredResource, + com.google.api.MonitoredResource.Builder, + com.google.api.MonitoredResourceOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.api.MonitoredResource, com.google.api.MonitoredResource.Builder, com.google.api.MonitoredResourceOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.api.MonitoredResource, + com.google.api.MonitoredResource.Builder, + com.google.api.MonitoredResourceOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1489,10 +1619,13 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Default labels that are added to the `labels` field of all log
      * entries in `entries`. If a log entry already has a label with the same key
@@ -1503,20 +1636,21 @@ public int getLabelsCount() {
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public boolean containsLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetLabels().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getLabelsMap()} instead.
-     */
+    /** Use {@link #getLabelsMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Default labels that are added to the `labels` field of all log
      * entries in `entries`. If a log entry already has a label with the same key
@@ -1531,6 +1665,8 @@ public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Default labels that are added to the `labels` field of all log
      * entries in `entries`. If a log entry already has a label with the same key
@@ -1541,17 +1677,19 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public /* nullable */
-java.lang.String getLabelsOrDefault(
+    public /* nullable */ java.lang.String getLabelsOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. Default labels that are added to the `labels` field of all log
      * entries in `entries`. If a log entry already has a label with the same key
@@ -1562,23 +1700,25 @@ java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
       return map.get(key);
     }
+
     public Builder clearLabels() {
       bitField0_ = (bitField0_ & ~0x00000004);
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Default labels that are added to the `labels` field of all log
      * entries in `entries`. If a log entry already has a label with the same key
@@ -1588,23 +1728,22 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder removeLabels(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableLabels().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-        getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       bitField0_ |= 0x00000004;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Default labels that are added to the `labels` field of all log
      * entries in `entries`. If a log entry already has a label with the same key
@@ -1614,17 +1753,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      if (value == null) { throw new NullPointerException("map value"); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       bitField0_ |= 0x00000004;
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Default labels that are added to the `labels` field of all log
      * entries in `entries`. If a log entry already has a label with the same key
@@ -1634,27 +1776,31 @@ public Builder putLabels(
      *
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       bitField0_ |= 0x00000004;
       return this;
     }
 
     private java.util.List entries_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureEntriesIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
         entries_ = new java.util.ArrayList(entries_);
         bitField0_ |= 0x00000008;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder> entriesBuilder_;
+            com.google.logging.v2.LogEntry,
+            com.google.logging.v2.LogEntry.Builder,
+            com.google.logging.v2.LogEntryOrBuilder>
+        entriesBuilder_;
 
     /**
+     *
+     *
      * 
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -1682,7 +1828,9 @@ private void ensureEntriesIsMutable() {
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { @@ -1692,6 +1840,8 @@ public java.util.List getEntriesList() { } } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -1719,7 +1869,9 @@ public java.util.List getEntriesList() {
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getEntriesCount() { if (entriesBuilder_ == null) { @@ -1729,6 +1881,8 @@ public int getEntriesCount() { } } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -1756,7 +1910,9 @@ public int getEntriesCount() {
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogEntry getEntries(int index) { if (entriesBuilder_ == null) { @@ -1766,6 +1922,8 @@ public com.google.logging.v2.LogEntry getEntries(int index) { } } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -1793,10 +1951,11 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setEntries( - int index, com.google.logging.v2.LogEntry value) { + public Builder setEntries(int index, com.google.logging.v2.LogEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1810,6 +1969,8 @@ public Builder setEntries( return this; } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -1837,10 +1998,11 @@ public Builder setEntries(
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setEntries( - int index, com.google.logging.v2.LogEntry.Builder builderForValue) { + public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); @@ -1851,6 +2013,8 @@ public Builder setEntries( return this; } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -1878,7 +2042,9 @@ public Builder setEntries(
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addEntries(com.google.logging.v2.LogEntry value) { if (entriesBuilder_ == null) { @@ -1894,6 +2060,8 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) { return this; } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -1921,10 +2089,11 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) {
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addEntries( - int index, com.google.logging.v2.LogEntry value) { + public Builder addEntries(int index, com.google.logging.v2.LogEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1938,6 +2107,8 @@ public Builder addEntries( return this; } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -1965,10 +2136,11 @@ public Builder addEntries(
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addEntries( - com.google.logging.v2.LogEntry.Builder builderForValue) { + public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); @@ -1979,6 +2151,8 @@ public Builder addEntries( return this; } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2006,10 +2180,11 @@ public Builder addEntries(
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addEntries( - int index, com.google.logging.v2.LogEntry.Builder builderForValue) { + public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); @@ -2020,6 +2195,8 @@ public Builder addEntries( return this; } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2047,14 +2224,15 @@ public Builder addEntries(
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); @@ -2062,6 +2240,8 @@ public Builder addAllEntries( return this; } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2089,7 +2269,9 @@ public Builder addAllEntries(
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEntries() { if (entriesBuilder_ == null) { @@ -2102,6 +2284,8 @@ public Builder clearEntries() { return this; } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2129,7 +2313,9 @@ public Builder clearEntries() {
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { @@ -2142,6 +2328,8 @@ public Builder removeEntries(int index) { return this; } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2169,13 +2357,16 @@ public Builder removeEntries(int index) {
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.logging.v2.LogEntry.Builder getEntriesBuilder( - int index) { + public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) { return getEntriesFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2203,16 +2394,20 @@ public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder( - int index) { + public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) { if (entriesBuilder_ == null) { - return entries_.get(index); } else { + return entries_.get(index); + } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2240,10 +2435,12 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getEntriesOrBuilderList() { + public java.util.List + getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { @@ -2251,6 +2448,8 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder( } } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2278,13 +2477,17 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() { - return getEntriesFieldBuilder().addBuilder( - com.google.logging.v2.LogEntry.getDefaultInstance()); + return getEntriesFieldBuilder() + .addBuilder(com.google.logging.v2.LogEntry.getDefaultInstance()); } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2312,14 +2515,17 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() {
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.logging.v2.LogEntry.Builder addEntriesBuilder( - int index) { - return getEntriesFieldBuilder().addBuilder( - index, com.google.logging.v2.LogEntry.getDefaultInstance()); + public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) { + return getEntriesFieldBuilder() + .addBuilder(index, com.google.logging.v2.LogEntry.getDefaultInstance()); } /** + * + * *
      * Required. The log entries to send to Logging. The order of log
      * entries in this list does not matter. Values supplied in this method's
@@ -2347,29 +2553,35 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(
      * list, rather than calling this method for each individual log entry.
      * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getEntriesBuilderList() { + public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder> + com.google.logging.v2.LogEntry, + com.google.logging.v2.LogEntry.Builder, + com.google.logging.v2.LogEntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { - entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.logging.v2.LogEntry, com.google.logging.v2.LogEntry.Builder, com.google.logging.v2.LogEntryOrBuilder>( - entries_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.LogEntry, + com.google.logging.v2.LogEntry.Builder, + com.google.logging.v2.LogEntryOrBuilder>( + entries_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } - private boolean partialSuccess_ ; + private boolean partialSuccess_; /** + * + * *
      * Optional. Whether a batch's valid entries should be written even if some
      * other entry failed due to a permanent error such as INVALID_ARGUMENT or
@@ -2381,6 +2593,7 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The partialSuccess. */ @java.lang.Override @@ -2388,6 +2601,8 @@ public boolean getPartialSuccess() { return partialSuccess_; } /** + * + * *
      * Optional. Whether a batch's valid entries should be written even if some
      * other entry failed due to a permanent error such as INVALID_ARGUMENT or
@@ -2399,6 +2614,7 @@ public boolean getPartialSuccess() {
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The partialSuccess to set. * @return This builder for chaining. */ @@ -2410,6 +2626,8 @@ public Builder setPartialSuccess(boolean value) { return this; } /** + * + * *
      * Optional. Whether a batch's valid entries should be written even if some
      * other entry failed due to a permanent error such as INVALID_ARGUMENT or
@@ -2421,6 +2639,7 @@ public Builder setPartialSuccess(boolean value) {
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPartialSuccess() { @@ -2430,8 +2649,10 @@ public Builder clearPartialSuccess() { return this; } - private boolean dryRun_ ; + private boolean dryRun_; /** + * + * *
      * Optional. If true, the request should expect normal response, but the
      * entries won't be persisted nor exported. Useful for checking whether the
@@ -2439,6 +2660,7 @@ public Builder clearPartialSuccess() {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dryRun. */ @java.lang.Override @@ -2446,6 +2668,8 @@ public boolean getDryRun() { return dryRun_; } /** + * + * *
      * Optional. If true, the request should expect normal response, but the
      * entries won't be persisted nor exported. Useful for checking whether the
@@ -2453,6 +2677,7 @@ public boolean getDryRun() {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The dryRun to set. * @return This builder for chaining. */ @@ -2464,6 +2689,8 @@ public Builder setDryRun(boolean value) { return this; } /** + * + * *
      * Optional. If true, the request should expect normal response, but the
      * entries won't be persisted nor exported. Useful for checking whether the
@@ -2471,6 +2698,7 @@ public Builder setDryRun(boolean value) {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDryRun() { @@ -2479,9 +2707,9 @@ public Builder clearDryRun() { 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); } @@ -2491,12 +2719,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.WriteLogEntriesRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.WriteLogEntriesRequest) private static final com.google.logging.v2.WriteLogEntriesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.WriteLogEntriesRequest(); } @@ -2505,27 +2733,27 @@ public static com.google.logging.v2.WriteLogEntriesRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteLogEntriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteLogEntriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2540,6 +2768,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.WriteLogEntriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java similarity index 85% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java index f7ea91fc3..7aa7ce4a0 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.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/logging/v2/logging.proto // Protobuf Java Version: 3.25.3 package com.google.logging.v2; -public interface WriteLogEntriesRequestOrBuilder extends +public interface WriteLogEntriesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.logging.v2.WriteLogEntriesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A default log resource name that is assigned to all log entries
    * in `entries` that do not specify a value for `log_name`:
@@ -29,11 +47,16 @@ public interface WriteLogEntriesRequestOrBuilder extends
    * individual log entry.
    * 
* - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The logName. */ java.lang.String getLogName(); /** + * + * *
    * Optional. A default log resource name that is assigned to all log entries
    * in `entries` that do not specify a value for `log_name`:
@@ -54,13 +77,17 @@ public interface WriteLogEntriesRequestOrBuilder extends
    * individual log entry.
    * 
* - * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for logName. */ - com.google.protobuf.ByteString - getLogNameBytes(); + com.google.protobuf.ByteString getLogNameBytes(); /** + * + * *
    * Optional. A default monitored resource object that is assigned to all log
    * entries in `entries` that do not specify a value for `resource`. Example:
@@ -72,11 +99,15 @@ public interface WriteLogEntriesRequestOrBuilder extends
    * See [LogEntry][google.logging.v2.LogEntry].
    * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * Optional. A default monitored resource object that is assigned to all log
    * entries in `entries` that do not specify a value for `resource`. Example:
@@ -88,11 +119,15 @@ public interface WriteLogEntriesRequestOrBuilder extends
    * See [LogEntry][google.logging.v2.LogEntry].
    * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resource. */ com.google.api.MonitoredResource getResource(); /** + * + * *
    * Optional. A default monitored resource object that is assigned to all log
    * entries in `entries` that do not specify a value for `resource`. Example:
@@ -104,11 +139,14 @@ public interface WriteLogEntriesRequestOrBuilder extends
    * See [LogEntry][google.logging.v2.LogEntry].
    * 
* - * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.api.MonitoredResource resource = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder(); /** + * + * *
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -120,6 +158,8 @@ public interface WriteLogEntriesRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -129,15 +169,13 @@ public interface WriteLogEntriesRequestOrBuilder extends
    *
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsLabels(
-      java.lang.String key);
-  /**
-   * Use {@link #getLabelsMap()} instead.
-   */
+  boolean containsLabels(java.lang.String key);
+  /** Use {@link #getLabelsMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -147,9 +185,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -160,11 +199,13 @@ boolean containsLabels(
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. Default labels that are added to the `labels` field of all log
    * entries in `entries`. If a log entry already has a label with the same key
@@ -174,10 +215,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -205,11 +247,14 @@ java.lang.String getLabelsOrThrow(
    * list, rather than calling this method for each individual log entry.
    * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getEntriesList(); + java.util.List getEntriesList(); /** + * + * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -237,10 +282,14 @@ java.lang.String getLabelsOrThrow(
    * list, rather than calling this method for each individual log entry.
    * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.logging.v2.LogEntry getEntries(int index); /** + * + * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -268,10 +317,14 @@ java.lang.String getLabelsOrThrow(
    * list, rather than calling this method for each individual log entry.
    * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ int getEntriesCount(); /** + * + * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -299,11 +352,14 @@ java.lang.String getLabelsOrThrow(
    * list, rather than calling this method for each individual log entry.
    * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List - getEntriesOrBuilderList(); + java.util.List getEntriesOrBuilderList(); /** + * + * *
    * Required. The log entries to send to Logging. The order of log
    * entries in this list does not matter. Values supplied in this method's
@@ -331,12 +387,15 @@ java.lang.String getLabelsOrThrow(
    * list, rather than calling this method for each individual log entry.
    * 
* - * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder( - int index); + com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index); /** + * + * *
    * Optional. Whether a batch's valid entries should be written even if some
    * other entry failed due to a permanent error such as INVALID_ARGUMENT or
@@ -348,11 +407,14 @@ com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The partialSuccess. */ boolean getPartialSuccess(); /** + * + * *
    * Optional. If true, the request should expect normal response, but the
    * entries won't be persisted nor exported. Useful for checking whether the
@@ -360,6 +422,7 @@ com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dryRun. */ boolean getDryRun(); diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java similarity index 62% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java index 97811679a..bb580bd5b 100644 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.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/logging/v2/logging.proto @@ -5,45 +20,49 @@ package com.google.logging.v2; /** + * + * *
  * Result returned from WriteLogEntries.
  * 
* * Protobuf type {@code google.logging.v2.WriteLogEntriesResponse} */ -public final class WriteLogEntriesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WriteLogEntriesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.logging.v2.WriteLogEntriesResponse) WriteLogEntriesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WriteLogEntriesResponse.newBuilder() to construct. private WriteLogEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WriteLogEntriesResponse() { - } + + private WriteLogEntriesResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WriteLogEntriesResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.WriteLogEntriesResponse.class, com.google.logging.v2.WriteLogEntriesResponse.Builder.class); + com.google.logging.v2.WriteLogEntriesResponse.class, + com.google.logging.v2.WriteLogEntriesResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -55,8 +74,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -74,12 +92,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.WriteLogEntriesResponse)) { return super.equals(obj); } - com.google.logging.v2.WriteLogEntriesResponse other = (com.google.logging.v2.WriteLogEntriesResponse) obj; + com.google.logging.v2.WriteLogEntriesResponse other = + (com.google.logging.v2.WriteLogEntriesResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,132 +116,136 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.WriteLogEntriesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.WriteLogEntriesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.WriteLogEntriesResponse 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.logging.v2.WriteLogEntriesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.WriteLogEntriesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.logging.v2.WriteLogEntriesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.logging.v2.WriteLogEntriesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.WriteLogEntriesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.WriteLogEntriesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder 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; } /** + * + * *
    * Result returned from WriteLogEntries.
    * 
* * Protobuf type {@code google.logging.v2.WriteLogEntriesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.WriteLogEntriesResponse) com.google.logging.v2.WriteLogEntriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.WriteLogEntriesResponse.class, com.google.logging.v2.WriteLogEntriesResponse.Builder.class); + com.google.logging.v2.WriteLogEntriesResponse.class, + com.google.logging.v2.WriteLogEntriesResponse.Builder.class); } // Construct using com.google.logging.v2.WriteLogEntriesResponse.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(); @@ -230,9 +253,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_WriteLogEntriesResponse_descriptor; } @java.lang.Override @@ -251,7 +274,8 @@ public com.google.logging.v2.WriteLogEntriesResponse build() { @java.lang.Override public com.google.logging.v2.WriteLogEntriesResponse buildPartial() { - com.google.logging.v2.WriteLogEntriesResponse result = new com.google.logging.v2.WriteLogEntriesResponse(this); + com.google.logging.v2.WriteLogEntriesResponse result = + new com.google.logging.v2.WriteLogEntriesResponse(this); onBuilt(); return result; } @@ -260,38 +284,39 @@ public com.google.logging.v2.WriteLogEntriesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + 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.logging.v2.WriteLogEntriesResponse) { - return mergeFrom((com.google.logging.v2.WriteLogEntriesResponse)other); + return mergeFrom((com.google.logging.v2.WriteLogEntriesResponse) other); } else { super.mergeFrom(other); return this; @@ -326,12 +351,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -341,9 +367,9 @@ public Builder mergeFrom( } // finally 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); } @@ -353,12 +379,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.WriteLogEntriesResponse) } // @@protoc_insertion_point(class_scope:google.logging.v2.WriteLogEntriesResponse) private static final com.google.logging.v2.WriteLogEntriesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.WriteLogEntriesResponse(); } @@ -367,27 +393,27 @@ public static com.google.logging.v2.WriteLogEntriesResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteLogEntriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteLogEntriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -402,6 +428,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.WriteLogEntriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java new file mode 100644 index 000000000..0797097ad --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * 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/logging/v2/logging.proto + +// Protobuf Java Version: 3.25.3 +package com.google.logging.v2; + +public interface WriteLogEntriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.WriteLogEntriesResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto b/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto rename to proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto b/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto rename to proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto b/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto rename to proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto b/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto similarity index 100% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto rename to proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto