From bc3bebe301734fc7c2311491f9520edb04983021 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 24 Jan 2024 21:18:29 +0000 Subject: [PATCH 1/2] fix(deps): Update the Java code generator (gapic-generator-java) to 2.32.0 PiperOrigin-RevId: 599914188 Source-Link: https://github.com/googleapis/googleapis/commit/17e6661f8bf43374633adf950454ed8e69bdcee1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d86ba5be537e489435105ca85566cc4103301aba Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDg2YmE1YmU1MzdlNDg5NDM1MTA1Y2E4NTU2NmNjNDEwMzMwMWFiYSJ9 --- .../logging/v2/MetricsServiceV2Grpc.java | 816 --- .../google/cloud/logging/v2/ConfigClient.java | 5514 +++++++++++++++++ .../cloud/logging/v2/ConfigSettings.java | 630 ++ .../cloud/logging/v2/LoggingClient.java | 1536 +++++ .../cloud/logging/v2/LoggingSettings.java | 273 + .../cloud/logging/v2/MetricsClient.java | 1003 +++ .../cloud/logging/v2/MetricsSettings.java | 240 + .../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 | 1606 +++++ .../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 | 773 +++ .../logging/v2/stub/MetricsServiceV2Stub.java | 69 + .../v2/stub/MetricsServiceV2StubSettings.java | 490 ++ .../reflect-config.json | 2981 +++++++++ .../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/ConfigServiceV2Grpc.java | 2760 +++------ .../logging/v2/LoggingServiceV2Grpc.java | 666 +- .../logging/v2/MetricsServiceV2Grpc.java | 667 ++ .../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 | 674 +- .../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 | 690 +-- .../v2/CopyLogEntriesMetadataOrBuilder.java | 63 +- .../logging/v2/CopyLogEntriesRequest.java | 456 +- .../v2/CopyLogEntriesRequestOrBuilder.java | 45 +- .../logging/v2/CopyLogEntriesResponse.java | 277 +- .../v2/CopyLogEntriesResponseOrBuilder.java | 19 + .../logging/v2/CreateBucketRequest.java | 522 +- .../v2/CreateBucketRequestOrBuilder.java | 52 +- .../logging/v2/CreateExclusionRequest.java | 482 +- .../v2/CreateExclusionRequestOrBuilder.java | 52 +- .../google/logging/v2/CreateLinkRequest.java | 491 +- .../v2/CreateLinkRequestOrBuilder.java | 52 +- .../logging/v2/CreateLogMetricRequest.java | 450 +- .../v2/CreateLogMetricRequestOrBuilder.java | 43 +- .../google/logging/v2/CreateSinkRequest.java | 454 +- .../v2/CreateSinkRequestOrBuilder.java | 46 +- .../google/logging/v2/CreateViewRequest.java | 464 +- .../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 | 33 + .../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 | 41 + .../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 | 33 + .../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 | 41 + .../com/google/logging/v2/IndexConfig.java | 483 +- .../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 | 684 +- .../com/google/logging/v2/LinkMetadata.java | 674 +- .../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 | 20 + .../com/google/logging/v2/LocationName.java | 0 .../java/com/google/logging/v2/LogBucket.java | 1185 ++-- .../com/google/logging/v2/LogBucketName.java | 0 .../google/logging/v2/LogBucketOrBuilder.java | 137 +- .../java/com/google/logging/v2/LogEntry.java | 2142 +++---- .../google/logging/v2/LogEntryOperation.java | 449 +- .../v2/LogEntryOperationOrBuilder.java | 42 +- .../google/logging/v2/LogEntryOrBuilder.java | 249 +- .../com/google/logging/v2/LogEntryProto.java | 157 + .../logging/v2/LogEntrySourceLocation.java | 418 +- .../v2/LogEntrySourceLocationOrBuilder.java | 39 +- .../com/google/logging/v2/LogExclusion.java | 751 +-- .../google/logging/v2/LogExclusionName.java | 0 .../logging/v2/LogExclusionOrBuilder.java | 82 +- .../java/com/google/logging/v2/LogMetric.java | 1610 ++--- .../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 | 1560 ++--- .../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 | 711 +-- .../com/google/logging/v2/LogViewName.java | 0 .../google/logging/v2/LogViewOrBuilder.java | 79 +- .../google/logging/v2/LoggingConfigProto.java | 1157 ++++ .../logging/v2/LoggingMetricsProto.java | 224 + .../com/google/logging/v2/LoggingProto.java | 333 + .../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 | 554 +- .../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 | 575 +- .../v2/UpdateBucketRequestOrBuilder.java | 60 +- .../logging/v2/UpdateCmekSettingsRequest.java | 586 +- .../UpdateCmekSettingsRequestOrBuilder.java | 64 +- .../logging/v2/UpdateExclusionRequest.java | 607 +- .../v2/UpdateExclusionRequestOrBuilder.java | 69 +- .../logging/v2/UpdateLogMetricRequest.java | 450 +- .../v2/UpdateLogMetricRequestOrBuilder.java | 43 +- .../logging/v2/UpdateSettingsRequest.java | 556 +- .../v2/UpdateSettingsRequestOrBuilder.java | 61 +- .../google/logging/v2/UpdateSinkRequest.java | 579 +- .../v2/UpdateSinkRequestOrBuilder.java | 63 +- .../google/logging/v2/UpdateViewRequest.java | 517 +- .../v2/UpdateViewRequestOrBuilder.java | 52 +- .../v2/WriteLogEntriesPartialErrors.java | 444 +- ...WriteLogEntriesPartialErrorsOrBuilder.java | 48 +- .../logging/v2/WriteLogEntriesRequest.java | 1040 ++-- .../v2/WriteLogEntriesRequestOrBuilder.java | 127 +- .../logging/v2/WriteLogEntriesResponse.java | 238 +- .../v2/WriteLogEntriesResponseOrBuilder.java | 9 + .../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 .../v2/CopyLogEntriesResponseOrBuilder.java | 38 - .../v2/DeleteLogMetricRequestOrBuilder.java | 58 - .../v2/DeleteViewRequestOrBuilder.java | 66 - .../v2/GetLogMetricRequestOrBuilder.java | 58 - .../logging/v2/GetViewRequestOrBuilder.java | 66 - .../logging/v2/LocationMetadataOrBuilder.java | 39 - .../com/google/logging/v2/LogEntryProto.java | 193 - .../google/logging/v2/LoggingConfigProto.java | 1251 ---- .../logging/v2/LoggingMetricsProto.java | 257 - .../com/google/logging/v2/LoggingProto.java | 362 -- .../v2/WriteLogEntriesResponseOrBuilder.java | 24 - 219 files changed, 43637 insertions(+), 32799 deletions(-) delete mode 100644 grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/main/resources/META-INF/native-image/com.google.cloud.logging.v2/reflect-config.json create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2.java create mode 100644 owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java rename {grpc-google-cloud-logging-v2 => owl-bot-staging/v2/grpc-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java (52%) rename {grpc-google-cloud-logging-v2 => owl-bot-staging/v2/grpc-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java (50%) create mode 100644 owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BigQueryDataset.java (69%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java (65%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BigQueryOptions.java (70%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java (68%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BillingAccountLocationName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BillingAccountName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BucketMetadata.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java (81%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CmekSettings.java (80%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CmekSettingsName.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java (86%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java (80%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java (70%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java (69%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateBucketRequest.java (69%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateExclusionRequest.java (64%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java (63%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateLinkRequest.java (70%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java (70%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java (66%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java (62%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateSinkRequest.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java (73%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateViewRequest.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java (74%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteBucketRequest.java (66%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java (58%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java (66%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java (56%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteLinkRequest.java (66%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java (57%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java (62%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteLogRequest.java (67%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java (60%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteSinkRequest.java (66%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java (56%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteViewRequest.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/FolderLocationName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/FolderName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetBucketRequest.java (67%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java (58%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java (68%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java (62%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetExclusionRequest.java (65%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java (55%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetLinkRequest.java (66%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java (57%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetLogMetricRequest.java (62%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetSettingsRequest.java (68%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java (63%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetSinkRequest.java (65%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java (53%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetViewRequest.java (64%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/IndexConfig.java (70%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java (75%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/IndexType.java (67%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LifecycleState.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/Link.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LinkMetadata.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java (80%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LinkName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LinkOrBuilder.java (78%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListBucketsRequest.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListBucketsResponse.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java (65%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListExclusionsRequest.java (70%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java (66%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListExclusionsResponse.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java (68%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLinksRequest.java (70%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java (67%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLinksResponse.java (70%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java (65%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java (77%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java (82%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java (76%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java (78%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java (69%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java (64%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java (65%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogsRequest.java (73%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java (75%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogsResponse.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java (68%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java (70%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListSinksRequest.java (70%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java (66%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListSinksResponse.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java (65%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListViewsRequest.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListViewsResponse.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java (65%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LocationMetadata.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LocationName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogBucket.java (74%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogBucketName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java (83%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntry.java (76%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntryOperation.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java (87%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java (73%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogExclusion.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogExclusionName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java (80%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogMetric.java (75%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogMetricName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java (85%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogSink.java (73%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogSinkName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java (78%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogSplit.java (70%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java (65%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogView.java (68%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogViewName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogViewOrBuilder.java (74%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/OperationState.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/OrganizationLocationName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/OrganizationName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ProjectName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/Settings.java (79%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/SettingsName.java (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/SettingsOrBuilder.java (86%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java (77%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java (84%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java (79%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java (67%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java (59%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateBucketRequest.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java (76%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java (75%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java (70%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java (74%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java (67%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java (63%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java (73%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java (78%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateSinkRequest.java (76%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java (82%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateViewRequest.java (73%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java (79%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java (66%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java (69%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java (79%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java (85%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java (62%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/proto/google/logging/v2/log_entry.proto (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/proto/google/logging/v2/logging.proto (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/proto/google/logging/v2/logging_config.proto (100%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/proto/google/logging/v2/logging_metrics.proto (100%) delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java 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 deleted file mode 100644 index daaff8042..000000000 --- a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java +++ /dev/null @@ -1,816 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.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 new file mode 100644 index 000000000..9f0de332d --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java @@ -0,0 +1,5514 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..e569d3c16 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java @@ -0,0 +1,630 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.core.BetaApi; +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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + 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 new file mode 100644 index 000000000..48c133832 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java @@ -0,0 +1,1536 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..1576cad2f --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java @@ -0,0 +1,273 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.core.BetaApi; +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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + 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 new file mode 100644 index 000000000..c5e4ffe2e --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java @@ -0,0 +1,1003 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..603508979 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java @@ -0,0 +1,240 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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.core.BetaApi; +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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + 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 new file mode 100644 index 000000000..e29e092e0 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json @@ -0,0 +1,165 @@ +{ + "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 new file mode 100644 index 000000000..4f6420980 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java @@ -0,0 +1,84 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * 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 new file mode 100644 index 000000000..b14a8c3f9 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java @@ -0,0 +1,268 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..df6bdaee3 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java @@ -0,0 +1,1606 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.core.BetaApi; +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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + 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. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + 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. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + 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. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + 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. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + 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. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + 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 new file mode 100644 index 000000000..3087b1086 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..71e273bc4 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java @@ -0,0 +1,1198 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..aa0d7a48d --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..e3d33f31d --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java @@ -0,0 +1,357 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..4057830b0 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..19ac83ffd --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java @@ -0,0 +1,299 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..0598eed81 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java @@ -0,0 +1,95 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 new file mode 100644 index 000000000..e96353717 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java @@ -0,0 +1,773 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.core.BetaApi; +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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + 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 new file mode 100644 index 000000000..be664c8fe --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java @@ -0,0 +1,69 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..e7eefab52 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java @@ -0,0 +1,490 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.core.BetaApi; +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(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + 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 new file mode 100644 index 000000000..6627c3cf1 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/resources/META-INF/native-image/com.google.cloud.logging.v2/reflect-config.json @@ -0,0 +1,2981 @@ +[ + { + "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$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$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$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 new file mode 100644 index 000000000..fb3327152 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java @@ -0,0 +1,3269 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..736ef717b --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/LoggingClientTest.java @@ -0,0 +1,656 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..36e69467f --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java @@ -0,0 +1,550 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..19151b235 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 new file mode 100644 index 000000000..4466aca29 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java @@ -0,0 +1,762 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..b178291ec --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 new file mode 100644 index 000000000..2d98bf7ed --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockLoggingServiceV2Impl.java @@ -0,0 +1,213 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 new file mode 100644 index 000000000..b500421ac --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2.java @@ -0,0 +1,59 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 new file mode 100644 index 000000000..417c754fb --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockMetricsServiceV2Impl.java @@ -0,0 +1,173 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java similarity index 52% rename from grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java rename to owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java index 2363bf43f..2f08027e5 100644 --- a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java +++ b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.logging.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Service for configuring sinks used to route log entries.
  * 
@@ -35,1357 +18,1043 @@ 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< - com.google.logging.v2.ListBucketsRequest, com.google.logging.v2.ListBucketsResponse> - getListBucketsMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getListBucketsMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.GetBucketRequest, com.google.logging.v2.LogBucket> - getGetBucketMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getGetBucketMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation> - getCreateBucketAsyncMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation> - getCreateBucketAsyncMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation> - getCreateBucketAsyncMethod; + public static io.grpc.MethodDescriptor getCreateBucketAsyncMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation> - getUpdateBucketAsyncMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation> - getUpdateBucketAsyncMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation> - getUpdateBucketAsyncMethod; + public static io.grpc.MethodDescriptor getUpdateBucketAsyncMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.LogBucket> - getCreateBucketMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getCreateBucketMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.LogBucket> - getUpdateBucketMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getUpdateBucketMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.DeleteBucketRequest, com.google.protobuf.Empty> - getDeleteBucketMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.DeleteBucketRequest, com.google.protobuf.Empty> - getDeleteBucketMethod() { - io.grpc.MethodDescriptor - getDeleteBucketMethod; + public static io.grpc.MethodDescriptor 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< - com.google.logging.v2.UndeleteBucketRequest, com.google.protobuf.Empty> - getUndeleteBucketMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.UndeleteBucketRequest, com.google.protobuf.Empty> - getUndeleteBucketMethod() { - io.grpc.MethodDescriptor - getUndeleteBucketMethod; + public static io.grpc.MethodDescriptor 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< - com.google.logging.v2.ListViewsRequest, com.google.logging.v2.ListViewsResponse> - getListViewsMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getListViewsMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.GetViewRequest, com.google.logging.v2.LogView> - getGetViewMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.GetViewRequest, com.google.logging.v2.LogView> - getGetViewMethod() { - io.grpc.MethodDescriptor - getGetViewMethod; + public static io.grpc.MethodDescriptor 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< - com.google.logging.v2.CreateViewRequest, com.google.logging.v2.LogView> - getCreateViewMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.CreateViewRequest, com.google.logging.v2.LogView> - getCreateViewMethod() { - io.grpc.MethodDescriptor - getCreateViewMethod; + public static io.grpc.MethodDescriptor 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< - com.google.logging.v2.UpdateViewRequest, com.google.logging.v2.LogView> - getUpdateViewMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.UpdateViewRequest, com.google.logging.v2.LogView> - getUpdateViewMethod() { - io.grpc.MethodDescriptor - getUpdateViewMethod; + public static io.grpc.MethodDescriptor 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< - com.google.logging.v2.DeleteViewRequest, com.google.protobuf.Empty> - getDeleteViewMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.DeleteViewRequest, com.google.protobuf.Empty> - getDeleteViewMethod() { - io.grpc.MethodDescriptor - getDeleteViewMethod; + public static io.grpc.MethodDescriptor 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< - com.google.logging.v2.ListSinksRequest, com.google.logging.v2.ListSinksResponse> - getListSinksMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getListSinksMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.GetSinkRequest, com.google.logging.v2.LogSink> - getGetSinkMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.GetSinkRequest, com.google.logging.v2.LogSink> - getGetSinkMethod() { - io.grpc.MethodDescriptor - getGetSinkMethod; + public static io.grpc.MethodDescriptor 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< - com.google.logging.v2.CreateSinkRequest, com.google.logging.v2.LogSink> - getCreateSinkMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.CreateSinkRequest, com.google.logging.v2.LogSink> - getCreateSinkMethod() { - io.grpc.MethodDescriptor - getCreateSinkMethod; + public static io.grpc.MethodDescriptor 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< - com.google.logging.v2.UpdateSinkRequest, com.google.logging.v2.LogSink> - getUpdateSinkMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.UpdateSinkRequest, com.google.logging.v2.LogSink> - getUpdateSinkMethod() { - io.grpc.MethodDescriptor - getUpdateSinkMethod; + public static io.grpc.MethodDescriptor 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< - com.google.logging.v2.DeleteSinkRequest, com.google.protobuf.Empty> - getDeleteSinkMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.DeleteSinkRequest, com.google.protobuf.Empty> - getDeleteSinkMethod() { - io.grpc.MethodDescriptor - getDeleteSinkMethod; + public static io.grpc.MethodDescriptor 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< - com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation> - getCreateLinkMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation> - getCreateLinkMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation> - getCreateLinkMethod; + public static io.grpc.MethodDescriptor getCreateLinkMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation> - getDeleteLinkMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation> - getDeleteLinkMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation> - getDeleteLinkMethod; + public static io.grpc.MethodDescriptor getDeleteLinkMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.ListLinksRequest, com.google.logging.v2.ListLinksResponse> - getListLinksMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getListLinksMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.GetLinkRequest, com.google.logging.v2.Link> - getGetLinkMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.GetLinkRequest, com.google.logging.v2.Link> - getGetLinkMethod() { - io.grpc.MethodDescriptor - getGetLinkMethod; + public static io.grpc.MethodDescriptor 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< - com.google.logging.v2.ListExclusionsRequest, com.google.logging.v2.ListExclusionsResponse> - getListExclusionsMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getListExclusionsMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.GetExclusionRequest, com.google.logging.v2.LogExclusion> - getGetExclusionMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getGetExclusionMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.CreateExclusionRequest, com.google.logging.v2.LogExclusion> - getCreateExclusionMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getCreateExclusionMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.UpdateExclusionRequest, com.google.logging.v2.LogExclusion> - getUpdateExclusionMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getUpdateExclusionMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty> - getDeleteExclusionMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty> - getDeleteExclusionMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty> - getDeleteExclusionMethod; + public static io.grpc.MethodDescriptor getDeleteExclusionMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.GetCmekSettingsRequest, com.google.logging.v2.CmekSettings> - getGetCmekSettingsMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getGetCmekSettingsMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.UpdateCmekSettingsRequest, com.google.logging.v2.CmekSettings> - getUpdateCmekSettingsMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getUpdateCmekSettingsMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings> - getGetSettingsMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getGetSettingsMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings> - getUpdateSettingsMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getUpdateSettingsMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.CopyLogEntriesRequest, com.google.longrunning.Operation> - getCopyLogEntriesMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.CopyLogEntriesRequest, com.google.longrunning.Operation> - getCopyLogEntriesMethod() { - io.grpc.MethodDescriptor< - com.google.logging.v2.CopyLogEntriesRequest, com.google.longrunning.Operation> - getCopyLogEntriesMethod; + public static io.grpc.MethodDescriptor getCopyLogEntriesMethod() { + io.grpc.MethodDescriptor 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.
    * 
@@ -1393,50 +1062,37 @@ public ConfigServiceV2FutureStub newStub( 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
@@ -1444,31 +1100,23 @@ default void createBucketAsync(
      * 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
@@ -1476,16 +1124,12 @@ default void createBucket(
      * 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.
@@ -1493,71 +1137,54 @@ default void updateBucket(
      * 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`.
@@ -1566,15 +1193,12 @@ default void createView(
      * 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
@@ -1582,41 +1206,32 @@ default void updateView(
      * 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
@@ -1624,15 +1239,12 @@ default void getSink(
      * 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`.
@@ -1640,158 +1252,119 @@ default void createSink(
      * `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,
@@ -1803,16 +1376,12 @@ default void deleteExclusion(
      * 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
@@ -1828,16 +1397,12 @@ default void getCmekSettings(
      * 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,
@@ -1849,16 +1414,12 @@ default void updateCmekSettings(
      * 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
@@ -1875,112 +1436,90 @@ default void getSettings(
      * 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 abstract static class ConfigServiceV2ImplBase + public static abstract 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
@@ -1988,35 +1527,25 @@ public void createBucketAsync(
      * 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
@@ -2024,18 +1553,13 @@ public void createBucket(
      * 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.
@@ -2043,78 +1567,59 @@ public void updateBucket(
      * 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`.
@@ -2123,16 +1628,13 @@ public void createView(
      * 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
@@ -2140,44 +1642,35 @@ public void updateView(
      * 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
@@ -2185,16 +1678,13 @@ public void getSink(
      * 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`.
@@ -2202,174 +1692,130 @@ public void createSink(
      * `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,
@@ -2381,18 +1827,13 @@ public void deleteExclusion(
      * 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
@@ -2408,18 +1849,13 @@ public void getCmekSettings(
      * 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,
@@ -2431,18 +1867,13 @@ public void updateCmekSettings(
      * 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
@@ -2459,42 +1890,34 @@ public void getSettings(
      * 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); } @@ -2505,48 +1928,37 @@ 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
@@ -2554,29 +1966,23 @@ public com.google.longrunning.Operation createBucketAsync(
      * 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
@@ -2584,15 +1990,12 @@ public com.google.logging.v2.LogBucket createBucket(
      * 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.
@@ -2600,42 +2003,33 @@ public com.google.logging.v2.LogBucket updateBucket(
      * 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..
      * 
@@ -2646,22 +2040,17 @@ 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`.
@@ -2670,15 +2059,12 @@ public com.google.logging.v2.LogView 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
@@ -2692,21 +2078,16 @@ 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.
      * 
@@ -2717,8 +2098,6 @@ 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
@@ -2726,15 +2105,12 @@ 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`.
@@ -2742,15 +2118,12 @@ public com.google.logging.v2.LogSink 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.
@@ -2762,50 +2135,39 @@ 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.
      * 
@@ -2816,76 +2178,59 @@ 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,
@@ -2897,15 +2242,12 @@ public com.google.protobuf.Empty deleteExclusion(
      * 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
@@ -2921,15 +2263,12 @@ public com.google.logging.v2.CmekSettings getCmekSettings(
      * 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,
@@ -2941,15 +2280,12 @@ public com.google.logging.v2.CmekSettings updateCmekSettings(
      * 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
@@ -2966,21 +2302,17 @@ public com.google.logging.v2.Settings getSettings(
      * 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); } @@ -2988,14 +2320,14 @@ public com.google.longrunning.Operation copyLogEntries( /** * 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); } @@ -3006,49 +2338,40 @@ protected ConfigServiceV2FutureStub build( } /** - * - * *
      * Lists log buckets.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.logging.v2.ListBucketsResponse> - listBuckets(com.google.logging.v2.ListBucketsRequest request) { + public com.google.common.util.concurrent.ListenableFuture 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
@@ -3056,29 +2379,25 @@ protected ConfigServiceV2FutureStub build(
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - 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
@@ -3086,15 +2405,13 @@ protected ConfigServiceV2FutureStub build(
      * After a bucket has been created, the bucket's location cannot be changed.
      * 
*/ - 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.
@@ -3102,70 +2419,59 @@ protected ConfigServiceV2FutureStub build(
      * will be permanently deleted.
      * 
*/ - 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< - com.google.logging.v2.ListViewsResponse> - listViews(com.google.logging.v2.ListViewsRequest request) { + public com.google.common.util.concurrent.ListenableFuture 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`.
@@ -3174,15 +2480,13 @@ protected ConfigServiceV2FutureStub build(
      * few minutes.
      * 
*/ - 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
@@ -3197,35 +2501,28 @@ public com.google.common.util.concurrent.ListenableFuture
      * Lists sinks.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.logging.v2.ListSinksResponse> - listSinks(com.google.logging.v2.ListSinksRequest request) { + public com.google.common.util.concurrent.ListenableFuture 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
@@ -3233,15 +2530,13 @@ 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`.
@@ -3249,15 +2544,13 @@ 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.
@@ -3270,51 +2563,42 @@ 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< - com.google.logging.v2.ListLinksResponse> - listLinks(com.google.logging.v2.ListLinksRequest request) { + public com.google.common.util.concurrent.ListenableFuture listLinks( + com.google.logging.v2.ListLinksRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListLinksMethod(), getCallOptions()), request); } /** - * - * *
      * Gets a link.
      * 
@@ -3326,77 +2610,64 @@ 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< - com.google.logging.v2.ListExclusionsResponse> - listExclusions(com.google.logging.v2.ListExclusionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture 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,
@@ -3408,15 +2679,13 @@ 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
@@ -3432,15 +2701,13 @@ 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,
@@ -3452,15 +2719,13 @@ 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
@@ -3477,21 +2742,19 @@ 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); } @@ -3530,11 +2793,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; @@ -3548,168 +2811,131 @@ private static final class MethodHandlers 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: @@ -3731,204 +2957,234 @@ 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 abstract static class ConfigServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class ConfigServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ConfigServiceV2BaseDescriptorSupplier() {} @java.lang.Override @@ -3970,43 +3226,41 @@ 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/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java similarity index 50% rename from grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java rename to owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java index 3f8b7432e..0355029b0 100644 --- a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java +++ b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.logging.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Service for ingesting and querying logs.
  * 
@@ -35,315 +18,237 @@ 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< - com.google.logging.v2.DeleteLogRequest, com.google.protobuf.Empty> - getDeleteLogMethod; + private static volatile io.grpc.MethodDescriptor 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< - com.google.logging.v2.DeleteLogRequest, com.google.protobuf.Empty> - getDeleteLogMethod() { - io.grpc.MethodDescriptor - getDeleteLogMethod; + public static io.grpc.MethodDescriptor 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< - com.google.logging.v2.WriteLogEntriesRequest, - com.google.logging.v2.WriteLogEntriesResponse> - getWriteLogEntriesMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getWriteLogEntriesMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.ListLogEntriesRequest, com.google.logging.v2.ListLogEntriesResponse> - getListLogEntriesMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getListLogEntriesMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse> - getListMonitoredResourceDescriptorsMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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) { + public static io.grpc.MethodDescriptor getListMonitoredResourceDescriptorsMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.ListLogsRequest, com.google.logging.v2.ListLogsResponse> - getListLogsMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getListLogsMethod() { + io.grpc.MethodDescriptor 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< - com.google.logging.v2.TailLogEntriesRequest, com.google.logging.v2.TailLogEntriesResponse> - getTailLogEntriesMethod; + private static volatile io.grpc.MethodDescriptor 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< - 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; + public static io.grpc.MethodDescriptor getTailLogEntriesMethod() { + io.grpc.MethodDescriptor 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.
    * 
@@ -351,8 +256,6 @@ public LoggingServiceV2FutureStub newStub( 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
@@ -360,15 +263,12 @@ 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
@@ -379,17 +279,12 @@ default void deleteLog(
      * 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
@@ -397,96 +292,78 @@ default void writeLogEntries(
      * 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 abstract static class LoggingServiceV2ImplBase + public static abstract 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
@@ -494,16 +371,13 @@ protected LoggingServiceV2Stub build(io.grpc.Channel channel, io.grpc.CallOption
      * 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
@@ -514,19 +388,13 @@ public void deleteLog(
      * 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
@@ -534,59 +402,43 @@ public void writeLogEntries(
      * 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); } @@ -594,14 +446,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); } @@ -612,8 +464,6 @@ 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
@@ -627,8 +477,6 @@ 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
@@ -639,15 +487,12 @@ 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
@@ -655,36 +500,28 @@ public com.google.logging.v2.WriteLogEntriesResponse writeLogEntries(
      * 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); } @@ -692,14 +529,14 @@ public com.google.logging.v2.ListLogsResponse listLogs( /** * 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); } @@ -710,8 +547,6 @@ 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
@@ -726,8 +561,6 @@ 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
@@ -738,16 +571,13 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture<
-            com.google.logging.v2.WriteLogEntriesResponse>
-        writeLogEntries(com.google.logging.v2.WriteLogEntriesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture 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
@@ -755,40 +585,31 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture<
-            com.google.logging.v2.ListLogEntriesResponse>
-        listLogEntries(com.google.logging.v2.ListLogEntriesRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture 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< - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse> - listMonitoredResourceDescriptors( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request) { + public com.google.common.util.concurrent.ListenableFuture 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< - com.google.logging.v2.ListLogsResponse> - listLogs(com.google.logging.v2.ListLogsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listLogs( + com.google.logging.v2.ListLogsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListLogsMethod(), getCallOptions()), request); } @@ -801,11 +622,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; @@ -819,34 +640,24 @@ private static final class MethodHandlers 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< - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse>) - responseObserver); + serviceImpl.listMonitoredResourceDescriptors((com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) request, + (io.grpc.stub.StreamObserver) 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(); @@ -859,10 +670,8 @@ 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(); } @@ -872,51 +681,52 @@ 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 abstract static class LoggingServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class LoggingServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { LoggingServiceV2BaseDescriptorSupplier() {} @java.lang.Override @@ -958,17 +768,15 @@ 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/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 new file mode 100644 index 000000000..2945040f5 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java @@ -0,0 +1,667 @@ +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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java similarity index 69% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java index 03024d897..df7c377ad 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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
@@ -80,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The datasetId. */ @java.lang.Override @@ -89,15 +66,14 @@ 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
@@ -109,15 +85,16 @@ 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 { @@ -126,7 +103,6 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,7 +114,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); } @@ -162,14 +139,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.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; } @@ -188,135 +166,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +301,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 @@ -347,11 +322,8 @@ 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; } @@ -367,39 +339,38 @@ 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; @@ -439,19 +410,17 @@ 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) { @@ -461,13 +430,10 @@ 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
@@ -479,13 +445,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; @@ -494,8 +460,6 @@ 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
@@ -507,14 +471,15 @@ 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 { @@ -522,8 +487,6 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } } /** - * - * *
      * 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
@@ -535,22 +498,18 @@ public com.google.protobuf.ByteString getDatasetIdBytes() {
      * 
* * 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
@@ -562,7 +521,6 @@ public Builder setDatasetId(java.lang.String value) {
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDatasetId() { @@ -572,8 +530,6 @@ 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
@@ -585,23 +541,21 @@ 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); } @@ -611,12 +565,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(); } @@ -625,27 +579,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; @@ -660,4 +614,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.BigQueryDataset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java similarity index 65% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java index 86f9e3e77..282beac64 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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
@@ -37,13 +19,10 @@ public interface BigQueryDatasetOrBuilder
    * 
* * 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
@@ -55,8 +34,8 @@ public interface BigQueryDatasetOrBuilder
    * 
* * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java index 626889568..071befe4b 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java @@ -1,70 +1,50 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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
@@ -77,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The usePartitionedTables. */ @java.lang.Override @@ -88,8 +67,6 @@ 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.
@@ -100,9 +77,7 @@ 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 @@ -111,7 +86,6 @@ public boolean getUsesTimestampColumnPartitioning() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -123,7 +97,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (usePartitionedTables_ != false) { output.writeBool(1, usePartitionedTables_); } @@ -140,12 +115,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; @@ -155,16 +130,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.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; } @@ -177,145 +153,142 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +299,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 @@ -347,11 +320,8 @@ 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; } @@ -370,39 +340,38 @@ 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; @@ -443,25 +412,22 @@ 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) { @@ -471,13 +437,10 @@ 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
@@ -490,7 +453,6 @@ public Builder mergeFrom(
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The usePartitionedTables. */ @java.lang.Override @@ -498,8 +460,6 @@ public boolean getUsePartitionedTables() { return usePartitionedTables_; } /** - * - * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -512,7 +472,6 @@ public boolean getUsePartitionedTables() {
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The usePartitionedTables to set. * @return This builder for chaining. */ @@ -524,8 +483,6 @@ public Builder setUsePartitionedTables(boolean value) { return this; } /** - * - * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -538,7 +495,6 @@ public Builder setUsePartitionedTables(boolean value) {
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUsePartitionedTables() { @@ -548,10 +504,8 @@ 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.
@@ -562,10 +516,7 @@ 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 @@ -573,8 +524,6 @@ 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.
@@ -585,10 +534,7 @@ 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. */ @@ -600,8 +546,6 @@ 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.
@@ -612,10 +556,7 @@ 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() { @@ -624,9 +565,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); } @@ -636,12 +577,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(); } @@ -650,27 +591,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; @@ -685,4 +626,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.BigQueryOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java similarity index 68% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java index f7274139f..743b341c5 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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
@@ -38,14 +20,11 @@ public interface BigQueryOptionsOrBuilder
    * 
* * 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.
@@ -56,9 +35,7 @@ public interface BigQueryOptionsOrBuilder
    * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java index be4aab07f..0b7efd507 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java @@ -1,81 +1,58 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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 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; } @@ -91,37 +68,31 @@ 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 @@ -129,14 +100,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -144,8 +112,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The create time of an operation.
    * 
@@ -160,14 +126,11 @@ 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 @@ -175,14 +138,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -190,8 +150,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The end time of an operation.
    * 
@@ -206,48 +164,36 @@ 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 @@ -255,26 +201,21 @@ 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.
    * 
@@ -284,21 +225,18 @@ 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 @@ -306,26 +244,21 @@ 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.
    * 
@@ -335,13 +268,12 @@ 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; @@ -353,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -379,23 +312,24 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } 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; @@ -405,7 +339,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); @@ -414,20 +348,24 @@ 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: @@ -470,135 +408,132 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -626,9 +561,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 @@ -648,9 +583,7 @@ 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; @@ -659,10 +592,14 @@ public com.google.logging.v2.BucketMetadata buildPartial() { private void buildPartial0(com.google.logging.v2.BucketMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.state_ = state_; @@ -672,10 +609,12 @@ 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(); } } @@ -684,39 +623,38 @@ 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; @@ -735,20 +673,17 @@ 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(); @@ -776,45 +711,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) { @@ -824,12 +759,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() { @@ -843,33 +778,24 @@ 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() { @@ -880,8 +806,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The create time of an operation.
      * 
@@ -902,15 +826,14 @@ 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 { @@ -921,8 +844,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The create time of an operation.
      * 
@@ -931,9 +852,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ 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; @@ -946,8 +867,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The create time of an operation.
      * 
@@ -965,8 +884,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The create time of an operation.
      * 
@@ -979,8 +896,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The create time of an operation.
      * 
@@ -991,12 +906,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * The create time of an operation.
      * 
@@ -1004,17 +918,14 @@ 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_; @@ -1022,33 +933,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * 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() { @@ -1059,8 +961,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The end time of an operation.
      * 
@@ -1081,15 +981,14 @@ 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 { @@ -1100,8 +999,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1110,9 +1007,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ 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; @@ -1125,8 +1022,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1144,8 +1039,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1158,8 +1051,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The end time of an operation.
      * 
@@ -1170,12 +1061,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * The end time of an operation.
      * 
@@ -1183,17 +1073,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1201,29 +1088,22 @@ 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. */ @@ -1234,31 +1114,24 @@ 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. */ @@ -1272,14 +1145,11 @@ 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() { @@ -1290,19 +1160,13 @@ 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 @@ -1310,14 +1174,11 @@ public boolean hasCreateBucketRequest() { return requestCase_ == 4; } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
* * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; - * * @return The createBucketRequest. */ @java.lang.Override @@ -1335,8 +1196,6 @@ public com.google.logging.v2.CreateBucketRequest getCreateBucketRequest() { } } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1357,8 +1216,6 @@ public Builder setCreateBucketRequest(com.google.logging.v2.CreateBucketRequest return this; } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1377,8 +1234,6 @@ public Builder setCreateBucketRequest( return this; } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1387,13 +1242,10 @@ 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; } @@ -1409,8 +1261,6 @@ public Builder mergeCreateBucketRequest(com.google.logging.v2.CreateBucketReques return this; } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1434,8 +1284,6 @@ public Builder clearCreateBucketRequest() { return this; } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1446,8 +1294,6 @@ public com.google.logging.v2.CreateBucketRequest.Builder getCreateBucketRequestB return getCreateBucketRequestFieldBuilder().getBuilder(); } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1466,8 +1312,6 @@ public com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequest } } /** - * - * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1475,19 +1319,14 @@ 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()); @@ -1499,19 +1338,13 @@ 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 @@ -1519,14 +1352,11 @@ public boolean hasUpdateBucketRequest() { return requestCase_ == 5; } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
* * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; - * * @return The updateBucketRequest. */ @java.lang.Override @@ -1544,8 +1374,6 @@ public com.google.logging.v2.UpdateBucketRequest getUpdateBucketRequest() { } } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1566,8 +1394,6 @@ public Builder setUpdateBucketRequest(com.google.logging.v2.UpdateBucketRequest return this; } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1586,8 +1412,6 @@ public Builder setUpdateBucketRequest( return this; } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1596,13 +1420,10 @@ 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; } @@ -1618,8 +1439,6 @@ public Builder mergeUpdateBucketRequest(com.google.logging.v2.UpdateBucketReques return this; } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1643,8 +1462,6 @@ public Builder clearUpdateBucketRequest() { return this; } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1655,8 +1472,6 @@ public com.google.logging.v2.UpdateBucketRequest.Builder getUpdateBucketRequestB return getUpdateBucketRequestFieldBuilder().getBuilder(); } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1675,8 +1490,6 @@ public com.google.logging.v2.UpdateBucketRequestOrBuilder getUpdateBucketRequest } } /** - * - * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1684,19 +1497,14 @@ 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()); @@ -1706,9 +1514,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); } @@ -1718,12 +1526,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(); } @@ -1732,27 +1540,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; @@ -1767,4 +1575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.BucketMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java similarity index 81% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java index 4d712dbbd..247133574 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    * 
@@ -59,32 +35,24 @@ public interface BucketMetadataOrBuilder 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.
    * 
@@ -94,57 +62,43 @@ public interface BucketMetadataOrBuilder 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.
    * 
@@ -154,32 +108,24 @@ public interface BucketMetadataOrBuilder 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java similarity index 80% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java index cc6576eda..457cd55ec 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto package com.google.logging.v2; /** - * - * *
  * Describes the customer-managed encryption key (CMEK) settings associated with
  * a project, folder, organization, billing account, or flexible resource.
@@ -36,16 +19,15 @@
  *
  * 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_ = "";
@@ -55,38 +37,33 @@ 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 @@ -95,29 +72,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 { @@ -126,12 +103,9 @@ public com.google.protobuf.ByteString getNameBytes() { } 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.
    *
@@ -164,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string kms_key_name = 2; - * * @return The kmsKeyName. */ @java.lang.Override @@ -173,15 +146,14 @@ 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.
    *
@@ -214,15 +186,16 @@ 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 { @@ -231,12 +204,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } 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.
    *
@@ -258,7 +228,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
    * 
* * string kms_key_version_name = 4; - * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -267,15 +236,14 @@ 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.
    *
@@ -297,15 +265,16 @@ 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 { @@ -314,12 +283,9 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } 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.
@@ -336,7 +302,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() {
    * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ @java.lang.Override @@ -345,15 +310,14 @@ 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.
@@ -370,15 +334,16 @@ 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 { @@ -387,7 +352,6 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -399,7 +363,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -441,17 +406,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.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; } @@ -476,103 +445,99 @@ 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.
@@ -588,32 +553,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -626,9 +592,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
@@ -648,9 +614,7 @@ 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;
     }
@@ -675,39 +639,38 @@ 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;
@@ -762,37 +725,32 @@ 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) {
@@ -802,25 +760,22 @@ 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; @@ -829,21 +784,20 @@ 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 { @@ -851,35 +805,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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() { @@ -889,21 +836,17 @@ 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; @@ -913,8 +856,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -947,13 +888,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -962,8 +903,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -996,14 +935,15 @@ 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 { @@ -1011,8 +951,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -1045,22 +983,18 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * 
* * 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.
      *
@@ -1093,7 +1027,6 @@ public Builder setKmsKeyName(java.lang.String value) {
      * 
* * string kms_key_name = 2; - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -1103,8 +1036,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -1137,14 +1068,12 @@ 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; @@ -1154,8 +1083,6 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyVersionName_ = ""; /** - * - * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1177,13 +1104,13 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -1192,8 +1119,6 @@ public java.lang.String getKmsKeyVersionName() { } } /** - * - * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1215,14 +1140,15 @@ 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 { @@ -1230,8 +1156,6 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { } } /** - * - * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1253,22 +1177,18 @@ public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() {
      * 
* * 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.
      *
@@ -1290,7 +1210,6 @@ public Builder setKmsKeyVersionName(java.lang.String value) {
      * 
* * string kms_key_version_name = 4; - * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -1300,8 +1219,6 @@ public Builder clearKmsKeyVersionName() { return this; } /** - * - * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1323,14 +1240,12 @@ 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; @@ -1340,8 +1255,6 @@ public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountId_ = ""; /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1358,13 +1271,13 @@ public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -1373,8 +1286,6 @@ public java.lang.String getServiceAccountId() { } } /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1391,14 +1302,15 @@ 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 { @@ -1406,8 +1318,6 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() { } } /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1424,22 +1334,18 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() {
      * 
* * 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.
@@ -1456,7 +1362,6 @@ public Builder setServiceAccountId(java.lang.String value) {
      * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearServiceAccountId() { @@ -1466,8 +1371,6 @@ public Builder clearServiceAccountId() { return this; } /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1484,23 +1387,21 @@ 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); } @@ -1510,12 +1411,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(); } @@ -1524,27 +1425,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; @@ -1559,4 +1460,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CmekSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java index c9c78694e..09a410fb9 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java @@ -63,7 +63,7 @@ private CmekSettingsName(Builder builder) { pathTemplate = PROJECT; } - private CmekSettingsName(OrganizationCmekSettingsBuilder builder) { + private CmekSettingsName(OrganizationBuilder builder) { organization = Preconditions.checkNotNull(builder.getOrganization()); project = null; folder = null; @@ -71,7 +71,7 @@ private CmekSettingsName(OrganizationCmekSettingsBuilder builder) { pathTemplate = ORGANIZATION; } - private CmekSettingsName(FolderCmekSettingsBuilder builder) { + private CmekSettingsName(FolderBuilder builder) { folder = Preconditions.checkNotNull(builder.getFolder()); project = null; organization = null; @@ -79,7 +79,7 @@ private CmekSettingsName(FolderCmekSettingsBuilder builder) { pathTemplate = FOLDER; } - private CmekSettingsName(BillingAccountCmekSettingsBuilder builder) { + private CmekSettingsName(BillingAccountBuilder builder) { billingAccount = Preconditions.checkNotNull(builder.getBillingAccount()); project = null; organization = null; @@ -112,25 +112,19 @@ public static Builder newProjectBuilder() { return new Builder(); } - /** @deprecated Please use {@link #newProjectBuilder()} instead */ - @Deprecated - public static Builder newProjectCmekSettingsBuilder() { - return new Builder(); - } - @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static OrganizationCmekSettingsBuilder newOrganizationCmekSettingsBuilder() { - return new OrganizationCmekSettingsBuilder(); + public static OrganizationBuilder newOrganizationBuilder() { + return new OrganizationBuilder(); } @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static FolderCmekSettingsBuilder newFolderCmekSettingsBuilder() { - return new FolderCmekSettingsBuilder(); + public static FolderBuilder newFolderBuilder() { + return new FolderBuilder(); } @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static BillingAccountCmekSettingsBuilder newBillingAccountCmekSettingsBuilder() { - return new BillingAccountCmekSettingsBuilder(); + public static BillingAccountBuilder newBillingAccountBuilder() { + return new BillingAccountBuilder(); } public Builder toBuilder() { @@ -146,43 +140,19 @@ 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(); - } - @BetaApi("The static create methods are not stable yet and may be changed in the future.") public static CmekSettingsName ofOrganizationName(String organization) { - return newOrganizationCmekSettingsBuilder().setOrganization(organization).build(); - } - - /** @deprecated Please use {@link #ofOrganizationName(String)} instead */ - @Deprecated - public static CmekSettingsName ofOrganizationCmekSettingsName(String organization) { - return newOrganizationCmekSettingsBuilder().setOrganization(organization).build(); + return newOrganizationBuilder().setOrganization(organization).build(); } @BetaApi("The static create methods are not stable yet and may be changed in the future.") public static CmekSettingsName ofFolderName(String folder) { - return newFolderCmekSettingsBuilder().setFolder(folder).build(); - } - - /** @deprecated Please use {@link #ofFolderName(String)} instead */ - @Deprecated - public static CmekSettingsName ofFolderCmekSettingsName(String folder) { - return newFolderCmekSettingsBuilder().setFolder(folder).build(); + return newFolderBuilder().setFolder(folder).build(); } @BetaApi("The static create methods are not stable yet and may be changed in the future.") public static CmekSettingsName ofBillingAccountName(String billingAccount) { - return newBillingAccountCmekSettingsBuilder().setBillingAccount(billingAccount).build(); - } - - /** @deprecated Please use {@link #ofBillingAccountName(String)} instead */ - @Deprecated - public static CmekSettingsName ofBillingAccountCmekSettingsName(String billingAccount) { - return newBillingAccountCmekSettingsBuilder().setBillingAccount(billingAccount).build(); + return newBillingAccountBuilder().setBillingAccount(billingAccount).build(); } public static String format(String project) { @@ -194,49 +164,19 @@ 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(); - } - @BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatOrganizationName(String organization) { - 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(); + return newOrganizationBuilder().setOrganization(organization).build().toString(); } @BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatFolderName(String folder) { - 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(); + return newFolderBuilder().setFolder(folder).build().toString(); } @BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatBillingAccountName(String billingAccount) { - 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(); + return newBillingAccountBuilder().setBillingAccount(billingAccount).build().toString(); } public static CmekSettingsName parse(String formattedString) { @@ -245,16 +185,16 @@ public static CmekSettingsName parse(String formattedString) { } if (PROJECT.matches(formattedString)) { Map matchMap = PROJECT.match(formattedString); - return ofProjectCmekSettingsName(matchMap.get("project")); + return ofProjectName(matchMap.get("project")); } else if (ORGANIZATION.matches(formattedString)) { Map matchMap = ORGANIZATION.match(formattedString); - return ofOrganizationCmekSettingsName(matchMap.get("organization")); + return ofOrganizationName(matchMap.get("organization")); } else if (FOLDER.matches(formattedString)) { Map matchMap = FOLDER.match(formattedString); - return ofFolderCmekSettingsName(matchMap.get("folder")); + return ofFolderName(matchMap.get("folder")); } else if (BILLING_ACCOUNT.matches(formattedString)) { Map matchMap = BILLING_ACCOUNT.match(formattedString); - return ofBillingAccountCmekSettingsName(matchMap.get("billing_account")); + return ofBillingAccountName(matchMap.get("billing_account")); } throw new ValidationException("CmekSettingsName.parse: formattedString not in valid format"); } @@ -380,16 +320,16 @@ public CmekSettingsName build() { /** Builder for organizations/{organization}/cmekSettings. */ @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class OrganizationCmekSettingsBuilder { + public static class OrganizationBuilder { private String organization; - protected OrganizationCmekSettingsBuilder() {} + protected OrganizationBuilder() {} public String getOrganization() { return organization; } - public OrganizationCmekSettingsBuilder setOrganization(String organization) { + public OrganizationBuilder setOrganization(String organization) { this.organization = organization; return this; } @@ -401,16 +341,16 @@ public CmekSettingsName build() { /** Builder for folders/{folder}/cmekSettings. */ @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class FolderCmekSettingsBuilder { + public static class FolderBuilder { private String folder; - protected FolderCmekSettingsBuilder() {} + protected FolderBuilder() {} public String getFolder() { return folder; } - public FolderCmekSettingsBuilder setFolder(String folder) { + public FolderBuilder setFolder(String folder) { this.folder = folder; return this; } @@ -422,16 +362,16 @@ public CmekSettingsName build() { /** Builder for billingAccounts/{billing_account}/cmekSettings. */ @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static class BillingAccountCmekSettingsBuilder { + public static class BillingAccountBuilder { private String billingAccount; - protected BillingAccountCmekSettingsBuilder() {} + protected BillingAccountBuilder() {} public String getBillingAccount() { return billingAccount; } - public BillingAccountCmekSettingsBuilder setBillingAccount(String billingAccount) { + public BillingAccountBuilder setBillingAccount(String billingAccount) { this.billingAccount = billingAccount; return this; } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java similarity index 86% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java index 2ff3d0e8c..40f490845 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -83,13 +60,10 @@ public interface CmekSettingsOrBuilder
    * 
* * string kms_key_name = 2; - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * The resource name for the configured Cloud KMS key.
    *
@@ -122,14 +96,12 @@ public interface CmekSettingsOrBuilder
    * 
* * 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.
    *
@@ -151,13 +123,10 @@ public interface CmekSettingsOrBuilder
    * 
* * string kms_key_version_name = 4; - * * @return The kmsKeyVersionName. */ java.lang.String getKmsKeyVersionName(); /** - * - * *
    * The CryptoKeyVersion resource name for the configured Cloud KMS key.
    *
@@ -179,14 +148,12 @@ public interface CmekSettingsOrBuilder
    * 
* * 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.
@@ -203,13 +170,10 @@ public interface CmekSettingsOrBuilder
    * 
* * 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.
@@ -226,8 +190,8 @@ public interface CmekSettingsOrBuilder
    * 
* * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java index 37fbf3adb..08bba272f 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -44,36 +26,32 @@ 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); } 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 @@ -81,14 +59,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -96,8 +71,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The create time of an operation.
    * 
@@ -112,14 +85,11 @@ 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 @@ -127,14 +97,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -142,8 +109,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The end time of an operation.
    * 
@@ -158,49 +123,37 @@ 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 @@ -211,14 +164,11 @@ 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 @@ -226,25 +176,18 @@ public boolean hasRequest() { return request_ != null; } /** - * - * *
    * 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.
    * 
@@ -253,22 +196,17 @@ 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 @@ -277,12 +215,9 @@ 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.
@@ -294,7 +229,6 @@ public int getProgress() {
    * 
* * string writer_identity = 7; - * * @return The writerIdentity. */ @java.lang.Override @@ -303,15 +237,14 @@ 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.
@@ -323,15 +256,16 @@ 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 { @@ -340,7 +274,6 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -352,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -384,22 +318,28 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } 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 (request_ != null) { - 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_); @@ -412,30 +352,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.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; } @@ -458,7 +403,8 @@ 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(); @@ -472,136 +418,132 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -629,9 +571,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 @@ -650,11 +592,8 @@ 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; } @@ -662,10 +601,14 @@ public com.google.logging.v2.CopyLogEntriesMetadata buildPartial() { private void buildPartial0(com.google.logging.v2.CopyLogEntriesMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.state_ = state_; @@ -674,7 +617,9 @@ 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(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.progress_ = progress_; @@ -688,39 +633,38 @@ 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; @@ -778,55 +722,53 @@ 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) { @@ -836,38 +778,28 @@ 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() { @@ -878,8 +810,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The create time of an operation.
      * 
@@ -900,15 +830,14 @@ 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 { @@ -919,8 +848,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The create time of an operation.
      * 
@@ -929,9 +856,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ 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; @@ -944,8 +871,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The create time of an operation.
      * 
@@ -963,8 +888,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The create time of an operation.
      * 
@@ -977,8 +900,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The create time of an operation.
      * 
@@ -989,12 +910,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * The create time of an operation.
      * 
@@ -1002,17 +922,14 @@ 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_; @@ -1020,33 +937,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * 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() { @@ -1057,8 +965,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The end time of an operation.
      * 
@@ -1079,15 +985,14 @@ 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 { @@ -1098,8 +1003,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1108,9 +1011,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ 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; @@ -1123,8 +1026,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1142,8 +1043,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1156,8 +1055,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The end time of an operation.
      * 
@@ -1168,12 +1065,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * The end time of an operation.
      * 
@@ -1181,17 +1077,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1199,29 +1092,22 @@ 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. */ @@ -1232,31 +1118,24 @@ 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. */ @@ -1270,14 +1149,11 @@ 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() { @@ -1287,16 +1163,13 @@ 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 @@ -1304,14 +1177,11 @@ 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. */ @@ -1323,14 +1193,11 @@ 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() { @@ -1342,47 +1209,34 @@ 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.
      * 
@@ -1403,15 +1257,14 @@ 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 { @@ -1422,8 +1275,6 @@ public Builder setRequest(com.google.logging.v2.CopyLogEntriesRequest.Builder bu return this; } /** - * - * *
      * CopyLogEntries RPC request.
      * 
@@ -1432,9 +1283,9 @@ public Builder setRequest(com.google.logging.v2.CopyLogEntriesRequest.Builder bu */ 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; @@ -1447,8 +1298,6 @@ public Builder mergeRequest(com.google.logging.v2.CopyLogEntriesRequest value) { return this; } /** - * - * *
      * CopyLogEntries RPC request.
      * 
@@ -1466,8 +1315,6 @@ public Builder clearRequest() { return this; } /** - * - * *
      * CopyLogEntries RPC request.
      * 
@@ -1480,8 +1327,6 @@ public com.google.logging.v2.CopyLogEntriesRequest.Builder getRequestBuilder() { return getRequestFieldBuilder().getBuilder(); } /** - * - * *
      * CopyLogEntries RPC request.
      * 
@@ -1492,14 +1337,11 @@ 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.
      * 
@@ -1507,32 +1349,26 @@ 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 @@ -1540,14 +1376,11 @@ 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. */ @@ -1559,14 +1392,11 @@ 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() { @@ -1578,8 +1408,6 @@ public Builder clearProgress() { private java.lang.Object writerIdentity_ = ""; /** - * - * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1591,13 +1419,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; @@ -1606,8 +1434,6 @@ public java.lang.String getWriterIdentity() { } } /** - * - * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1619,14 +1445,15 @@ 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 { @@ -1634,8 +1461,6 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { } } /** - * - * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1647,22 +1472,18 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() {
      * 
* * 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.
@@ -1674,7 +1495,6 @@ public Builder setWriterIdentity(java.lang.String value) {
      * 
* * string writer_identity = 7; - * * @return This builder for chaining. */ public Builder clearWriterIdentity() { @@ -1684,8 +1504,6 @@ public Builder clearWriterIdentity() { return this; } /** - * - * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1697,23 +1515,21 @@ 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); } @@ -1723,12 +1539,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(); } @@ -1737,27 +1553,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; @@ -1772,4 +1588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CopyLogEntriesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java similarity index 80% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java index 12e4c900f..5e9f1d4ba 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    * 
@@ -59,32 +35,24 @@ public interface CopyLogEntriesMetadataOrBuilder 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.
    * 
@@ -94,70 +62,53 @@ public interface CopyLogEntriesMetadataOrBuilder 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.
    * 
@@ -167,21 +118,16 @@ public interface CopyLogEntriesMetadataOrBuilder 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.
@@ -193,13 +139,10 @@ public interface CopyLogEntriesMetadataOrBuilder
    * 
* * 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.
@@ -211,8 +154,8 @@ public interface CopyLogEntriesMetadataOrBuilder
    * 
* * string writer_identity = 7; - * * @return The bytes for writerIdentity. */ - com.google.protobuf.ByteString getWriterIdentityBytes(); + com.google.protobuf.ByteString + getWriterIdentityBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java index eef8bc1c1..43809b38b 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -45,32 +27,28 @@ 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.
    *
@@ -80,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -89,15 +66,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Log bucket from which to copy log entries.
    *
@@ -107,15 +83,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,19 +101,15 @@ public com.google.protobuf.ByteString getNameBytes() { } 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 @@ -145,30 +118,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 { @@ -177,18 +150,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } 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 @@ -197,29 +166,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 { @@ -228,7 +197,6 @@ public com.google.protobuf.ByteString getDestinationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +208,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -276,17 +245,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.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; } @@ -309,136 +280,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -450,9 +417,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 @@ -471,11 +438,8 @@ 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; } @@ -497,39 +461,38 @@ 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; @@ -579,31 +542,27 @@ 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) { @@ -613,13 +572,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -629,13 +585,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; @@ -644,8 +600,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -655,14 +609,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -670,8 +625,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -681,22 +634,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -706,7 +655,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -716,8 +664,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -727,14 +673,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -744,21 +688,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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; @@ -767,22 +709,21 @@ 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 { @@ -790,37 +731,30 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * 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() { @@ -830,22 +764,18 @@ 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; @@ -855,20 +785,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { 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; @@ -877,21 +805,20 @@ 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 { @@ -899,35 +826,28 @@ public com.google.protobuf.ByteString getDestinationBytes() { } } /** - * - * *
      * 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() { @@ -937,30 +857,26 @@ 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); } @@ -970,12 +886,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(); } @@ -984,27 +900,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; @@ -1019,4 +935,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CopyLogEntriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java index 6b4104b5c..a4859acbd 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -35,13 +17,10 @@ public interface CopyLogEntriesRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Log bucket from which to copy log entries.
    *
@@ -51,60 +30,50 @@ public interface CopyLogEntriesRequestOrBuilder
    * 
* * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java similarity index 64% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java index cecb2b973..d43b25602 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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 @@ -79,7 +58,6 @@ public long getLogEntriesCopiedCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -91,7 +69,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (logEntriesCopiedCount_ != 0L) { output.writeInt64(1, logEntriesCopiedCount_); } @@ -105,7 +84,8 @@ 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; @@ -115,15 +95,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; } @@ -136,142 +116,139 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -281,9 +258,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 @@ -302,11 +279,8 @@ 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; } @@ -322,39 +296,38 @@ 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; @@ -392,19 +365,17 @@ 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) { @@ -414,19 +385,15 @@ 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 @@ -434,14 +401,11 @@ 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. */ @@ -453,14 +417,11 @@ 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() { @@ -469,9 +430,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); } @@ -481,12 +442,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(); } @@ -495,27 +456,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; @@ -530,4 +491,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CopyLogEntriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..bc2ac8bbd --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java similarity index 69% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java index ae165de3d..13d664efe 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -44,32 +26,28 @@ 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); } 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:
    *
@@ -80,10 +58,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"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 @@ -92,15 +67,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource in which to create the log bucket:
    *
@@ -111,18 +85,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. */ @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 { @@ -131,12 +104,9 @@ public com.google.protobuf.ByteString getParentBytes() { } 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,
@@ -144,7 +114,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketId. */ @java.lang.Override @@ -153,15 +122,14 @@ 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,
@@ -169,15 +137,16 @@ 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 { @@ -188,8 +157,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() { 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
@@ -197,7 +164,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() {
    * 
* * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return Whether the bucket field is set. */ @java.lang.Override @@ -205,8 +171,6 @@ public boolean hasBucket() { return bucket_ != null; } /** - * - * *
    * 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
@@ -214,7 +178,6 @@ public boolean hasBucket() {
    * 
* * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucket. */ @java.lang.Override @@ -222,8 +185,6 @@ 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
@@ -238,7 +199,6 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -250,7 +210,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -276,7 +237,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bucketId_);
     }
     if (bucket_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBucket());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getBucket());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -286,19 +248,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.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;
@@ -324,136 +288,132 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +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_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 @@ -490,11 +450,8 @@ 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; } @@ -508,7 +465,9 @@ private void buildPartial0(com.google.logging.v2.CreateBucketRequest result) { result.bucketId_ = bucketId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null + ? bucket_ + : bucketBuilder_.build(); } } @@ -516,39 +475,38 @@ 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; @@ -596,31 +554,29 @@ 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) { @@ -630,13 +586,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource in which to create the log bucket:
      *
@@ -647,16 +600,14 @@ 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; @@ -665,8 +616,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource in which to create the log bucket:
      *
@@ -677,17 +626,16 @@ 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 { @@ -695,8 +643,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource in which to create the log bucket:
      *
@@ -707,25 +653,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *   `"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:
      *
@@ -736,10 +676,7 @@ public Builder setParent(java.lang.String value) {
      *   `"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() { @@ -749,8 +686,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The resource in which to create the log bucket:
      *
@@ -761,17 +696,13 @@ 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; @@ -781,8 +712,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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,
@@ -790,13 +719,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -805,8 +734,6 @@ 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,
@@ -814,14 +741,15 @@ 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 { @@ -829,8 +757,6 @@ public com.google.protobuf.ByteString getBucketIdBytes() { } } /** - * - * *
      * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers
      * are limited to 100 characters and can include only letters, digits,
@@ -838,22 +764,18 @@ public com.google.protobuf.ByteString getBucketIdBytes() {
      * 
* * 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,
@@ -861,7 +783,6 @@ public Builder setBucketId(java.lang.String value) {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBucketId() { @@ -871,8 +792,6 @@ 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,
@@ -880,14 +799,12 @@ 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; @@ -897,39 +814,28 @@ public Builder setBucketIdBytes(com.google.protobuf.ByteString value) { 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() { @@ -940,16 +846,13 @@ 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) { @@ -965,18 +868,16 @@ 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 { @@ -987,22 +888,19 @@ public Builder setBucket(com.google.logging.v2.LogBucket.Builder builderForValue 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; @@ -1015,16 +913,13 @@ 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); @@ -1037,16 +932,13 @@ 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; @@ -1054,55 +946,47 @@ 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); } @@ -1112,12 +996,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(); } @@ -1126,27 +1010,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; @@ -1161,4 +1045,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java index 63c6d5bd0..47b8f90a1 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -36,16 +18,11 @@ public interface CreateBucketRequestOrBuilder
    *   `"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:
    *
@@ -56,17 +33,13 @@ public interface CreateBucketRequestOrBuilder
    *   `"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,
@@ -74,13 +47,10 @@ public interface CreateBucketRequestOrBuilder
    * 
* * 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,
@@ -88,14 +58,12 @@ public interface CreateBucketRequestOrBuilder
    * 
* * 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
@@ -103,13 +71,10 @@ public interface CreateBucketRequestOrBuilder
    * 
* * .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
@@ -117,13 +82,10 @@ public interface CreateBucketRequestOrBuilder
    * 
* * .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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
similarity index 64%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
index 8c72e6256..0e42b77c7 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
@@ -1,74 +1,52 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/logging_config.proto
 
 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); } 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:
    *
@@ -83,10 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"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 @@ -95,15 +70,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource in which to create the exclusion:
    *
@@ -118,18 +92,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. */ @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 { @@ -140,16 +113,12 @@ public com.google.protobuf.ByteString getParentBytes() { 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 @@ -157,44 +126,32 @@ public boolean hasExclusion() { return exclusion_ != null; } /** - * - * *
    * 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; @@ -206,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -226,7 +184,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (exclusion_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExclusion()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -236,18 +195,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.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; @@ -271,136 +231,132 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,9 +371,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 @@ -436,11 +392,8 @@ 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; } @@ -451,7 +404,9 @@ private void buildPartial0(com.google.logging.v2.CreateExclusionRequest result) result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.exclusion_ = exclusionBuilder_ == null ? exclusion_ : exclusionBuilder_.build(); + result.exclusion_ = exclusionBuilder_ == null + ? exclusion_ + : exclusionBuilder_.build(); } } @@ -459,39 +414,38 @@ 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; @@ -534,25 +488,24 @@ 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) { @@ -562,13 +515,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -583,16 +533,14 @@ 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; @@ -601,8 +549,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -617,17 +563,16 @@ 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 { @@ -635,8 +580,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -651,25 +594,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *   `"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:
      *
@@ -684,10 +621,7 @@ public Builder setParent(java.lang.String value) {
      *   `"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() { @@ -697,8 +631,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -713,17 +645,13 @@ 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; @@ -733,61 +661,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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) { @@ -803,18 +712,15 @@ 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 { @@ -825,22 +731,18 @@ public Builder setExclusion(com.google.logging.v2.LogExclusion.Builder builderFo 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; @@ -853,16 +755,12 @@ 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); @@ -875,16 +773,12 @@ 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; @@ -892,57 +786,45 @@ 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); } @@ -952,12 +834,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(); } @@ -966,27 +848,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; @@ -1001,4 +883,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateExclusionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java index c33ee6cce..fdbb64f04 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -40,16 +22,11 @@ public interface CreateExclusionRequestOrBuilder
    *   `"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:
    *
@@ -64,52 +41,39 @@ public interface CreateExclusionRequestOrBuilder
    *   `"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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java index 3c0bea161..7d714b77a 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -44,32 +26,28 @@ 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); } 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.
    *
@@ -79,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     "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 @@ -91,15 +66,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the bucket to create a link for.
    *
@@ -109,18 +83,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. */ @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 { @@ -131,14 +104,11 @@ public com.google.protobuf.ByteString getParentBytes() { 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 @@ -146,14 +116,11 @@ public boolean hasLink() { return link_ != null; } /** - * - * *
    * Required. The new link.
    * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The link. */ @java.lang.Override @@ -161,8 +128,6 @@ public com.google.logging.v2.Link getLink() { return link_ == null ? com.google.logging.v2.Link.getDefaultInstance() : link_; } /** - * - * *
    * Required. The new link.
    * 
@@ -175,12 +140,9 @@ 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
@@ -188,7 +150,6 @@ public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() {
    * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The linkId. */ @java.lang.Override @@ -197,15 +158,14 @@ 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
@@ -213,15 +173,16 @@ 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 { @@ -230,7 +191,6 @@ public com.google.protobuf.ByteString getLinkIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -265,7 +226,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (link_ != null) { - 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_); @@ -278,19 +240,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.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; } @@ -315,136 +280,132 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -460,9 +421,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 @@ -481,11 +442,8 @@ 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; } @@ -496,7 +454,9 @@ private void buildPartial0(com.google.logging.v2.CreateLinkRequest result) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.link_ = linkBuilder_ == null ? link_ : linkBuilder_.build(); + result.link_ = linkBuilder_ == null + ? link_ + : linkBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.linkId_ = linkId_; @@ -507,39 +467,38 @@ 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; @@ -587,31 +546,29 @@ 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) { @@ -621,13 +578,10 @@ 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.
      *
@@ -637,16 +591,14 @@ 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; @@ -655,8 +607,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -666,17 +616,16 @@ 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 { @@ -684,8 +633,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -695,25 +642,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *     "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.
      *
@@ -723,10 +664,7 @@ public Builder setParent(java.lang.String value) {
      *     "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() { @@ -736,8 +674,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -747,17 +683,13 @@ 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; @@ -767,33 +699,24 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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() { @@ -804,8 +727,6 @@ public com.google.logging.v2.Link getLink() { } } /** - * - * *
      * Required. The new link.
      * 
@@ -826,15 +747,14 @@ 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 { @@ -845,8 +765,6 @@ public Builder setLink(com.google.logging.v2.Link.Builder builderForValue) { return this; } /** - * - * *
      * Required. The new link.
      * 
@@ -855,9 +773,9 @@ public Builder setLink(com.google.logging.v2.Link.Builder builderForValue) { */ 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; @@ -870,8 +788,6 @@ public Builder mergeLink(com.google.logging.v2.Link value) { return this; } /** - * - * *
      * Required. The new link.
      * 
@@ -889,8 +805,6 @@ public Builder clearLink() { return this; } /** - * - * *
      * Required. The new link.
      * 
@@ -903,8 +817,6 @@ public com.google.logging.v2.Link.Builder getLinkBuilder() { return getLinkFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The new link.
      * 
@@ -915,12 +827,11 @@ 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.
      * 
@@ -928,16 +839,14 @@ 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_; @@ -945,8 +854,6 @@ 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
@@ -954,13 +861,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; @@ -969,8 +876,6 @@ 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
@@ -978,14 +883,15 @@ 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 { @@ -993,8 +899,6 @@ public com.google.protobuf.ByteString getLinkIdBytes() { } } /** - * - * *
      * 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
@@ -1002,22 +906,18 @@ public com.google.protobuf.ByteString getLinkIdBytes() {
      * 
* * 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
@@ -1025,7 +925,6 @@ public Builder setLinkId(java.lang.String value) {
      * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLinkId() { @@ -1035,8 +934,6 @@ 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
@@ -1044,23 +941,21 @@ 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); } @@ -1070,12 +965,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(); } @@ -1084,27 +979,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; @@ -1119,4 +1014,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateLinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java index 76c5eb19a..7eadea562 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -35,16 +17,11 @@ public interface CreateLinkRequestOrBuilder
    *     "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.
    *
@@ -54,41 +31,31 @@ public interface CreateLinkRequestOrBuilder
    *     "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.
    * 
@@ -98,8 +65,6 @@ public interface CreateLinkRequestOrBuilder 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
@@ -107,13 +72,10 @@ public interface CreateLinkRequestOrBuilder
    * 
* * 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
@@ -121,8 +83,8 @@ public interface CreateLinkRequestOrBuilder
    * 
* * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java index 2e2602ba7..73452b726 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto 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); } 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:
    *
@@ -77,10 +55,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 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 @@ -89,15 +64,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name of the project in which to create the metric:
    *
@@ -106,18 +80,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. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,15 +101,12 @@ public com.google.protobuf.ByteString getParentBytes() { 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 @@ -144,15 +114,12 @@ public boolean hasMetric() { return metric_ != null; } /** - * - * *
    * 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 @@ -160,8 +127,6 @@ 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.
@@ -175,7 +140,6 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -187,7 +151,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -207,7 +172,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (metric_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetric());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getMetric());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -217,18 +183,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.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;
@@ -252,136 +219,132 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +359,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 @@ -417,11 +380,8 @@ 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; } @@ -432,7 +392,9 @@ private void buildPartial0(com.google.logging.v2.CreateLogMetricRequest result) result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.metric_ = metricBuilder_ == null ? metric_ : metricBuilder_.build(); + result.metric_ = metricBuilder_ == null + ? metric_ + : metricBuilder_.build(); } } @@ -440,39 +402,38 @@ 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; @@ -515,25 +476,24 @@ 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) { @@ -543,13 +503,10 @@ 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:
      *
@@ -558,16 +515,14 @@ 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; @@ -576,8 +531,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -586,17 +539,16 @@ 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 { @@ -604,8 +556,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -614,25 +564,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 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:
      *
@@ -641,10 +585,7 @@ public Builder setParent(java.lang.String value) {
      * 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() { @@ -654,8 +595,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -664,17 +603,13 @@ 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; @@ -684,37 +619,26 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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() { @@ -725,15 +649,12 @@ 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) { @@ -749,17 +670,15 @@ 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 { @@ -770,21 +689,18 @@ public Builder setMetric(com.google.logging.v2.LogMetric.Builder builderForValue 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; @@ -797,15 +713,12 @@ 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); @@ -818,15 +731,12 @@ 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; @@ -834,53 +744,45 @@ 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); } @@ -890,12 +792,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(); } @@ -904,27 +806,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; @@ -939,4 +841,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateLogMetricRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java index 572d95e53..30d602882 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto 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:
    *
@@ -34,16 +16,11 @@ public interface CreateLogMetricRequestOrBuilder
    * 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:
    *
@@ -52,43 +29,33 @@ public interface CreateLogMetricRequestOrBuilder
    * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java
similarity index 72%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java
index 1124f8503..29c83ca0f 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequest.java
@@ -1,74 +1,52 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/logging_config.proto
 
 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); } 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:
    *
@@ -83,10 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"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 @@ -95,15 +70,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource in which to create the sink:
    *
@@ -118,18 +92,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. */ @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 { @@ -140,15 +113,12 @@ public com.google.protobuf.ByteString getParentBytes() { 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 @@ -156,15 +126,12 @@ public boolean hasSink() { return sink_ != null; } /** - * - * *
    * 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 @@ -172,8 +139,6 @@ 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.
@@ -189,8 +154,6 @@ 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
@@ -207,7 +170,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -216,7 +178,6 @@ public boolean getUniqueWriterIdentity() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,7 +189,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -251,10 +213,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (sink_ != null) { - 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; @@ -264,19 +228,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.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; } @@ -295,142 +262,139 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +410,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 @@ -467,11 +431,8 @@ 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; } @@ -482,7 +443,9 @@ private void buildPartial0(com.google.logging.v2.CreateSinkRequest result) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.sink_ = sinkBuilder_ == null ? sink_ : sinkBuilder_.build(); + result.sink_ = sinkBuilder_ == null + ? sink_ + : sinkBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.uniqueWriterIdentity_ = uniqueWriterIdentity_; @@ -493,39 +456,38 @@ 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; @@ -571,31 +533,29 @@ 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) { @@ -605,13 +565,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource in which to create the sink:
      *
@@ -626,16 +583,14 @@ 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; @@ -644,8 +599,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource in which to create the sink:
      *
@@ -660,17 +613,16 @@ 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 { @@ -678,8 +630,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource in which to create the sink:
      *
@@ -694,25 +644,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *   `"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:
      *
@@ -727,10 +671,7 @@ public Builder setParent(java.lang.String value) {
      *   `"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() { @@ -740,8 +681,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The resource in which to create the sink:
      *
@@ -756,17 +695,13 @@ 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; @@ -776,35 +711,26 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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() { @@ -815,8 +741,6 @@ public com.google.logging.v2.LogSink getSink() { } } /** - * - * *
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -838,8 +762,6 @@ 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.
@@ -847,7 +769,8 @@ 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 {
@@ -858,8 +781,6 @@ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -869,9 +790,9 @@ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) {
      */
     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;
@@ -884,8 +805,6 @@ 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.
@@ -904,8 +823,6 @@ public Builder clearSink() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -919,8 +836,6 @@ 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.
@@ -932,12 +847,11 @@ 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.
@@ -946,26 +860,21 @@ 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
@@ -982,7 +891,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -990,8 +898,6 @@ 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
@@ -1008,7 +914,6 @@ public boolean getUniqueWriterIdentity() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The uniqueWriterIdentity to set. * @return This builder for chaining. */ @@ -1020,8 +925,6 @@ 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
@@ -1038,7 +941,6 @@ public Builder setUniqueWriterIdentity(boolean value) {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUniqueWriterIdentity() { @@ -1047,9 +949,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); } @@ -1059,12 +961,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(); } @@ -1073,27 +975,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; @@ -1108,4 +1010,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateSinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java index 9eeff1e80..be7925d7f 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -40,16 +22,11 @@ public interface CreateSinkRequestOrBuilder
    *   `"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:
    *
@@ -64,43 +41,33 @@ public interface CreateSinkRequestOrBuilder
    *   `"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.
@@ -111,8 +78,6 @@ public interface CreateSinkRequestOrBuilder
   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
@@ -129,7 +94,6 @@ public interface CreateSinkRequestOrBuilder
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ boolean getUniqueWriterIdentity(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java index fd81b7131..3b931347e 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -44,32 +26,28 @@ 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); } 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
    *
@@ -81,7 +59,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -90,15 +67,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The bucket in which to create the view
    *
@@ -110,15 +86,16 @@ 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 { @@ -127,12 +104,9 @@ public com.google.protobuf.ByteString getParentBytes() { } 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,
@@ -140,7 +114,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The viewId. */ @java.lang.Override @@ -149,15 +122,14 @@ 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,
@@ -165,15 +137,16 @@ 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 { @@ -184,14 +157,11 @@ public com.google.protobuf.ByteString getViewIdBytes() { 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 @@ -199,14 +169,11 @@ public boolean hasView() { return view_ != null; } /** - * - * *
    * Required. The new view.
    * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The view. */ @java.lang.Override @@ -214,8 +181,6 @@ public com.google.logging.v2.LogView getView() { return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; } /** - * - * *
    * Required. The new view.
    * 
@@ -228,7 +193,6 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -266,7 +231,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, viewId_); } if (view_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getView()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getView()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -276,18 +242,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.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; @@ -313,136 +282,132 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +423,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 @@ -479,11 +444,8 @@ 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; } @@ -497,7 +459,9 @@ private void buildPartial0(com.google.logging.v2.CreateViewRequest result) { result.viewId_ = viewId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.view_ = viewBuilder_ == null ? view_ : viewBuilder_.build(); + result.view_ = viewBuilder_ == null + ? view_ + : viewBuilder_.build(); } } @@ -505,39 +469,38 @@ 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; @@ -585,31 +548,29 @@ 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) { @@ -619,13 +580,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The bucket in which to create the view
      *
@@ -637,13 +595,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; @@ -652,8 +610,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The bucket in which to create the view
      *
@@ -665,14 +621,15 @@ 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 { @@ -680,8 +637,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The bucket in which to create the view
      *
@@ -693,22 +648,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * 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
      *
@@ -720,7 +671,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -730,8 +680,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The bucket in which to create the view
      *
@@ -743,14 +691,12 @@ 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; @@ -760,8 +706,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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,
@@ -769,13 +713,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -784,8 +728,6 @@ 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,
@@ -793,14 +735,15 @@ 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 { @@ -808,8 +751,6 @@ public com.google.protobuf.ByteString getViewIdBytes() { } } /** - * - * *
      * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
      * limited to 100 characters and can include only letters, digits,
@@ -817,22 +758,18 @@ public com.google.protobuf.ByteString getViewIdBytes() {
      * 
* * 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,
@@ -840,7 +777,6 @@ public Builder setViewId(java.lang.String value) {
      * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearViewId() { @@ -850,8 +786,6 @@ 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,
@@ -859,14 +793,12 @@ 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; @@ -876,33 +808,24 @@ public Builder setViewIdBytes(com.google.protobuf.ByteString value) { 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() { @@ -913,8 +836,6 @@ public com.google.logging.v2.LogView getView() { } } /** - * - * *
      * Required. The new view.
      * 
@@ -935,15 +856,14 @@ 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 { @@ -954,8 +874,6 @@ public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { return this; } /** - * - * *
      * Required. The new view.
      * 
@@ -964,9 +882,9 @@ public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { */ 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; @@ -979,8 +897,6 @@ public Builder mergeView(com.google.logging.v2.LogView value) { return this; } /** - * - * *
      * Required. The new view.
      * 
@@ -998,8 +914,6 @@ public Builder clearView() { return this; } /** - * - * *
      * Required. The new view.
      * 
@@ -1012,8 +926,6 @@ public com.google.logging.v2.LogView.Builder getViewBuilder() { return getViewFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The new view.
      * 
@@ -1024,12 +936,11 @@ 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.
      * 
@@ -1037,24 +948,21 @@ 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); } @@ -1064,12 +972,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(); } @@ -1078,27 +986,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; @@ -1113,4 +1021,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.CreateViewRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java index 2df19da1b..8c5420af3 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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
    *
@@ -37,13 +19,10 @@ public interface CreateViewRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The bucket in which to create the view
    *
@@ -55,14 +34,12 @@ public interface CreateViewRequestOrBuilder
    * 
* * 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,
@@ -70,13 +47,10 @@ public interface CreateViewRequestOrBuilder
    * 
* * 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,
@@ -84,38 +58,30 @@ public interface CreateViewRequestOrBuilder
    * 
* * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java index 22dc377e7..918d927d8 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -82,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"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 @@ -94,15 +69,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the bucket to delete.
    *
@@ -116,18 +90,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. */ @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 { @@ -136,7 +109,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -172,15 +145,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; } @@ -199,136 +172,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -338,9 +307,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 @@ -359,11 +328,8 @@ 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; } @@ -379,39 +345,38 @@ 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; @@ -451,19 +416,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,13 +436,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -493,16 +453,14 @@ 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; @@ -511,8 +469,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -526,17 +482,16 @@ 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 { @@ -544,8 +499,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -559,25 +512,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"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.
      *
@@ -591,10 +538,7 @@ public Builder setName(java.lang.String value) {
      *   `"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() { @@ -604,8 +548,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -619,26 +561,22 @@ 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); } @@ -648,12 +586,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(); } @@ -662,27 +600,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; @@ -697,4 +635,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java index f82deaf6a..29277932c 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -39,16 +21,11 @@ public interface DeleteBucketRequestOrBuilder
    *   `"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.
    *
@@ -62,11 +39,9 @@ public interface DeleteBucketRequestOrBuilder
    *   `"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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java index 844651f26..8ba56bc05 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -82,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"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 @@ -94,15 +69,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of an existing exclusion to delete:
    *
@@ -116,18 +90,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. */ @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 { @@ -136,7 +109,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -172,15 +145,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; } @@ -199,136 +172,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -338,9 +307,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 @@ -359,11 +328,8 @@ 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; } @@ -379,39 +345,38 @@ 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; @@ -451,19 +416,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,13 +436,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -493,16 +453,14 @@ 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; @@ -511,8 +469,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -526,17 +482,16 @@ 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 { @@ -544,8 +499,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -559,25 +512,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"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:
      *
@@ -591,10 +538,7 @@ public Builder setName(java.lang.String value) {
      *   `"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() { @@ -604,8 +548,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -619,26 +561,22 @@ 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); } @@ -648,12 +586,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(); } @@ -662,27 +600,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; @@ -697,4 +635,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteExclusionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java index 8d74b4d1c..dd6dda522 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -39,16 +21,11 @@ public interface DeleteExclusionRequestOrBuilder
    *   `"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:
    *
@@ -62,11 +39,9 @@ public interface DeleteExclusionRequestOrBuilder
    *   `"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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java index e590175f4..a679b12b0 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -78,10 +56,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   "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 @@ -90,15 +65,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the link to delete.
    *
@@ -108,18 +82,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. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -128,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +112,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -164,14 +137,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -190,136 +164,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -329,9 +299,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 @@ -350,11 +320,8 @@ 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; } @@ -370,39 +337,38 @@ 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; @@ -442,19 +408,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,13 +428,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the link to delete.
      *
@@ -480,16 +441,14 @@ 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; @@ -498,8 +457,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the link to delete.
      *
@@ -509,17 +466,16 @@ 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 { @@ -527,8 +483,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the link to delete.
      *
@@ -538,25 +492,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   "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.
      *
@@ -566,10 +514,7 @@ public Builder setName(java.lang.String value) {
      *   "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() { @@ -579,8 +524,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the link to delete.
      *
@@ -590,26 +533,22 @@ 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); } @@ -619,12 +558,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(); } @@ -633,27 +572,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; @@ -668,4 +607,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteLinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java index 88bc43722..a50f2b2e5 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -35,16 +17,11 @@ public interface DeleteLinkRequestOrBuilder
    *   "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.
    *
@@ -54,11 +31,9 @@ public interface DeleteLinkRequestOrBuilder
    *   "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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java similarity index 62% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java index 0e137ea09..e3455e834 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto 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 @@ -87,33 +62,31 @@ 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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -158,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -185,136 +158,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -324,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.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 @@ -345,11 +314,8 @@ 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; } @@ -365,39 +331,38 @@ 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; @@ -437,19 +402,17 @@ 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) { @@ -459,29 +422,24 @@ 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; @@ -490,25 +448,22 @@ 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 { @@ -516,43 +471,32 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } } /** - * - * *
      * 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() { @@ -562,34 +506,28 @@ 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); } @@ -599,12 +537,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(); } @@ -613,27 +551,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; @@ -648,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteLogMetricRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..d7d5170ff --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_metrics.proto + +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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java similarity index 67% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java index 6263914c5..2a8c7e896 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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:
    *
@@ -85,10 +63,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * [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 @@ -97,15 +72,14 @@ 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:
    *
@@ -122,18 +96,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. */ @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 { @@ -142,7 +115,6 @@ public com.google.protobuf.ByteString getLogNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,7 +126,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logName_); } @@ -178,14 +151,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -204,136 +178,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +313,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 @@ -364,11 +334,8 @@ 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; } @@ -384,39 +351,38 @@ 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; @@ -456,19 +422,17 @@ 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) { @@ -478,13 +442,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object logName_ = ""; /** - * - * *
      * Required. The resource name of the log to delete:
      *
@@ -501,16 +462,14 @@ 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; @@ -519,8 +478,6 @@ public java.lang.String getLogName() { } } /** - * - * *
      * Required. The resource name of the log to delete:
      *
@@ -537,17 +494,16 @@ 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 { @@ -555,8 +511,6 @@ public com.google.protobuf.ByteString getLogNameBytes() { } } /** - * - * *
      * Required. The resource name of the log to delete:
      *
@@ -573,25 +527,19 @@ public com.google.protobuf.ByteString getLogNameBytes() {
      * [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:
      *
@@ -608,10 +556,7 @@ public Builder setLogName(java.lang.String value) {
      * [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() { @@ -621,8 +566,6 @@ public Builder clearLogName() { return this; } /** - * - * *
      * Required. The resource name of the log to delete:
      *
@@ -639,26 +582,22 @@ 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); } @@ -668,12 +607,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(); } @@ -682,27 +621,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; @@ -717,4 +656,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteLogRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java index c7f01d89b..098ad7ec4 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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:
    *
@@ -42,16 +24,11 @@ public interface DeleteLogRequestOrBuilder
    * [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:
    *
@@ -68,11 +45,9 @@ public interface DeleteLogRequestOrBuilder
    * [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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java index 55103caf8..2ded12337 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
@@ -83,10 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"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 @@ -95,15 +70,14 @@ 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:
@@ -118,18 +92,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. */ @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 { @@ -138,7 +111,6 @@ public com.google.protobuf.ByteString getSinkNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,7 +122,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sinkName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sinkName_); } @@ -174,14 +147,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.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; } @@ -200,136 +174,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +309,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 @@ -360,11 +330,8 @@ 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; } @@ -380,39 +347,38 @@ 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; @@ -452,19 +418,17 @@ 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) { @@ -474,13 +438,10 @@ 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:
@@ -495,16 +456,14 @@ 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; @@ -513,8 +472,6 @@ public java.lang.String getSinkName() { } } /** - * - * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -529,17 +486,16 @@ 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 { @@ -547,8 +503,6 @@ public com.google.protobuf.ByteString getSinkNameBytes() { } } /** - * - * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -563,25 +517,19 @@ public com.google.protobuf.ByteString getSinkNameBytes() {
      *   `"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:
@@ -596,10 +544,7 @@ public Builder setSinkName(java.lang.String value) {
      *   `"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() { @@ -609,8 +554,6 @@ public Builder clearSinkName() { return this; } /** - * - * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -625,26 +568,22 @@ 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); } @@ -654,12 +593,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(); } @@ -668,27 +607,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; @@ -703,4 +642,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteSinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java similarity index 56% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java index 985d8b249..7cf2d4a29 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
@@ -40,16 +22,11 @@ public interface DeleteSinkRequestOrBuilder
    *   `"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:
@@ -64,11 +41,9 @@ public interface DeleteSinkRequestOrBuilder
    *   `"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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java similarity index 64% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java index a4832cbef..5c4a49bb5 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -79,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *    `"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 @@ -91,15 +66,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the view to delete:
    *
@@ -110,18 +84,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. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -130,7 +103,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,7 +114,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -166,14 +139,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.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; } @@ -192,136 +166,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -331,9 +301,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 @@ -352,11 +322,8 @@ 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; } @@ -372,39 +339,38 @@ 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; @@ -444,19 +410,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -466,13 +430,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the view to delete:
      *
@@ -483,16 +444,14 @@ 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; @@ -501,8 +460,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the view to delete:
      *
@@ -513,17 +470,16 @@ 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 { @@ -531,8 +487,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the view to delete:
      *
@@ -543,25 +497,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *    `"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:
      *
@@ -572,10 +520,7 @@ public Builder setName(java.lang.String value) {
      *    `"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() { @@ -585,8 +530,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the view to delete:
      *
@@ -597,26 +540,22 @@ 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); } @@ -626,12 +565,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(); } @@ -640,27 +579,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; @@ -675,4 +614,6 @@ 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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java new file mode 100644 index 000000000..f12761bdb --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java @@ -0,0 +1,41 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +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:
+   *
+   *     "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 full resource name of the view to delete:
+   *
+   *     "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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java similarity index 67% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java index 1dc305de7..955d80eda 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -82,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"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 @@ -94,15 +69,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the bucket:
    *
@@ -116,18 +90,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. */ @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 { @@ -136,7 +109,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -172,14 +145,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.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; } @@ -198,136 +172,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -337,9 +307,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 @@ -358,11 +328,8 @@ 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; } @@ -378,39 +345,38 @@ 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; @@ -450,19 +416,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -472,13 +436,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the bucket:
      *
@@ -492,16 +453,14 @@ 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; @@ -510,8 +469,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the bucket:
      *
@@ -525,17 +482,16 @@ 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 { @@ -543,8 +499,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the bucket:
      *
@@ -558,25 +512,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"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:
      *
@@ -590,10 +538,7 @@ public Builder setName(java.lang.String value) {
      *   `"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() { @@ -603,8 +548,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the bucket:
      *
@@ -618,26 +561,22 @@ 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); } @@ -647,12 +586,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(); } @@ -661,27 +600,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; @@ -696,4 +635,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java index 534d6908c..2e61b332e 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -39,16 +21,11 @@ public interface GetBucketRequestOrBuilder
    *   `"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:
    *
@@ -62,11 +39,9 @@ public interface GetBucketRequestOrBuilder
    *   `"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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java similarity index 68% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java index 4622b2d7f..611740bf0 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto package com.google.logging.v2; /** - * - * *
  * The parameters to
  * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings].
@@ -32,48 +15,43 @@
  *
  * 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.
    *
@@ -92,10 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 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 @@ -104,15 +79,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource for which to retrieve CMEK settings.
    *
@@ -131,18 +105,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. */ @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 { @@ -151,7 +124,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,7 +135,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -187,15 +160,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -214,104 +187,99 @@ 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].
@@ -323,32 +291,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -358,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_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
@@ -379,11 +348,8 @@ 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;
     }
@@ -399,39 +365,38 @@ 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;
@@ -471,19 +436,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -493,13 +456,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -518,16 +478,14 @@ 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; @@ -536,8 +494,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -556,17 +512,16 @@ 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 { @@ -574,8 +529,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -594,25 +547,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 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.
      *
@@ -631,10 +578,7 @@ public Builder setName(java.lang.String value) {
      * 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() { @@ -644,8 +588,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -664,26 +606,22 @@ 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); } @@ -693,12 +631,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(); } @@ -707,27 +645,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; @@ -742,4 +680,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetCmekSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java index 29462a710..e8fb22d82 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -44,16 +26,11 @@ public interface GetCmekSettingsRequestOrBuilder
    * 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.
    *
@@ -72,11 +49,9 @@ public interface GetCmekSettingsRequestOrBuilder
    * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java similarity index 65% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java index 7ca05b712..be3c061c5 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -82,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"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 @@ -94,15 +69,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of an existing exclusion:
    *
@@ -116,18 +90,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. */ @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 { @@ -136,7 +109,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -172,15 +145,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; } @@ -199,136 +172,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -338,9 +307,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 @@ -359,11 +328,8 @@ 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; } @@ -379,39 +345,38 @@ 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; @@ -451,19 +416,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,13 +436,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of an existing exclusion:
      *
@@ -493,16 +453,14 @@ 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; @@ -511,8 +469,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of an existing exclusion:
      *
@@ -526,17 +482,16 @@ 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 { @@ -544,8 +499,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of an existing exclusion:
      *
@@ -559,25 +512,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"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:
      *
@@ -591,10 +538,7 @@ public Builder setName(java.lang.String value) {
      *   `"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() { @@ -604,8 +548,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of an existing exclusion:
      *
@@ -619,26 +561,22 @@ 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); } @@ -648,12 +586,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(); } @@ -662,27 +600,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; @@ -697,4 +635,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetExclusionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java index 133efef20..87ef4e1d8 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -39,16 +21,11 @@ public interface GetExclusionRequestOrBuilder
    *   `"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:
    *
@@ -62,11 +39,9 @@ public interface GetExclusionRequestOrBuilder
    *   `"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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java index 3e28be141..e6e8007ae 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -78,10 +56,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   "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 @@ -90,15 +65,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the link:
    *
@@ -108,18 +82,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. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -128,7 +101,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,7 +112,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -164,14 +137,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -190,135 +164,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +299,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 @@ -350,9 +321,7 @@ 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; } @@ -368,39 +337,38 @@ 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; @@ -440,19 +408,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,13 +428,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the link:
      *
@@ -478,16 +441,14 @@ 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; @@ -496,8 +457,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the link:
      *
@@ -507,17 +466,16 @@ 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 { @@ -525,8 +483,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the link:
      *
@@ -536,25 +492,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   "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:
      *
@@ -564,10 +514,7 @@ public Builder setName(java.lang.String value) {
      *   "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() { @@ -577,8 +524,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the link:
      *
@@ -588,26 +533,22 @@ 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); } @@ -617,12 +558,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(); } @@ -631,27 +572,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; @@ -666,4 +607,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetLinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java index 476efdc50..b0821bad0 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -35,16 +17,11 @@ public interface GetLinkRequestOrBuilder
    *   "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:
    *
@@ -54,11 +31,9 @@ public interface GetLinkRequestOrBuilder
    *   "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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java similarity index 62% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java index 74e587605..c789a35f7 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java @@ -1,84 +1,59 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto 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 @@ -87,33 +62,31 @@ 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 { @@ -122,7 +95,6 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -134,7 +106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -158,15 +131,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -185,136 +158,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -324,9 +293,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.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 @@ -345,11 +314,8 @@ 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; } @@ -365,39 +331,38 @@ 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; @@ -437,19 +402,17 @@ 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) { @@ -459,29 +422,24 @@ 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; @@ -490,25 +448,22 @@ 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 { @@ -516,43 +471,32 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } } /** - * - * *
      * 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() { @@ -562,34 +506,28 @@ 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); } @@ -599,12 +537,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(); } @@ -613,27 +551,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; @@ -648,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetLogMetricRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..8299e1eba --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_metrics.proto + +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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java similarity index 68% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java index fb76d46e4..9910ea881 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto package com.google.logging.v2; /** - * - * *
  * The parameters to
  * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings].
@@ -32,48 +15,43 @@
  *
  * 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.
    *
@@ -92,10 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 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 @@ -104,15 +79,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource for which to retrieve settings.
    *
@@ -131,18 +105,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. */ @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 { @@ -151,7 +124,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,7 +135,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -187,14 +160,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -213,104 +187,99 @@ 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].
@@ -322,32 +291,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -357,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_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
@@ -378,11 +348,8 @@ 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;
     }
@@ -398,39 +365,38 @@ 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;
@@ -470,19 +436,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -492,13 +456,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource for which to retrieve settings.
      *
@@ -517,16 +478,14 @@ 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; @@ -535,8 +494,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource for which to retrieve settings.
      *
@@ -555,17 +512,16 @@ 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 { @@ -573,8 +529,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource for which to retrieve settings.
      *
@@ -593,25 +547,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 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.
      *
@@ -630,10 +578,7 @@ public Builder setName(java.lang.String value) {
      * 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() { @@ -643,8 +588,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource for which to retrieve settings.
      *
@@ -663,26 +606,22 @@ 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); } @@ -692,12 +631,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(); } @@ -706,27 +645,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; @@ -741,4 +680,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java index a0135dccb..11e1eb017 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -44,16 +26,11 @@ public interface GetSettingsRequestOrBuilder
    * 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.
    *
@@ -72,11 +49,9 @@ public interface GetSettingsRequestOrBuilder
    * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java similarity index 65% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java index 60f1bf1b4..cb250f1a4 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -82,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"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 @@ -94,15 +69,14 @@ 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:
    *
@@ -116,18 +90,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. */ @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 { @@ -136,7 +109,6 @@ public com.google.protobuf.ByteString getSinkNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sinkName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sinkName_); } @@ -172,14 +145,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.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; } @@ -198,135 +172,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -336,9 +307,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 @@ -358,9 +329,7 @@ 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; } @@ -376,39 +345,38 @@ 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; @@ -448,19 +416,17 @@ 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) { @@ -470,13 +436,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object sinkName_ = ""; /** - * - * *
      * Required. The resource name of the sink:
      *
@@ -490,16 +453,14 @@ 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; @@ -508,8 +469,6 @@ public java.lang.String getSinkName() { } } /** - * - * *
      * Required. The resource name of the sink:
      *
@@ -523,17 +482,16 @@ 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 { @@ -541,8 +499,6 @@ public com.google.protobuf.ByteString getSinkNameBytes() { } } /** - * - * *
      * Required. The resource name of the sink:
      *
@@ -556,25 +512,19 @@ public com.google.protobuf.ByteString getSinkNameBytes() {
      *   `"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:
      *
@@ -588,10 +538,7 @@ public Builder setSinkName(java.lang.String value) {
      *   `"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() { @@ -601,8 +548,6 @@ public Builder clearSinkName() { return this; } /** - * - * *
      * Required. The resource name of the sink:
      *
@@ -616,26 +561,22 @@ 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); } @@ -645,12 +586,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(); } @@ -659,27 +600,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; @@ -694,4 +635,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetSinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java similarity index 53% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java index 1fb5d6ec0..407aef5f0 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -39,16 +21,11 @@ public interface GetSinkRequestOrBuilder
    *   `"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:
    *
@@ -62,11 +39,9 @@ public interface GetSinkRequestOrBuilder
    *   `"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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java similarity index 64% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java index 79f3bea9b..55e32230f 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -79,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"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 @@ -91,15 +66,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the policy:
    *
@@ -110,18 +84,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. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -130,7 +103,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -142,7 +114,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -166,14 +139,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.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; } @@ -192,135 +166,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -330,9 +301,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 @@ -352,9 +323,7 @@ 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; } @@ -370,39 +339,38 @@ 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; @@ -442,19 +410,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,13 +430,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the policy:
      *
@@ -481,16 +444,14 @@ 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; @@ -499,8 +460,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the policy:
      *
@@ -511,17 +470,16 @@ 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 { @@ -529,8 +487,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the policy:
      *
@@ -541,25 +497,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"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:
      *
@@ -570,10 +520,7 @@ public Builder setName(java.lang.String value) {
      *   `"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() { @@ -583,8 +530,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the policy:
      *
@@ -595,26 +540,22 @@ 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); } @@ -624,12 +565,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(); } @@ -638,27 +579,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; @@ -673,4 +614,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.GetViewRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..b0c657e0c --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java @@ -0,0 +1,41 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java index 178e85114..1f9a511ce 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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; @@ -44,32 +26,28 @@ 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); } public static final int FIELD_PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object fieldPath_ = ""; /** - * - * *
    * Required. The LogEntry field path to index.
    *
@@ -82,7 +60,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fieldPath. */ @java.lang.Override @@ -91,15 +68,14 @@ 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.
    *
@@ -112,15 +88,16 @@ 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 { @@ -131,33 +108,25 @@ public com.google.protobuf.ByteString getFieldPathBytes() { 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; } @@ -165,8 +134,6 @@ public com.google.logging.v2.IndexType getType() { 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.
    *
@@ -174,9 +141,7 @@ public com.google.logging.v2.IndexType getType() {
    * 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 @@ -184,8 +149,6 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The timestamp when the index was last modified.
    *
@@ -193,9 +156,7 @@ 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 @@ -203,8 +164,6 @@ 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.
    *
@@ -212,8 +171,7 @@ 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() { @@ -221,7 +179,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,7 +190,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_); } @@ -256,10 +214,12 @@ 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 (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -269,18 +229,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; @@ -306,135 +268,132 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -450,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_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 @@ -472,9 +431,7 @@ 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; } @@ -488,7 +445,9 @@ private void buildPartial0(com.google.logging.v2.IndexConfig result) { result.type_ = type_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } } @@ -496,39 +455,38 @@ 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; @@ -574,31 +532,29 @@ 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) { @@ -608,13 +564,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object fieldPath_ = ""; /** - * - * *
      * Required. The LogEntry field path to index.
      *
@@ -627,13 +580,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; @@ -642,8 +595,6 @@ public java.lang.String getFieldPath() { } } /** - * - * *
      * Required. The LogEntry field path to index.
      *
@@ -656,14 +607,15 @@ 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 { @@ -671,8 +623,6 @@ public com.google.protobuf.ByteString getFieldPathBytes() { } } /** - * - * *
      * Required. The LogEntry field path to index.
      *
@@ -685,22 +635,18 @@ public com.google.protobuf.ByteString getFieldPathBytes() {
      * 
* * 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.
      *
@@ -713,7 +659,6 @@ public Builder setFieldPath(java.lang.String value) {
      * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFieldPath() { @@ -723,8 +668,6 @@ public Builder clearFieldPath() { return this; } /** - * - * *
      * Required. The LogEntry field path to index.
      *
@@ -737,14 +680,12 @@ 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; @@ -754,29 +695,22 @@ public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { 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. */ @@ -787,14 +721,11 @@ 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 @@ -803,14 +734,11 @@ 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. */ @@ -824,14 +752,11 @@ 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() { @@ -843,13 +768,8 @@ 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.
      *
@@ -857,18 +777,13 @@ 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.
      *
@@ -876,24 +791,17 @@ 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.
      *
@@ -901,9 +809,7 @@ 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) { @@ -919,8 +825,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -928,11 +832,10 @@ 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 { @@ -943,8 +846,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -952,15 +853,13 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
      * 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; @@ -973,8 +872,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -982,9 +879,7 @@ 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); @@ -997,8 +892,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -1006,9 +899,7 @@ 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; @@ -1016,8 +907,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -1025,22 +914,17 @@ 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.
      *
@@ -1048,29 +932,24 @@ 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); } @@ -1080,12 +959,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(); } @@ -1094,27 +973,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; @@ -1129,4 +1008,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.IndexConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java similarity index 75% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java index ee214f090..5c8119f7d 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -38,13 +20,10 @@ public interface IndexConfigOrBuilder
    * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The fieldPath. */ java.lang.String getFieldPath(); /** - * - * *
    * Required. The LogEntry field path to index.
    *
@@ -57,39 +36,31 @@ public interface IndexConfigOrBuilder
    * 
* * 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.
    *
@@ -97,15 +68,11 @@ public interface IndexConfigOrBuilder
    * 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.
    *
@@ -113,15 +80,11 @@ public interface IndexConfigOrBuilder
    * 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.
    *
@@ -129,8 +92,7 @@ public interface IndexConfigOrBuilder
    * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java similarity index 67% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java index b28992e8b..f02b9b4ec 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto package com.google.logging.v2; /** - * - * *
  * IndexType is used for custom indexing. It describes the type of an indexed
  * field.
@@ -28,10 +11,9 @@
  *
  * 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.
    * 
@@ -40,8 +22,6 @@ public enum IndexType implements com.google.protobuf.ProtocolMessageEnum { */ INDEX_TYPE_UNSPECIFIED(0), /** - * - * *
    * The index is a string-type index.
    * 
@@ -50,8 +30,6 @@ public enum IndexType implements com.google.protobuf.ProtocolMessageEnum { */ INDEX_TYPE_STRING(1), /** - * - * *
    * The index is a integer-type index.
    * 
@@ -63,8 +41,6 @@ public enum IndexType implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * The index's type is unspecified.
    * 
@@ -73,8 +49,6 @@ public enum IndexType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INDEX_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The index is a string-type index.
    * 
@@ -83,8 +57,6 @@ public enum IndexType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INDEX_TYPE_STRING_VALUE = 1; /** - * - * *
    * The index is a integer-type index.
    * 
@@ -93,6 +65,7 @@ public enum IndexType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INDEX_TYPE_INTEGER_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -117,49 +90,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 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< + 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() { 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; @@ -175,3 +148,4 @@ private IndexType(int value) { // @@protoc_insertion_point(enum_scope:google.logging.v2.IndexType) } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java index 38d77872b..064ed3052 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java @@ -1,36 +1,18 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
@@ -40,8 +22,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   LIFECYCLE_STATE_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * The normal and active state.
    * 
@@ -50,8 +30,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { */ 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.
@@ -61,8 +39,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   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.
@@ -72,8 +48,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   UPDATING(3),
   /**
-   *
-   *
    * 
    * The resource has been marked for creation by the user. It will remain in
    * this state until the creation is complete.
@@ -83,8 +57,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   CREATING(4),
   /**
-   *
-   *
    * 
    * The resource is in an INTERNAL error state.
    * 
@@ -96,8 +68,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unspecified state. This is only used/useful for distinguishing unset
    * values.
@@ -107,8 +77,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int LIFECYCLE_STATE_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * The normal and active state.
    * 
@@ -117,8 +85,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { */ 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.
@@ -128,8 +94,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   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.
@@ -139,8 +103,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   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.
@@ -150,8 +112,6 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int CREATING_VALUE = 4;
   /**
-   *
-   *
    * 
    * The resource is in an INTERNAL error state.
    * 
@@ -160,6 +120,7 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -184,55 +145,52 @@ 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 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< + 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() { 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; @@ -248,3 +206,4 @@ private LifecycleState(int value) { // @@protoc_insertion_point(enum_scope:google.logging.v2.LifecycleState) } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java index 3d45bbebd..31b62cbb2 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -45,31 +27,28 @@ 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); } 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
@@ -86,7 +65,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -95,15 +73,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The 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
@@ -120,15 +97,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -137,12 +115,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Describes this link.
    *
@@ -150,7 +125,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -159,15 +133,14 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Describes this link.
    *
@@ -175,15 +148,16 @@ 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 { @@ -194,15 +168,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { 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 @@ -210,15 +180,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * 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 @@ -226,14 +192,11 @@ 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() { @@ -243,47 +206,32 @@ 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
@@ -292,7 +240,6 @@ public com.google.logging.v2.LifecycleState getLifecycleState() {
    * 
* * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; - * * @return Whether the bigqueryDataset field is set. */ @java.lang.Override @@ -300,8 +247,6 @@ public boolean hasBigqueryDataset() { return bigqueryDataset_ != null; } /** - * - * *
    * 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
@@ -310,18 +255,13 @@ 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
@@ -333,13 +273,10 @@ 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;
@@ -351,7 +288,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -361,8 +299,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (createTime_ != null) {
       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 (bigqueryDataset_ != null) {
@@ -384,14 +321,16 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
     }
     if (createTime_ != null) {
-      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 (bigqueryDataset_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBigqueryDataset());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getBigqueryDataset());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -401,23 +340,27 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.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;
@@ -449,134 +392,132 @@ 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); } // Construct using com.google.logging.v2.Link.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -598,9 +539,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 @@ -620,9 +561,7 @@ 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; } @@ -636,14 +575,17 @@ private void buildPartial0(com.google.logging.v2.Link result) { result.description_ = description_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } 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(); } } @@ -651,39 +593,38 @@ 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; @@ -737,43 +678,41 @@ 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) { @@ -783,13 +722,10 @@ 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
@@ -806,13 +742,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; @@ -821,8 +757,6 @@ 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
@@ -839,14 +773,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -854,8 +789,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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
@@ -872,22 +805,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * 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
@@ -904,7 +833,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -914,8 +842,6 @@ 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
@@ -932,14 +858,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -949,8 +873,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Describes this link.
      *
@@ -958,13 +880,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -973,8 +895,6 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Describes this link.
      *
@@ -982,14 +902,15 @@ 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 { @@ -997,8 +918,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Describes this link.
      *
@@ -1006,22 +925,18 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * 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.
      *
@@ -1029,7 +944,6 @@ public Builder setDescription(java.lang.String value) {
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1039,8 +953,6 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Describes this link.
      *
@@ -1048,14 +960,12 @@ 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; @@ -1065,58 +975,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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) { @@ -1132,17 +1023,14 @@ 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 { @@ -1153,21 +1041,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -1180,15 +1064,11 @@ 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); @@ -1201,15 +1081,11 @@ 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; @@ -1217,48 +1093,36 @@ 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_; @@ -1266,33 +1130,22 @@ 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. */ @@ -1303,35 +1156,24 @@ 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. */ @@ -1345,16 +1187,11 @@ 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() { @@ -1366,13 +1203,8 @@ 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
@@ -1381,15 +1213,12 @@ 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
@@ -1398,21 +1227,16 @@ 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
@@ -1436,8 +1260,6 @@ 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
@@ -1459,8 +1281,6 @@ 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
@@ -1472,9 +1292,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;
@@ -1487,8 +1307,6 @@ 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
@@ -1509,8 +1327,6 @@ 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
@@ -1526,8 +1342,6 @@ 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
@@ -1541,14 +1355,11 @@ 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
@@ -1559,24 +1370,21 @@ 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);
     }
 
@@ -1586,12 +1394,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();
   }
@@ -1600,27 +1408,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;
@@ -1635,4 +1443,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.logging.v2.Link getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java
similarity index 72%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java
index 5d3511a9d..a4b78cb4b 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java
@@ -1,81 +1,58 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/logging_config.proto
 
 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 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; } @@ -91,37 +68,31 @@ 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 @@ -129,14 +100,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * The start time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -144,8 +112,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * The start time of an operation.
    * 
@@ -160,14 +126,11 @@ 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 @@ -175,14 +138,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -190,8 +150,6 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * The end time of an operation.
    * 
@@ -206,48 +164,36 @@ 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 @@ -255,26 +201,21 @@ 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.
    * 
@@ -284,21 +225,18 @@ 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 @@ -306,26 +244,21 @@ 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.
    * 
@@ -335,13 +268,12 @@ 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; @@ -353,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -379,23 +312,24 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } 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; @@ -405,7 +339,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); @@ -414,20 +348,24 @@ 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: @@ -470,135 +408,132 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -626,9 +561,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 @@ -648,9 +583,7 @@ 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; @@ -659,10 +592,14 @@ public com.google.logging.v2.LinkMetadata buildPartial() { private void buildPartial0(com.google.logging.v2.LinkMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.state_ = state_; @@ -672,10 +609,12 @@ 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(); } } @@ -684,39 +623,38 @@ 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; @@ -735,20 +673,17 @@ 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(); @@ -776,45 +711,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) { @@ -824,12 +759,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() { @@ -843,33 +778,24 @@ 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() { @@ -880,8 +806,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * The start time of an operation.
      * 
@@ -902,15 +826,14 @@ 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 { @@ -921,8 +844,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The start time of an operation.
      * 
@@ -931,9 +852,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ 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; @@ -946,8 +867,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The start time of an operation.
      * 
@@ -965,8 +884,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * The start time of an operation.
      * 
@@ -979,8 +896,6 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The start time of an operation.
      * 
@@ -991,12 +906,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * The start time of an operation.
      * 
@@ -1004,17 +918,14 @@ 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_; @@ -1022,33 +933,24 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * 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() { @@ -1059,8 +961,6 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * The end time of an operation.
      * 
@@ -1081,15 +981,14 @@ 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 { @@ -1100,8 +999,6 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1110,9 +1007,9 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ 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; @@ -1125,8 +1022,6 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1144,8 +1039,6 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * The end time of an operation.
      * 
@@ -1158,8 +1051,6 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The end time of an operation.
      * 
@@ -1170,12 +1061,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * The end time of an operation.
      * 
@@ -1183,17 +1073,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1201,29 +1088,22 @@ 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. */ @@ -1234,31 +1114,24 @@ 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. */ @@ -1272,14 +1145,11 @@ 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() { @@ -1290,19 +1160,13 @@ 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 @@ -1310,14 +1174,11 @@ public boolean hasCreateLinkRequest() { return requestCase_ == 4; } /** - * - * *
      * CreateLink RPC request.
      * 
* * .google.logging.v2.CreateLinkRequest create_link_request = 4; - * * @return The createLinkRequest. */ @java.lang.Override @@ -1335,8 +1196,6 @@ public com.google.logging.v2.CreateLinkRequest getCreateLinkRequest() { } } /** - * - * *
      * CreateLink RPC request.
      * 
@@ -1357,8 +1216,6 @@ public Builder setCreateLinkRequest(com.google.logging.v2.CreateLinkRequest valu return this; } /** - * - * *
      * CreateLink RPC request.
      * 
@@ -1377,8 +1234,6 @@ public Builder setCreateLinkRequest( return this; } /** - * - * *
      * CreateLink RPC request.
      * 
@@ -1387,13 +1242,10 @@ 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; } @@ -1409,8 +1261,6 @@ public Builder mergeCreateLinkRequest(com.google.logging.v2.CreateLinkRequest va return this; } /** - * - * *
      * CreateLink RPC request.
      * 
@@ -1434,8 +1284,6 @@ public Builder clearCreateLinkRequest() { return this; } /** - * - * *
      * CreateLink RPC request.
      * 
@@ -1446,8 +1294,6 @@ public com.google.logging.v2.CreateLinkRequest.Builder getCreateLinkRequestBuild return getCreateLinkRequestFieldBuilder().getBuilder(); } /** - * - * *
      * CreateLink RPC request.
      * 
@@ -1466,8 +1312,6 @@ public com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBu } } /** - * - * *
      * CreateLink RPC request.
      * 
@@ -1475,19 +1319,14 @@ 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()); @@ -1499,19 +1338,13 @@ 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 @@ -1519,14 +1352,11 @@ public boolean hasDeleteLinkRequest() { return requestCase_ == 5; } /** - * - * *
      * DeleteLink RPC request.
      * 
* * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; - * * @return The deleteLinkRequest. */ @java.lang.Override @@ -1544,8 +1374,6 @@ public com.google.logging.v2.DeleteLinkRequest getDeleteLinkRequest() { } } /** - * - * *
      * DeleteLink RPC request.
      * 
@@ -1566,8 +1394,6 @@ public Builder setDeleteLinkRequest(com.google.logging.v2.DeleteLinkRequest valu return this; } /** - * - * *
      * DeleteLink RPC request.
      * 
@@ -1586,8 +1412,6 @@ public Builder setDeleteLinkRequest( return this; } /** - * - * *
      * DeleteLink RPC request.
      * 
@@ -1596,13 +1420,10 @@ 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; } @@ -1618,8 +1439,6 @@ public Builder mergeDeleteLinkRequest(com.google.logging.v2.DeleteLinkRequest va return this; } /** - * - * *
      * DeleteLink RPC request.
      * 
@@ -1643,8 +1462,6 @@ public Builder clearDeleteLinkRequest() { return this; } /** - * - * *
      * DeleteLink RPC request.
      * 
@@ -1655,8 +1472,6 @@ public com.google.logging.v2.DeleteLinkRequest.Builder getDeleteLinkRequestBuild return getDeleteLinkRequestFieldBuilder().getBuilder(); } /** - * - * *
      * DeleteLink RPC request.
      * 
@@ -1675,8 +1490,6 @@ public com.google.logging.v2.DeleteLinkRequestOrBuilder getDeleteLinkRequestOrBu } } /** - * - * *
      * DeleteLink RPC request.
      * 
@@ -1684,19 +1497,14 @@ 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()); @@ -1706,9 +1514,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); } @@ -1718,12 +1526,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(); } @@ -1732,27 +1540,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; @@ -1767,4 +1575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LinkMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java similarity index 80% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java index 8eb5c1003..94eb54c21 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    * 
@@ -59,32 +35,24 @@ public interface LinkMetadataOrBuilder 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.
    * 
@@ -94,57 +62,43 @@ public interface LinkMetadataOrBuilder 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.
    * 
@@ -154,32 +108,24 @@ public interface LinkMetadataOrBuilder 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java similarity index 78% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java index ab35bfa91..213eb0f29 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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
@@ -42,13 +24,10 @@ public interface LinkOrBuilder
    * 
* * 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
@@ -65,14 +44,12 @@ public interface LinkOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Describes this link.
    *
@@ -80,13 +57,10 @@ public interface LinkOrBuilder
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Describes this link.
    *
@@ -94,81 +68,58 @@ public interface LinkOrBuilder
    * 
* * 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
@@ -177,13 +128,10 @@ public interface LinkOrBuilder
    * 
* * .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
@@ -192,13 +140,10 @@ public interface LinkOrBuilder
    * 
* * .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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
similarity index 71%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
index e5e9bbedf..b6ed1f1f4 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/logging_config.proto
 
 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_ = ""; @@ -44,32 +26,28 @@ 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:
    *
@@ -83,10 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 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 @@ -95,15 +70,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource whose buckets are to be listed:
    *
@@ -117,18 +91,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. */ @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 { @@ -137,12 +110,9 @@ public com.google.protobuf.ByteString getParentBytes() { } 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
@@ -151,7 +121,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -160,15 +129,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -177,15 +145,16 @@ 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 { @@ -196,8 +165,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { 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
@@ -205,7 +172,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -214,7 +180,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -252,7 +218,8 @@ 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; @@ -262,16 +229,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -294,136 +264,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +401,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 @@ -456,11 +422,8 @@ 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; } @@ -482,39 +445,38 @@ 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; @@ -562,31 +524,27 @@ 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) { @@ -596,13 +554,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -616,16 +571,14 @@ 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; @@ -634,8 +587,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -649,17 +600,16 @@ 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 { @@ -667,8 +617,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -682,25 +630,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 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:
      *
@@ -714,10 +656,7 @@ public Builder setParent(java.lang.String value) {
      * 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() { @@ -727,8 +666,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -742,17 +679,13 @@ 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; @@ -762,8 +695,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -772,13 +703,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -787,8 +718,6 @@ 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
@@ -797,14 +726,15 @@ 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 { @@ -812,8 +742,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -822,22 +750,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * 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
@@ -846,7 +770,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -856,8 +779,6 @@ 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
@@ -866,14 +787,12 @@ 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; @@ -881,10 +800,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -892,7 +809,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -900,8 +816,6 @@ 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
@@ -909,7 +823,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -921,8 +834,6 @@ 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
@@ -930,7 +841,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -939,9 +849,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); } @@ -951,12 +861,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(); } @@ -965,27 +875,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; @@ -1000,4 +910,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListBucketsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java index 9d9e10c25..e14e5c8e1 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -39,16 +21,11 @@ public interface ListBucketsRequestOrBuilder
    * 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:
    *
@@ -62,17 +39,13 @@ public interface ListBucketsRequestOrBuilder
    * 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
@@ -81,13 +54,10 @@ public interface ListBucketsRequestOrBuilder
    * 
* * 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
@@ -96,14 +66,12 @@ public interface ListBucketsRequestOrBuilder
    * 
* * 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
@@ -111,7 +79,6 @@ public interface ListBucketsRequestOrBuilder
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java index bad631b20..67ac99220 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -44,32 +26,28 @@ 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.
    * 
@@ -81,8 +59,6 @@ public java.util.List getBucketsList() { return buckets_; } /** - * - * *
    * A list of buckets.
    * 
@@ -90,13 +66,11 @@ 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.
    * 
@@ -108,8 +82,6 @@ public int getBucketsCount() { return buckets_.size(); } /** - * - * *
    * A list of buckets.
    * 
@@ -121,8 +93,6 @@ public com.google.logging.v2.LogBucket getBuckets(int index) { return buckets_.get(index); } /** - * - * *
    * A list of buckets.
    * 
@@ -130,17 +100,15 @@ 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
@@ -148,7 +116,6 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -173,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -190,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < buckets_.size(); i++) { output.writeMessage(1, buckets_.get(i)); } @@ -219,7 +186,8 @@ 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_); @@ -232,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -264,136 +233,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.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 @@ -431,12 +396,9 @@ 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; } @@ -464,39 +426,38 @@ 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; @@ -523,10 +484,9 @@ 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_); } @@ -563,31 +523,30 @@ 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) { @@ -597,28 +556,21 @@ 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.
      * 
@@ -633,8 +585,6 @@ public java.util.List getBucketsList() { } } /** - * - * *
      * A list of buckets.
      * 
@@ -649,8 +599,6 @@ public int getBucketsCount() { } } /** - * - * *
      * A list of buckets.
      * 
@@ -665,15 +613,14 @@ 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(); @@ -687,15 +634,14 @@ public Builder setBuckets(int index, com.google.logging.v2.LogBucket value) { 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()); @@ -706,8 +652,6 @@ public Builder setBuckets(int index, com.google.logging.v2.LogBucket.Builder bui return this; } /** - * - * *
      * A list of buckets.
      * 
@@ -728,15 +672,14 @@ 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(); @@ -750,15 +693,14 @@ public Builder addBuckets(int index, com.google.logging.v2.LogBucket value) { 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()); @@ -769,15 +711,14 @@ public Builder addBuckets(com.google.logging.v2.LogBucket.Builder builderForValu 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()); @@ -788,8 +729,6 @@ public Builder addBuckets(int index, com.google.logging.v2.LogBucket.Builder bui return this; } /** - * - * *
      * A list of buckets.
      * 
@@ -800,7 +739,8 @@ 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); @@ -808,8 +748,6 @@ public Builder addAllBuckets( return this; } /** - * - * *
      * A list of buckets.
      * 
@@ -827,8 +765,6 @@ public Builder clearBuckets() { return this; } /** - * - * *
      * A list of buckets.
      * 
@@ -846,44 +782,39 @@ 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 { @@ -891,8 +822,6 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(int index) { } } /** - * - * *
      * A list of buckets.
      * 
@@ -900,47 +829,42 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(int index) { * 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_; @@ -948,8 +872,6 @@ public java.util.List getBucketsBuilder 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
@@ -957,13 +879,13 @@ public java.util.List getBucketsBuilder
      * 
* * 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; @@ -972,8 +894,6 @@ 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
@@ -981,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -996,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * 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
@@ -1005,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1028,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1038,8 +952,6 @@ 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
@@ -1047,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1073,12 +983,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(); } @@ -1087,27 +997,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; @@ -1122,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListBucketsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java similarity index 65% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java index e03368fdd..96f650205 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    * 
@@ -44,8 +25,6 @@ public interface ListBucketsResponseOrBuilder */ com.google.logging.v2.LogBucket getBuckets(int index); /** - * - * *
    * A list of buckets.
    * 
@@ -54,29 +33,25 @@ public interface ListBucketsResponseOrBuilder */ 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
@@ -84,13 +59,10 @@ public interface ListBucketsResponseOrBuilder
    * 
* * 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
@@ -98,8 +70,8 @@ public interface ListBucketsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java index e0ed7df35..e73cbabfe 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -44,32 +26,28 @@ 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.
    *
@@ -79,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     "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 @@ -91,15 +66,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource whose exclusions are to be listed.
    *
@@ -109,18 +83,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. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -129,12 +102,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int 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
@@ -143,7 +113,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -152,15 +121,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -169,15 +137,16 @@ 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 { @@ -188,8 +157,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { 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
@@ -197,7 +164,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -206,7 +172,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,7 +183,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -244,7 +210,8 @@ 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; @@ -254,17 +221,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.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; } @@ -287,136 +256,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +393,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 @@ -449,11 +414,8 @@ 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; } @@ -475,39 +437,38 @@ 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; @@ -555,31 +516,27 @@ 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) { @@ -589,13 +546,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -605,16 +559,14 @@ 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; @@ -623,8 +575,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -634,17 +584,16 @@ 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 { @@ -652,8 +601,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -663,25 +610,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *     "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.
      *
@@ -691,10 +632,7 @@ public Builder setParent(java.lang.String value) {
      *     "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() { @@ -704,8 +642,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -715,17 +651,13 @@ 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; @@ -735,8 +667,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -745,13 +675,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -760,8 +690,6 @@ 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
@@ -770,14 +698,15 @@ 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 { @@ -785,8 +714,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -795,22 +722,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * 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
@@ -819,7 +742,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -829,8 +751,6 @@ 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
@@ -839,14 +759,12 @@ 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; @@ -854,10 +772,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -865,7 +781,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -873,8 +788,6 @@ 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
@@ -882,7 +795,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -894,8 +806,6 @@ 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
@@ -903,7 +813,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -912,9 +821,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); } @@ -924,12 +833,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(); } @@ -938,27 +847,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; @@ -973,4 +882,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListExclusionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java index 438c04eb9..86bf7ed8c 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -35,16 +17,11 @@ public interface ListExclusionsRequestOrBuilder
    *     "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.
    *
@@ -54,17 +31,13 @@ public interface ListExclusionsRequestOrBuilder
    *     "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
@@ -73,13 +46,10 @@ public interface ListExclusionsRequestOrBuilder
    * 
* * 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
@@ -88,14 +58,12 @@ public interface ListExclusionsRequestOrBuilder
    * 
* * 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
@@ -103,7 +71,6 @@ public interface ListExclusionsRequestOrBuilder
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java index 71789d8af..935d609d0 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -44,32 +26,28 @@ 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.
    * 
@@ -81,8 +59,6 @@ public java.util.List getExclusionsList() { return exclusions_; } /** - * - * *
    * A list of exclusions.
    * 
@@ -90,13 +66,11 @@ 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.
    * 
@@ -108,8 +82,6 @@ public int getExclusionsCount() { return exclusions_.size(); } /** - * - * *
    * A list of exclusions.
    * 
@@ -121,8 +93,6 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { return exclusions_.get(index); } /** - * - * *
    * A list of exclusions.
    * 
@@ -130,17 +100,15 @@ 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
@@ -148,7 +116,6 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -173,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -190,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < exclusions_.size(); i++) { output.writeMessage(1, exclusions_.get(i)); } @@ -219,7 +186,8 @@ 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_); @@ -232,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -264,136 +233,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.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 @@ -431,12 +396,9 @@ 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; } @@ -464,39 +426,38 @@ 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; @@ -523,10 +484,9 @@ 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_); } @@ -563,32 +523,30 @@ 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) { @@ -598,28 +556,21 @@ 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.
      * 
@@ -634,8 +585,6 @@ public java.util.List getExclusionsList() { } } /** - * - * *
      * A list of exclusions.
      * 
@@ -650,8 +599,6 @@ public int getExclusionsCount() { } } /** - * - * *
      * A list of exclusions.
      * 
@@ -666,15 +613,14 @@ 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(); @@ -688,8 +634,6 @@ public Builder setExclusions(int index, com.google.logging.v2.LogExclusion value return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -708,8 +652,6 @@ public Builder setExclusions( return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -730,15 +672,14 @@ 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(); @@ -752,15 +693,14 @@ public Builder addExclusions(int index, com.google.logging.v2.LogExclusion value 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()); @@ -771,8 +711,6 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion.Builder builderF return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -791,8 +729,6 @@ public Builder addExclusions( return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -803,7 +739,8 @@ 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); @@ -811,8 +748,6 @@ public Builder addAllExclusions( return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -830,8 +765,6 @@ public Builder clearExclusions() { return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -849,44 +782,39 @@ 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 { @@ -894,8 +822,6 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in } } /** - * - * *
      * A list of exclusions.
      * 
@@ -903,47 +829,42 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in * 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_; @@ -951,8 +872,6 @@ public java.util.List getExclusionsB 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
@@ -960,13 +879,13 @@ public java.util.List getExclusionsB
      * 
* * 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; @@ -975,8 +894,6 @@ 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
@@ -984,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -999,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * 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
@@ -1008,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1031,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1041,8 +952,6 @@ 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
@@ -1050,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,12 +983,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(); } @@ -1090,27 +997,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; @@ -1125,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListExclusionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java index bc1eeb233..fa87a29cc 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    * 
@@ -44,8 +25,6 @@ public interface ListExclusionsResponseOrBuilder */ com.google.logging.v2.LogExclusion getExclusions(int index); /** - * - * *
    * A list of exclusions.
    * 
@@ -54,30 +33,25 @@ public interface ListExclusionsResponseOrBuilder */ 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
@@ -85,13 +59,10 @@ public interface ListExclusionsResponseOrBuilder
    * 
* * 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
@@ -99,8 +70,8 @@ public interface ListExclusionsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java index abfe9428b..02a181bff 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -44,32 +26,28 @@ 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:
    *
@@ -79,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   "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 @@ -91,15 +66,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource whose links are to be listed:
    *
@@ -109,18 +83,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. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -129,12 +102,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int 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
@@ -142,7 +112,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -151,15 +120,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -167,15 +135,16 @@ 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 { @@ -186,14 +155,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { 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 @@ -202,7 +168,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +179,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -240,7 +206,8 @@ 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; @@ -250,16 +217,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.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; } @@ -282,136 +252,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -423,9 +389,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 @@ -444,11 +410,8 @@ 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; } @@ -470,39 +433,38 @@ 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; @@ -550,31 +512,27 @@ 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) { @@ -584,13 +542,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -600,16 +555,14 @@ 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,8 +571,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -629,17 +580,16 @@ 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 { @@ -647,8 +597,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -658,25 +606,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *   "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:
      *
@@ -686,10 +628,7 @@ public Builder setParent(java.lang.String value) {
      *   "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() { @@ -699,8 +638,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -710,17 +647,13 @@ 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; @@ -730,8 +663,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -739,13 +670,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -754,8 +685,6 @@ 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
@@ -763,14 +692,15 @@ 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 { @@ -778,8 +708,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -787,22 +715,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * 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
@@ -810,7 +734,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -820,8 +743,6 @@ 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
@@ -829,14 +750,12 @@ 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; @@ -844,16 +763,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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 @@ -861,14 +777,11 @@ 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. */ @@ -880,14 +793,11 @@ 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() { @@ -896,9 +806,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); } @@ -908,12 +818,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(); } @@ -922,27 +832,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; @@ -957,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLinksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java index a19f11e98..a8a0617b8 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -35,16 +17,11 @@ public interface ListLinksRequestOrBuilder
    *   "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:
    *
@@ -54,17 +31,13 @@ public interface ListLinksRequestOrBuilder
    *   "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
@@ -72,13 +45,10 @@ public interface ListLinksRequestOrBuilder
    * 
* * 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
@@ -86,20 +56,17 @@ public interface ListLinksRequestOrBuilder
    * 
* * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java index f30305a76..94aebacf4 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -44,32 +26,28 @@ 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.
    * 
@@ -81,8 +59,6 @@ public java.util.List getLinksList() { return links_; } /** - * - * *
    * A list of links.
    * 
@@ -90,12 +66,11 @@ 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.
    * 
@@ -107,8 +82,6 @@ public int getLinksCount() { return links_.size(); } /** - * - * *
    * A list of links.
    * 
@@ -120,8 +93,6 @@ public com.google.logging.v2.Link getLinks(int index) { return links_.get(index); } /** - * - * *
    * A list of links.
    * 
@@ -129,17 +100,15 @@ 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
@@ -147,7 +116,6 @@ public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -172,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -189,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < links_.size(); i++) { output.writeMessage(1, links_.get(i)); } @@ -218,7 +186,8 @@ 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_); @@ -231,15 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -262,136 +233,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +375,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 @@ -429,12 +396,9 @@ 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; } @@ -462,39 +426,38 @@ 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; @@ -521,10 +484,9 @@ 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_); } @@ -561,31 +523,30 @@ 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) { @@ -595,27 +556,21 @@ 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.
      * 
@@ -630,8 +585,6 @@ public java.util.List getLinksList() { } } /** - * - * *
      * A list of links.
      * 
@@ -646,8 +599,6 @@ public int getLinksCount() { } } /** - * - * *
      * A list of links.
      * 
@@ -662,15 +613,14 @@ 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(); @@ -684,15 +634,14 @@ public Builder setLinks(int index, com.google.logging.v2.Link value) { 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()); @@ -703,8 +652,6 @@ public Builder setLinks(int index, com.google.logging.v2.Link.Builder builderFor return this; } /** - * - * *
      * A list of links.
      * 
@@ -725,15 +672,14 @@ 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(); @@ -747,15 +693,14 @@ public Builder addLinks(int index, com.google.logging.v2.Link value) { 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()); @@ -766,15 +711,14 @@ public Builder addLinks(com.google.logging.v2.Link.Builder builderForValue) { 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()); @@ -785,18 +729,18 @@ public Builder addLinks(int index, com.google.logging.v2.Link.Builder builderFor 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); @@ -804,8 +748,6 @@ public Builder addAllLinks(java.lang.Iterable * A list of links. *
@@ -823,8 +765,6 @@ public Builder clearLinks() { return this; } /** - * - * *
      * A list of links.
      * 
@@ -842,43 +782,39 @@ 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 { @@ -886,8 +822,6 @@ public java.util.List getLinksOrB } } /** - * - * *
      * A list of links.
      * 
@@ -895,46 +829,42 @@ public java.util.List getLinksOrB * 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_; @@ -942,8 +872,6 @@ public java.util.List getLinksBuilderList() 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
@@ -951,13 +879,13 @@ public java.util.List getLinksBuilderList()
      * 
* * 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; @@ -966,8 +894,6 @@ 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
@@ -975,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -990,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * 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
@@ -999,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1022,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1032,8 +952,6 @@ 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
@@ -1041,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1067,12 +983,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(); } @@ -1081,27 +997,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; @@ -1116,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLinksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java similarity index 65% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java index 8c67622b0..3dd25f26a 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    * 
@@ -44,8 +25,6 @@ public interface ListLinksResponseOrBuilder */ com.google.logging.v2.Link getLinks(int index); /** - * - * *
    * A list of links.
    * 
@@ -54,29 +33,25 @@ public interface ListLinksResponseOrBuilder */ 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
@@ -84,13 +59,10 @@ public interface ListLinksResponseOrBuilder
    * 
* * 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
@@ -98,8 +70,8 @@ public interface ListLinksResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java similarity index 77% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java index 6025d7738..4ff613f79 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java @@ -1,44 +1,27 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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 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_ = ""; @@ -46,33 +29,29 @@ 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:
@@ -93,18 +72,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 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:
@@ -125,18 +100,13 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() {
    * 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:
@@ -157,10 +127,7 @@ 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. */ @@ -168,8 +135,6 @@ 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:
@@ -190,24 +155,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); } 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`.
@@ -217,7 +177,6 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -226,15 +185,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -244,15 +202,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -261,12 +220,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } 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
@@ -277,7 +233,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -286,15 +241,14 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Optional. How the results should be sorted.  Presently, the only permitted
    * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -305,15 +259,16 @@ 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 { @@ -324,8 +279,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { 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
@@ -334,7 +287,6 @@ public com.google.protobuf.ByteString getOrderByBytes() {
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -343,12 +295,9 @@ 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
@@ -357,7 +306,6 @@ public int getPageSize() {
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -366,15 +314,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `page_token` must be the value of
@@ -383,15 +330,16 @@ 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 { @@ -400,7 +348,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -412,7 +359,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } @@ -444,7 +392,8 @@ 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_); @@ -465,19 +414,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.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; } @@ -506,141 +459,138 @@ 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) { - super(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; @@ -649,9 +599,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 @@ -670,11 +620,8 @@ 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; } @@ -703,39 +650,38 @@ 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; @@ -798,44 +744,38 @@ 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) { @@ -845,12 +785,10 @@ 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_); @@ -858,8 +796,6 @@ private void ensureResourceNamesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -880,19 +816,15 @@ 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:
@@ -913,18 +845,13 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() {
      * 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:
@@ -945,10 +872,7 @@ 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. */ @@ -956,8 +880,6 @@ 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:
@@ -978,19 +900,15 @@ 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:
@@ -1011,18 +929,14 @@ public com.google.protobuf.ByteString getResourceNamesBytes(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; @@ -1030,8 +944,6 @@ public Builder setResourceNames(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -1052,17 +964,13 @@ public Builder setResourceNames(int index, java.lang.String value) {
      * 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; @@ -1070,8 +978,6 @@ public Builder addResourceNames(java.lang.String value) { return this; } /** - * - * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -1092,23 +998,20 @@ public Builder addResourceNames(java.lang.String value) {
      * 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:
@@ -1129,22 +1032,17 @@ public Builder addAllResourceNames(java.lang.Iterable values)
      * 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:
@@ -1165,17 +1063,13 @@ 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); @@ -1186,8 +1080,6 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { 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`.
@@ -1197,13 +1089,13 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1212,8 +1104,6 @@ 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`.
@@ -1223,14 +1113,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1238,8 +1129,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1249,22 +1138,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1274,7 +1159,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1284,8 +1168,6 @@ 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`.
@@ -1295,14 +1177,12 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1312,8 +1192,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { 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
@@ -1324,13 +1202,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -1339,8 +1217,6 @@ 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
@@ -1351,14 +1227,15 @@ 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 { @@ -1366,8 +1243,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1378,22 +1253,18 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      * 
* * 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
@@ -1404,7 +1275,6 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1414,8 +1284,6 @@ 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
@@ -1426,14 +1294,12 @@ 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; @@ -1441,10 +1307,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { 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
@@ -1453,7 +1317,6 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1461,8 +1324,6 @@ 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
@@ -1471,7 +1332,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1483,8 +1343,6 @@ 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
@@ -1493,7 +1351,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1505,8 +1362,6 @@ 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
@@ -1515,13 +1370,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; @@ -1530,8 +1385,6 @@ 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
@@ -1540,14 +1393,15 @@ 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 { @@ -1555,8 +1409,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `page_token` must be the value of
@@ -1565,22 +1417,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * 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
@@ -1589,7 +1437,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1599,8 +1446,6 @@ 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
@@ -1609,23 +1454,21 @@ 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); } @@ -1635,12 +1478,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(); } @@ -1649,27 +1492,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; @@ -1684,4 +1527,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogEntriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java similarity index 82% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java index 02b2de227..467c18bee 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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:
@@ -46,16 +28,12 @@ public interface ListLogEntriesRequestOrBuilder
    * 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:
@@ -76,16 +54,11 @@ public interface ListLogEntriesRequestOrBuilder
    * 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:
@@ -106,17 +79,12 @@ public interface ListLogEntriesRequestOrBuilder
    * 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:
@@ -137,18 +105,14 @@ public interface ListLogEntriesRequestOrBuilder
    * 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`.
@@ -158,13 +122,10 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * 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`.
@@ -174,14 +135,12 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * 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
@@ -192,13 +151,10 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * 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
@@ -209,14 +165,12 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * 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
@@ -225,14 +179,11 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * 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
@@ -241,13 +192,10 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * 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
@@ -256,8 +204,8 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java similarity index 76% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java index 60df43a85..1961d81fa 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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_ = ""; @@ -44,32 +26,28 @@ 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
@@ -83,8 +61,6 @@ 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
@@ -94,13 +70,11 @@ 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
@@ -114,8 +88,6 @@ 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
@@ -129,8 +101,6 @@ 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
@@ -140,17 +110,15 @@ 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
@@ -165,7 +133,6 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -174,15 +141,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -197,15 +163,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -214,7 +181,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +192,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < entries_.size(); i++) { output.writeMessage(1, entries_.get(i)); } @@ -243,7 +210,8 @@ 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_); @@ -256,16 +224,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.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; } @@ -288,136 +257,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -434,9 +399,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 @@ -455,12 +420,9 @@ 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; } @@ -488,39 +450,38 @@ 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; @@ -547,10 +508,9 @@ 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_); } @@ -587,31 +547,30 @@ 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) { @@ -621,28 +580,21 @@ 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
@@ -659,8 +611,6 @@ 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
@@ -677,8 +627,6 @@ 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
@@ -695,8 +643,6 @@ 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
@@ -705,7 +651,8 @@ 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();
@@ -719,8 +666,6 @@ public Builder setEntries(int index, 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
@@ -729,7 +674,8 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry value) {
      *
      * 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());
@@ -740,8 +686,6 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder buil
       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
@@ -764,8 +708,6 @@ 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
@@ -774,7 +716,8 @@ 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();
@@ -788,8 +731,6 @@ public Builder addEntries(int index, 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
@@ -798,7 +739,8 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry value) {
      *
      * 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());
@@ -809,8 +751,6 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue
       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
@@ -819,7 +759,8 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue
      *
      * 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());
@@ -830,8 +771,6 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder buil
       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
@@ -844,7 +783,8 @@ 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);
@@ -852,8 +792,6 @@ 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
@@ -873,8 +811,6 @@ 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
@@ -894,8 +830,6 @@ 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
@@ -904,12 +838,11 @@ 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
@@ -918,16 +851,14 @@ public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) {
      *
      * 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
@@ -936,8 +867,8 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public java.util.List
-        getEntriesOrBuilderList() {
+    public java.util.List 
+         getEntriesOrBuilderList() {
       if (entriesBuilder_ != null) {
         return entriesBuilder_.getMessageOrBuilderList();
       } else {
@@ -945,8 +876,6 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(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
@@ -956,12 +885,10 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
      * 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
@@ -970,13 +897,12 @@ 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
@@ -985,22 +911,20 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) {
      *
      * 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_;
@@ -1008,8 +932,6 @@ public java.util.List getEntriesBuilderL
 
     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
@@ -1024,13 +946,13 @@ public java.util.List getEntriesBuilderL
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1039,8 +961,6 @@ 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
@@ -1055,14 +975,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1070,8 +991,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * 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
@@ -1086,22 +1005,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -1116,7 +1031,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1126,8 +1040,6 @@ 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
@@ -1142,23 +1054,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1168,12 +1078,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(); } @@ -1182,27 +1092,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; @@ -1217,4 +1127,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogEntriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java similarity index 78% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java index bc524aa76..5e0baed38 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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
@@ -34,10 +16,9 @@ public interface ListLogEntriesResponseOrBuilder
    *
    * 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
@@ -48,8 +29,6 @@ public interface ListLogEntriesResponseOrBuilder
    */
   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
@@ -60,8 +39,6 @@ public interface ListLogEntriesResponseOrBuilder
    */
   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
@@ -70,10 +47,9 @@ public interface ListLogEntriesResponseOrBuilder
    *
    * 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
@@ -82,11 +58,10 @@ public interface ListLogEntriesResponseOrBuilder
    *
    * 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
@@ -101,13 +76,10 @@ public interface ListLogEntriesResponseOrBuilder
    * 
* * 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
@@ -122,8 +94,8 @@ public interface ListLogEntriesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java similarity index 69% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java index 549d46034..59bb9b8df 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto 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_ = ""; @@ -44,42 +26,35 @@ 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 @@ -88,33 +63,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. 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 { @@ -123,12 +96,9 @@ public com.google.protobuf.ByteString getParentBytes() { } 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
@@ -137,7 +107,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -146,15 +115,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -163,15 +131,16 @@ 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 { @@ -182,8 +151,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { 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
@@ -191,7 +158,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -200,7 +166,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -238,7 +204,8 @@ 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; @@ -248,17 +215,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.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; } @@ -281,136 +250,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +387,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 @@ -443,11 +408,8 @@ 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; } @@ -469,39 +431,38 @@ 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; @@ -549,31 +510,27 @@ 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) { @@ -583,29 +540,24 @@ 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; @@ -614,25 +566,22 @@ 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 { @@ -640,43 +589,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * 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() { @@ -686,25 +624,19 @@ 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; @@ -714,8 +646,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -724,13 +654,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -739,8 +669,6 @@ 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
@@ -749,14 +677,15 @@ 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 { @@ -764,8 +693,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -774,22 +701,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * 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
@@ -798,7 +721,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -808,8 +730,6 @@ 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
@@ -818,14 +738,12 @@ 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; @@ -833,10 +751,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -844,7 +760,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -852,8 +767,6 @@ 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
@@ -861,7 +774,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -873,8 +785,6 @@ 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
@@ -882,7 +792,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -891,9 +800,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); } @@ -903,12 +812,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(); } @@ -917,27 +826,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; @@ -952,4 +861,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogMetricsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java index c7bbd3aa4..1df55e664 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto 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
@@ -67,13 +40,10 @@ public interface ListLogMetricsRequestOrBuilder
    * 
* * 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
@@ -82,14 +52,12 @@ public interface ListLogMetricsRequestOrBuilder
    * 
* * 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
@@ -97,7 +65,6 @@ public interface ListLogMetricsRequestOrBuilder
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java index 7451505b6..d1d8938e7 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto 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_ = ""; @@ -44,32 +26,28 @@ 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.
    * 
@@ -81,8 +59,6 @@ public java.util.List getMetricsList() { return metrics_; } /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -90,13 +66,11 @@ 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.
    * 
@@ -108,8 +82,6 @@ public int getMetricsCount() { return metrics_.size(); } /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -121,8 +93,6 @@ public com.google.logging.v2.LogMetric getMetrics(int index) { return metrics_.get(index); } /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -130,17 +100,15 @@ 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
@@ -148,7 +116,6 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -157,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call this
@@ -173,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -190,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < metrics_.size(); i++) { output.writeMessage(1, metrics_.get(i)); } @@ -219,7 +186,8 @@ 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_); @@ -232,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -264,136 +233,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.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 @@ -431,12 +396,9 @@ 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; } @@ -464,39 +426,38 @@ 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; @@ -523,10 +484,9 @@ 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_); } @@ -563,31 +523,30 @@ 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) { @@ -597,28 +556,21 @@ 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.
      * 
@@ -633,8 +585,6 @@ public java.util.List getMetricsList() { } } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -649,8 +599,6 @@ public int getMetricsCount() { } } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -665,15 +613,14 @@ 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(); @@ -687,15 +634,14 @@ public Builder setMetrics(int index, com.google.logging.v2.LogMetric value) { 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()); @@ -706,8 +652,6 @@ public Builder setMetrics(int index, com.google.logging.v2.LogMetric.Builder bui return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -728,15 +672,14 @@ 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(); @@ -750,15 +693,14 @@ public Builder addMetrics(int index, com.google.logging.v2.LogMetric value) { 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()); @@ -769,15 +711,14 @@ public Builder addMetrics(com.google.logging.v2.LogMetric.Builder builderForValu 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()); @@ -788,8 +729,6 @@ public Builder addMetrics(int index, com.google.logging.v2.LogMetric.Builder bui return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -800,7 +739,8 @@ 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); @@ -808,8 +748,6 @@ public Builder addAllMetrics( return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -827,8 +765,6 @@ public Builder clearMetrics() { return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -846,44 +782,39 @@ 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 { @@ -891,8 +822,6 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index) { } } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -900,47 +829,42 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index) { * 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_; @@ -948,8 +872,6 @@ public java.util.List getMetricsBuilder 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
@@ -957,13 +879,13 @@ public java.util.List getMetricsBuilder
      * 
* * 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; @@ -972,8 +894,6 @@ 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
@@ -981,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -996,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call this
@@ -1005,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call this
@@ -1028,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1038,8 +952,6 @@ 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
@@ -1047,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1073,12 +983,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(); } @@ -1087,27 +997,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; @@ -1122,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogMetricsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java similarity index 65% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java index ce3664aad..62637ceba 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto 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.
    * 
@@ -44,8 +25,6 @@ public interface ListLogMetricsResponseOrBuilder */ com.google.logging.v2.LogMetric getMetrics(int index); /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -54,29 +33,25 @@ public interface ListLogMetricsResponseOrBuilder */ 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
@@ -84,13 +59,10 @@ public interface ListLogMetricsResponseOrBuilder
    * 
* * 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
@@ -98,8 +70,8 @@ public interface ListLogMetricsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java similarity index 73% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java index 4690bd9d3..e0e69cd30 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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:
    *
@@ -80,10 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * *  `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 @@ -92,15 +68,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource name to list logs for:
    *
@@ -110,18 +85,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. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -130,13 +104,10 @@ public com.google.protobuf.ByteString getParentBytes() { } 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:
    *
@@ -155,18 +126,14 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 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:
    *
@@ -185,18 +152,13 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() {
    * 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:
    *
@@ -215,10 +177,7 @@ 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. */ @@ -226,8 +185,6 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
    * Optional. List of resource names to list logs for:
    *
@@ -246,22 +203,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 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
@@ -269,7 +222,6 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -278,12 +230,9 @@ 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
@@ -292,7 +241,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -301,15 +249,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -318,15 +265,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -335,7 +283,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,7 +294,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -373,7 +321,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -394,17 +343,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.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; } @@ -431,150 +384,148 @@ 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) { - super(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 @@ -593,11 +544,8 @@ 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; } @@ -623,39 +571,38 @@ 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; @@ -713,38 +660,33 @@ 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) { @@ -754,13 +696,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name to list logs for:
      *
@@ -770,16 +709,14 @@ 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; @@ -788,8 +725,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name to list logs for:
      *
@@ -799,17 +734,16 @@ 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 { @@ -817,8 +751,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name to list logs for:
      *
@@ -828,25 +760,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      * *  `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:
      *
@@ -856,10 +782,7 @@ public Builder setParent(java.lang.String value) {
      * *  `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() { @@ -869,8 +792,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The resource name to list logs for:
      *
@@ -880,17 +801,13 @@ 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; @@ -900,7 +817,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.LazyStringArrayList resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureResourceNamesIsMutable() { if (!resourceNames_.isModifiable()) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); @@ -908,8 +824,6 @@ private void ensureResourceNamesIsMutable() { bitField0_ |= 0x00000002; } /** - * - * *
      * Optional. List of resource names to list logs for:
      *
@@ -928,19 +842,15 @@ 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:
      *
@@ -959,18 +869,13 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() {
      * 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:
      *
@@ -989,10 +894,7 @@ 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. */ @@ -1000,8 +902,6 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
      * Optional. List of resource names to list logs for:
      *
@@ -1020,19 +920,15 @@ 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:
      *
@@ -1051,18 +947,14 @@ public com.google.protobuf.ByteString getResourceNamesBytes(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; @@ -1070,8 +962,6 @@ public Builder setResourceNames(int index, java.lang.String value) { return this; } /** - * - * *
      * Optional. List of resource names to list logs for:
      *
@@ -1090,17 +980,13 @@ public Builder setResourceNames(int index, java.lang.String value) {
      * 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; @@ -1108,8 +994,6 @@ public Builder addResourceNames(java.lang.String value) { return this; } /** - * - * *
      * Optional. List of resource names to list logs for:
      *
@@ -1128,23 +1012,20 @@ public Builder addResourceNames(java.lang.String value) {
      * 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:
      *
@@ -1163,22 +1044,17 @@ public Builder addAllResourceNames(java.lang.Iterable values)
      * 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:
      *
@@ -1197,17 +1073,13 @@ 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); @@ -1216,10 +1088,8 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { 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
@@ -1227,7 +1097,6 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1235,8 +1104,6 @@ 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
@@ -1244,7 +1111,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1256,8 +1122,6 @@ 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
@@ -1265,7 +1129,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1277,8 +1140,6 @@ 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
@@ -1287,13 +1148,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; @@ -1302,8 +1163,6 @@ 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
@@ -1312,14 +1171,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1327,8 +1187,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -1337,22 +1195,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 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
@@ -1361,7 +1215,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1371,8 +1224,6 @@ 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
@@ -1381,23 +1232,21 @@ 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); } @@ -1407,12 +1256,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(); } @@ -1421,27 +1270,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; @@ -1456,4 +1305,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java index 92a81b988..96dcef42f 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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:
    *
@@ -35,16 +17,11 @@ public interface ListLogsRequestOrBuilder
    * *  `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:
    *
@@ -54,17 +31,13 @@ public interface ListLogsRequestOrBuilder
    * *  `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:
    *
@@ -83,16 +56,12 @@ public interface ListLogsRequestOrBuilder
    * 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:
    *
@@ -111,16 +80,11 @@ public interface ListLogsRequestOrBuilder
    * 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:
    *
@@ -139,17 +103,12 @@ public interface ListLogsRequestOrBuilder
    * 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:
    *
@@ -168,18 +127,14 @@ public interface ListLogsRequestOrBuilder
    * 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
@@ -187,14 +142,11 @@ public interface ListLogsRequestOrBuilder
    * 
* * 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
@@ -203,13 +155,10 @@ public interface ListLogsRequestOrBuilder
    * 
* * 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
@@ -218,8 +167,8 @@ public interface ListLogsRequestOrBuilder
    * 
* * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java index 6bd3198f6..fafd15d02 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponse.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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
@@ -78,15 +57,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * 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
@@ -94,15 +71,12 @@ public com.google.protobuf.ProtocolStringList getLogNamesList() {
    * 
* * 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
@@ -110,7 +84,6 @@ public int getLogNamesCount() {
    * 
* * repeated string log_names = 3; - * * @param index The index of the element to return. * @return The logNames at the given index. */ @@ -118,8 +91,6 @@ public java.lang.String getLogNames(int index) { return logNames_.get(index); } /** - * - * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -127,21 +98,18 @@ 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
@@ -149,7 +117,6 @@ public com.google.protobuf.ByteString getLogNamesBytes(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -158,15 +125,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -174,15 +140,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -191,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } @@ -238,15 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -269,149 +238,146 @@ 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) { - super(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 @@ -430,11 +396,8 @@ 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; } @@ -454,39 +417,38 @@ 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; @@ -536,26 +498,23 @@ 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) { @@ -565,12 +524,10 @@ 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_); @@ -578,8 +535,6 @@ private void ensureLogNamesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -587,16 +542,14 @@ 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
@@ -604,15 +557,12 @@ public com.google.protobuf.ProtocolStringList getLogNamesList() {
      * 
* * 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
@@ -620,7 +570,6 @@ public int getLogNamesCount() {
      * 
* * repeated string log_names = 3; - * * @param index The index of the element to return. * @return The logNames at the given index. */ @@ -628,8 +577,6 @@ public java.lang.String getLogNames(int index) { return logNames_.get(index); } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -637,16 +584,14 @@ 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
@@ -654,15 +599,13 @@ public com.google.protobuf.ByteString getLogNamesBytes(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; @@ -670,8 +613,6 @@ public Builder setLogNames(int index, java.lang.String value) { return this; } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -679,14 +620,12 @@ public Builder setLogNames(int index, java.lang.String value) {
      * 
* * 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; @@ -694,8 +633,6 @@ public Builder addLogNames(java.lang.String value) { return this; } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -703,20 +640,19 @@ public Builder addLogNames(java.lang.String value) {
      * 
* * 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
@@ -724,19 +660,16 @@ public Builder addAllLogNames(java.lang.Iterable values) {
      * 
* * 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
@@ -744,14 +677,12 @@ 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); @@ -762,8 +693,6 @@ public Builder addLogNamesBytes(com.google.protobuf.ByteString value) { 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
@@ -771,13 +700,13 @@ public Builder addLogNamesBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -786,8 +715,6 @@ 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
@@ -795,14 +722,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -810,8 +738,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * 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
@@ -819,22 +745,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -842,7 +764,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -852,8 +773,6 @@ 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
@@ -861,23 +780,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -887,12 +804,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(); } @@ -901,27 +818,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; @@ -936,4 +853,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListLogsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java index be2d3cef5..66ddf0328 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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
@@ -33,13 +15,11 @@ public interface ListLogsResponseOrBuilder
    * 
* * 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
@@ -47,13 +27,10 @@ public interface ListLogsResponseOrBuilder
    * 
* * 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
@@ -61,14 +38,11 @@ public interface ListLogsResponseOrBuilder
    * 
* * 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
@@ -76,15 +50,13 @@ public interface ListLogsResponseOrBuilder
    * 
* * 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
@@ -92,13 +64,10 @@ public interface ListLogsResponseOrBuilder
    * 
* * 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
@@ -106,8 +75,8 @@ public interface ListLogsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java similarity index 68% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java index 9596fa95a..a2611bdf4 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequest.java @@ -1,74 +1,51 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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
@@ -76,7 +53,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -85,12 +61,9 @@ 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
@@ -99,7 +72,6 @@ public int getPageSize() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -108,15 +80,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -125,15 +96,16 @@ 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 { @@ -142,7 +114,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,7 +125,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -171,7 +143,8 @@ 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_); @@ -184,16 +157,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.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; } @@ -215,136 +189,131 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -355,14 +324,13 @@ 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(); } @@ -377,17 +345,13 @@ 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_; @@ -401,39 +365,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -441,9 +404,7 @@ 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()); } @@ -478,25 +439,22 @@ 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) { @@ -506,13 +464,10 @@ 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
@@ -520,7 +475,6 @@ public Builder mergeFrom(
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -528,8 +482,6 @@ 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
@@ -537,7 +489,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -549,8 +500,6 @@ 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
@@ -558,7 +507,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -570,8 +518,6 @@ 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
@@ -580,13 +526,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; @@ -595,8 +541,6 @@ 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
@@ -605,14 +549,15 @@ 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 { @@ -620,8 +565,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method.  `pageToken` must be the value of
@@ -630,22 +573,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * 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
@@ -654,7 +593,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -664,8 +602,6 @@ 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
@@ -674,23 +610,21 @@ 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); } @@ -700,13 +634,12 @@ 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(); } @@ -715,27 +648,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; @@ -750,4 +683,6 @@ public com.google.protobuf.Parser getPa public com.google.logging.v2.ListMonitoredResourceDescriptorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java index f89690c66..15d223bf5 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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
@@ -33,14 +15,11 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder
    * 
* * 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
@@ -49,13 +28,10 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder
    * 
* * 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
@@ -64,8 +40,8 @@ public interface ListMonitoredResourceDescriptorsRequestOrBuilder
    * 
* * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java index a69f72fc3..f264487ce 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponse.java @@ -1,44 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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_ = ""; @@ -46,32 +26,28 @@ private ListMonitoredResourceDescriptorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMonitoredResourceDescriptorsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.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.
    * 
@@ -83,8 +59,6 @@ public java.util.List getResourceDes return resourceDescriptors_; } /** - * - * *
    * A list of resource descriptors.
    * 
@@ -92,13 +66,11 @@ public java.util.List getResourceDes * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourceDescriptorsOrBuilderList() { return resourceDescriptors_; } /** - * - * *
    * A list of resource descriptors.
    * 
@@ -110,8 +82,6 @@ public int getResourceDescriptorsCount() { return resourceDescriptors_.size(); } /** - * - * *
    * A list of resource descriptors.
    * 
@@ -123,8 +93,6 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind return resourceDescriptors_.get(index); } /** - * - * *
    * A list of resource descriptors.
    * 
@@ -138,12 +106,9 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -151,7 +116,6 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -160,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -176,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -193,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < resourceDescriptors_.size(); i++) { output.writeMessage(1, resourceDescriptors_.get(i)); } @@ -222,8 +186,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_); @@ -236,16 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -269,136 +234,131 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -415,14 +375,13 @@ 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(); } @@ -437,18 +396,14 @@ 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_); @@ -460,8 +415,7 @@ private void buildPartialRepeatedFields( } } - 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_; @@ -472,39 +426,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -512,9 +465,7 @@ 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()) { @@ -533,10 +484,9 @@ 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_); } @@ -573,32 +523,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.api.MonitoredResourceDescriptor m = - input.readMessage( - com.google.api.MonitoredResourceDescriptor.parser(), extensionRegistry); - if (resourceDescriptorsBuilder_ == null) { - ensureResourceDescriptorsIsMutable(); - resourceDescriptors_.add(m); - } else { - resourceDescriptorsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.api.MonitoredResourceDescriptor m = + input.readMessage( + com.google.api.MonitoredResourceDescriptor.parser(), + extensionRegistry); + if (resourceDescriptorsBuilder_ == null) { + ensureResourceDescriptorsIsMutable(); + resourceDescriptors_.add(m); + } else { + resourceDescriptorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -608,30 +556,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List resourceDescriptors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResourceDescriptorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resourceDescriptors_ = - new java.util.ArrayList( - resourceDescriptors_); + resourceDescriptors_ = new java.util.ArrayList(resourceDescriptors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.api.MonitoredResourceDescriptor, - com.google.api.MonitoredResourceDescriptor.Builder, - com.google.api.MonitoredResourceDescriptorOrBuilder> - resourceDescriptorsBuilder_; + com.google.api.MonitoredResourceDescriptor, com.google.api.MonitoredResourceDescriptor.Builder, com.google.api.MonitoredResourceDescriptorOrBuilder> resourceDescriptorsBuilder_; /** - * - * *
      * A list of resource descriptors.
      * 
@@ -646,8 +585,6 @@ public java.util.List getResourceDes } } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -662,8 +599,6 @@ public int getResourceDescriptorsCount() { } } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -678,8 +613,6 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind } } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -701,8 +634,6 @@ public Builder setResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -721,8 +652,6 @@ public Builder setResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -743,8 +672,6 @@ public Builder addResourceDescriptors(com.google.api.MonitoredResourceDescriptor return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -766,8 +693,6 @@ public Builder addResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -786,8 +711,6 @@ public Builder addResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -806,8 +729,6 @@ public Builder addResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -818,7 +739,8 @@ public Builder addAllResourceDescriptors( java.lang.Iterable values) { if (resourceDescriptorsBuilder_ == null) { ensureResourceDescriptorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceDescriptors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceDescriptors_); onChanged(); } else { resourceDescriptorsBuilder_.addAllMessages(values); @@ -826,8 +748,6 @@ public Builder addAllResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -845,8 +765,6 @@ public Builder clearResourceDescriptors() { return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -864,8 +782,6 @@ public Builder removeResourceDescriptors(int index) { return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -877,8 +793,6 @@ public com.google.api.MonitoredResourceDescriptor.Builder getResourceDescriptors return getResourceDescriptorsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -888,22 +802,19 @@ 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 { @@ -911,8 +822,6 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor } } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -920,12 +829,10 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor * repeated .google.api.MonitoredResourceDescriptor resource_descriptors = 1; */ public com.google.api.MonitoredResourceDescriptor.Builder addResourceDescriptorsBuilder() { - return getResourceDescriptorsFieldBuilder() - .addBuilder(com.google.api.MonitoredResourceDescriptor.getDefaultInstance()); + return getResourceDescriptorsFieldBuilder().addBuilder( + com.google.api.MonitoredResourceDescriptor.getDefaultInstance()); } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -934,34 +841,26 @@ 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(), @@ -973,8 +872,6 @@ 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
@@ -982,13 +879,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; @@ -997,8 +894,6 @@ 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,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1021,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * 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
@@ -1030,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -1053,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1063,8 +952,6 @@ 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
@@ -1072,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1098,43 +983,41 @@ 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; @@ -1146,8 +1029,9 @@ 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java index e9514d3a2..02798749c 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListMonitoredResourceDescriptorsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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.
    * 
@@ -44,8 +25,6 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder */ com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int index); /** - * - * *
    * A list of resource descriptors.
    * 
@@ -54,30 +33,25 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder */ 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
@@ -85,13 +59,10 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder
    * 
* * 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
@@ -99,8 +70,8 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java index 56e876e5f..6e02cbc82 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -44,32 +26,28 @@ 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:
    *
@@ -79,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     "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 @@ -91,15 +66,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource whose sinks are to be listed:
    *
@@ -109,18 +83,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. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -129,12 +102,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int 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
@@ -143,7 +113,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -152,15 +121,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -169,15 +137,16 @@ 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 { @@ -188,8 +157,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { 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
@@ -197,7 +164,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -206,7 +172,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,7 +183,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -244,7 +210,8 @@ 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; @@ -254,16 +221,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.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; } @@ -286,136 +256,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -427,9 +393,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 @@ -448,11 +414,8 @@ 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; } @@ -474,39 +437,38 @@ 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; @@ -554,31 +516,27 @@ 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) { @@ -588,13 +546,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -604,16 +559,14 @@ 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; @@ -622,8 +575,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -633,17 +584,16 @@ 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 { @@ -651,8 +601,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -662,25 +610,19 @@ public com.google.protobuf.ByteString getParentBytes() {
      *     "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:
      *
@@ -690,10 +632,7 @@ public Builder setParent(java.lang.String value) {
      *     "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() { @@ -703,8 +642,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -714,17 +651,13 @@ 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; @@ -734,8 +667,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -744,13 +675,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -759,8 +690,6 @@ 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
@@ -769,14 +698,15 @@ 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 { @@ -784,8 +714,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -794,22 +722,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * 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
@@ -818,7 +742,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -828,8 +751,6 @@ 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
@@ -838,14 +759,12 @@ 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; @@ -853,10 +772,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { 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
@@ -864,7 +781,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -872,8 +788,6 @@ 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
@@ -881,7 +795,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -893,8 +806,6 @@ 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
@@ -902,7 +813,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -911,9 +821,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); } @@ -923,12 +833,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(); } @@ -937,27 +847,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; @@ -972,4 +882,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListSinksRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java index b282d5290..9333406e2 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -35,16 +17,11 @@ public interface ListSinksRequestOrBuilder
    *     "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:
    *
@@ -54,17 +31,13 @@ public interface ListSinksRequestOrBuilder
    *     "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
@@ -73,13 +46,10 @@ public interface ListSinksRequestOrBuilder
    * 
* * 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
@@ -88,14 +58,12 @@ public interface ListSinksRequestOrBuilder
    * 
* * 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
@@ -103,7 +71,6 @@ public interface ListSinksRequestOrBuilder
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java index 23d810f93..4273313af 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -44,32 +26,28 @@ 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.
    * 
@@ -81,8 +59,6 @@ public java.util.List getSinksList() { return sinks_; } /** - * - * *
    * A list of sinks.
    * 
@@ -90,12 +66,11 @@ 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.
    * 
@@ -107,8 +82,6 @@ public int getSinksCount() { return sinks_.size(); } /** - * - * *
    * A list of sinks.
    * 
@@ -120,8 +93,6 @@ public com.google.logging.v2.LogSink getSinks(int index) { return sinks_.get(index); } /** - * - * *
    * A list of sinks.
    * 
@@ -129,17 +100,15 @@ 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
@@ -147,7 +116,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -172,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -189,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < sinks_.size(); i++) { output.writeMessage(1, sinks_.get(i)); } @@ -218,7 +186,8 @@ 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_); @@ -231,15 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -262,136 +233,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +375,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 @@ -429,12 +396,9 @@ 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; } @@ -462,39 +426,38 @@ 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; @@ -521,10 +484,9 @@ 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_); } @@ -561,31 +523,30 @@ 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) { @@ -595,28 +556,21 @@ 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.
      * 
@@ -631,8 +585,6 @@ public java.util.List getSinksList() { } } /** - * - * *
      * A list of sinks.
      * 
@@ -647,8 +599,6 @@ public int getSinksCount() { } } /** - * - * *
      * A list of sinks.
      * 
@@ -663,15 +613,14 @@ 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(); @@ -685,15 +634,14 @@ public Builder setSinks(int index, com.google.logging.v2.LogSink value) { 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()); @@ -704,8 +652,6 @@ public Builder setSinks(int index, com.google.logging.v2.LogSink.Builder builder return this; } /** - * - * *
      * A list of sinks.
      * 
@@ -726,15 +672,14 @@ 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(); @@ -748,15 +693,14 @@ public Builder addSinks(int index, com.google.logging.v2.LogSink value) { 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()); @@ -767,15 +711,14 @@ public Builder addSinks(com.google.logging.v2.LogSink.Builder builderForValue) { 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()); @@ -786,18 +729,18 @@ public Builder addSinks(int index, com.google.logging.v2.LogSink.Builder builder 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); @@ -805,8 +748,6 @@ public Builder addAllSinks(java.lang.Iterable * A list of sinks. *
@@ -824,8 +765,6 @@ public Builder clearSinks() { return this; } /** - * - * *
      * A list of sinks.
      * 
@@ -843,44 +782,39 @@ 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 { @@ -888,8 +822,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index) { } } /** - * - * *
      * A list of sinks.
      * 
@@ -897,46 +829,42 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index) { * 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_; @@ -944,8 +872,6 @@ public java.util.List getSinksBuilderList 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
@@ -953,13 +879,13 @@ public java.util.List getSinksBuilderList
      * 
* * 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; @@ -968,8 +894,6 @@ 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
@@ -977,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -992,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * 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
@@ -1001,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1024,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1034,8 +952,6 @@ 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
@@ -1043,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1069,12 +983,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(); } @@ -1083,27 +997,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; @@ -1118,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListSinksResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java similarity index 65% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java index 054084afb..d8f0b38a7 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    * 
@@ -44,8 +25,6 @@ public interface ListSinksResponseOrBuilder */ com.google.logging.v2.LogSink getSinks(int index); /** - * - * *
    * A list of sinks.
    * 
@@ -54,29 +33,25 @@ public interface ListSinksResponseOrBuilder */ 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
@@ -84,13 +59,10 @@ public interface ListSinksResponseOrBuilder
    * 
* * 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
@@ -98,8 +70,8 @@ public interface ListSinksResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java index 5edd1dc1e..4dfe296ad 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -44,32 +26,28 @@ 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:
    *
@@ -77,7 +55,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -86,15 +63,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The bucket whose views are to be listed:
    *
@@ -102,15 +78,16 @@ 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 { @@ -119,12 +96,9 @@ public com.google.protobuf.ByteString getParentBytes() { } 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
@@ -133,7 +107,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -142,15 +115,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method. `pageToken` must be the value of
@@ -159,15 +131,16 @@ 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 { @@ -178,8 +151,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_ = 0; /** - * - * *
    * Optional. The maximum number of results to return from this request.
    *
@@ -188,7 +159,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -197,7 +167,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +178,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -235,7 +205,8 @@ 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; @@ -245,16 +216,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.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; } @@ -277,136 +251,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +388,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 @@ -439,11 +409,8 @@ 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; } @@ -465,39 +432,38 @@ 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; @@ -545,31 +511,27 @@ 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) { @@ -579,13 +541,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The bucket whose views are to be listed:
      *
@@ -593,13 +552,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; @@ -608,8 +567,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The bucket whose views are to be listed:
      *
@@ -617,14 +574,15 @@ 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 { @@ -632,8 +590,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The bucket whose views are to be listed:
      *
@@ -641,22 +597,18 @@ public com.google.protobuf.ByteString getParentBytes() {
      * 
* * 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:
      *
@@ -664,7 +616,6 @@ public Builder setParent(java.lang.String value) {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -674,8 +625,6 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The bucket whose views are to be listed:
      *
@@ -683,14 +632,12 @@ 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; @@ -700,8 +647,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { 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
@@ -710,13 +655,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -725,8 +670,6 @@ 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
@@ -735,14 +678,15 @@ 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 { @@ -750,8 +694,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -760,22 +702,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * 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
@@ -784,7 +722,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -794,8 +731,6 @@ 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
@@ -804,14 +739,12 @@ 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; @@ -819,10 +752,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return from this request.
      *
@@ -831,7 +762,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -839,8 +769,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      *
@@ -849,7 +777,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -861,8 +788,6 @@ public Builder setPageSize(int value) { return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      *
@@ -871,7 +796,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -880,9 +804,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); } @@ -892,12 +816,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(); } @@ -906,27 +830,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; @@ -941,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListViewsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java index 5145fa003..5eee52bd3 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -33,13 +15,10 @@ public interface ListViewsRequestOrBuilder
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The bucket whose views are to be listed:
    *
@@ -47,14 +26,12 @@ public interface ListViewsRequestOrBuilder
    * 
* * 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
@@ -63,13 +40,10 @@ public interface ListViewsRequestOrBuilder
    * 
* * 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
@@ -78,14 +52,12 @@ public interface ListViewsRequestOrBuilder
    * 
* * 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.
    *
@@ -94,7 +66,6 @@ public interface ListViewsRequestOrBuilder
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java index f2fd18331..cdf39bd55 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -44,32 +26,28 @@ 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.
    * 
@@ -81,8 +59,6 @@ public java.util.List getViewsList() { return views_; } /** - * - * *
    * A list of views.
    * 
@@ -90,12 +66,11 @@ 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.
    * 
@@ -107,8 +82,6 @@ public int getViewsCount() { return views_.size(); } /** - * - * *
    * A list of views.
    * 
@@ -120,8 +93,6 @@ public com.google.logging.v2.LogView getViews(int index) { return views_.get(index); } /** - * - * *
    * A list of views.
    * 
@@ -129,17 +100,15 @@ 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
@@ -147,7 +116,6 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -156,15 +124,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -172,15 +139,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -189,7 +157,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < views_.size(); i++) { output.writeMessage(1, views_.get(i)); } @@ -218,7 +186,8 @@ 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_); @@ -231,15 +200,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -262,136 +233,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +375,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 @@ -429,12 +396,9 @@ 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; } @@ -462,39 +426,38 @@ 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; @@ -521,10 +484,9 @@ 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_); } @@ -561,31 +523,30 @@ 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) { @@ -595,28 +556,21 @@ 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.
      * 
@@ -631,8 +585,6 @@ public java.util.List getViewsList() { } } /** - * - * *
      * A list of views.
      * 
@@ -647,8 +599,6 @@ public int getViewsCount() { } } /** - * - * *
      * A list of views.
      * 
@@ -663,15 +613,14 @@ 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(); @@ -685,15 +634,14 @@ public Builder setViews(int index, com.google.logging.v2.LogView value) { 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()); @@ -704,8 +652,6 @@ public Builder setViews(int index, com.google.logging.v2.LogView.Builder builder return this; } /** - * - * *
      * A list of views.
      * 
@@ -726,15 +672,14 @@ 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(); @@ -748,15 +693,14 @@ public Builder addViews(int index, com.google.logging.v2.LogView value) { 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()); @@ -767,15 +711,14 @@ public Builder addViews(com.google.logging.v2.LogView.Builder builderForValue) { 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()); @@ -786,18 +729,18 @@ public Builder addViews(int index, com.google.logging.v2.LogView.Builder builder 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); @@ -805,8 +748,6 @@ public Builder addAllViews(java.lang.Iterable * A list of views. *
@@ -824,8 +765,6 @@ public Builder clearViews() { return this; } /** - * - * *
      * A list of views.
      * 
@@ -843,44 +782,39 @@ 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 { @@ -888,8 +822,6 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(int index) { } } /** - * - * *
      * A list of views.
      * 
@@ -897,46 +829,42 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(int index) { * 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_; @@ -944,8 +872,6 @@ public java.util.List getViewsBuilderList 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
@@ -953,13 +879,13 @@ public java.util.List getViewsBuilderList
      * 
* * 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; @@ -968,8 +894,6 @@ 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
@@ -977,14 +901,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -992,8 +917,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * 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
@@ -1001,22 +924,18 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -1024,7 +943,6 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1034,8 +952,6 @@ 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
@@ -1043,23 +959,21 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1069,12 +983,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(); } @@ -1083,27 +997,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; @@ -1118,4 +1032,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.ListViewsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java similarity index 65% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java index 7023cd62b..32cbf00bf 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    * 
@@ -44,8 +25,6 @@ public interface ListViewsResponseOrBuilder */ com.google.logging.v2.LogView getViews(int index); /** - * - * *
    * A list of views.
    * 
@@ -54,29 +33,25 @@ public interface ListViewsResponseOrBuilder */ 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
@@ -84,13 +59,10 @@ public interface ListViewsResponseOrBuilder
    * 
* * 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
@@ -98,8 +70,8 @@ public interface ListViewsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java similarity index 65% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java index 67fd81041..8dd10e86a 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java @@ -1,77 +1,56 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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 @@ -80,7 +59,6 @@ public boolean getLogAnalyticsEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -92,7 +70,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (logAnalyticsEnabled_ != false) { output.writeBool(1, logAnalyticsEnabled_); } @@ -106,7 +85,8 @@ 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; @@ -116,14 +96,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.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; } @@ -136,142 +117,139 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -281,9 +259,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 @@ -302,11 +280,8 @@ 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; } @@ -322,39 +297,38 @@ 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; @@ -392,19 +366,17 @@ 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) { @@ -414,20 +386,16 @@ 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 @@ -435,15 +403,12 @@ 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. */ @@ -455,15 +420,12 @@ 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() { @@ -472,9 +434,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); } @@ -484,12 +446,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(); } @@ -498,27 +460,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; @@ -533,4 +495,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LocationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..5a8b0ca6d --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java similarity index 74% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java index 3a751c0e1..e88c30436 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java @@ -1,77 +1,57 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource name of the bucket.
    *
@@ -89,7 +69,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -98,15 +77,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource name of the bucket.
    *
@@ -124,15 +102,16 @@ 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 { @@ -141,18 +120,14 @@ public com.google.protobuf.ByteString getNameBytes() { } 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 @@ -161,29 +136,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 { @@ -194,16 +169,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { 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 @@ -211,16 +182,12 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * 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 @@ -228,15 +195,12 @@ 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() { @@ -246,15 +210,11 @@ 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 @@ -262,15 +222,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * 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 @@ -278,14 +234,11 @@ 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() { @@ -295,8 +248,6 @@ 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
@@ -305,7 +256,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * int32 retention_days = 11; - * * @return The retentionDays. */ @java.lang.Override @@ -316,8 +266,6 @@ public int getRetentionDays() { public static final int LOCKED_FIELD_NUMBER = 9; private boolean locked_ = false; /** - * - * *
    * Whether the bucket is locked.
    *
@@ -326,7 +274,6 @@ public int getRetentionDays() {
    * 
* * bool locked = 9; - * * @return The locked. */ @java.lang.Override @@ -337,47 +284,32 @@ 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.
    *
@@ -385,7 +317,6 @@ public com.google.logging.v2.LifecycleState getLifecycleState() {
    * 
* * bool analytics_enabled = 14; - * * @return The analyticsEnabled. */ @java.lang.Override @@ -394,13 +325,10 @@ 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.
    *
@@ -412,15 +340,13 @@ 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.
    *
@@ -432,15 +358,12 @@ public com.google.protobuf.ProtocolStringList getRestrictedFieldsList() {
    * 
* * 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.
    *
@@ -452,7 +375,6 @@ public int getRestrictedFieldsCount() {
    * 
* * repeated string restricted_fields = 15; - * * @param index The index of the element to return. * @return The restrictedFields at the given index. */ @@ -460,8 +382,6 @@ public java.lang.String getRestrictedFields(int index) { return restrictedFields_.get(index); } /** - * - * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -473,21 +393,18 @@ 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.
    * 
@@ -499,8 +416,6 @@ public java.util.List getIndexConfigsList() { return indexConfigs_; } /** - * - * *
    * A list of indexed fields and related configuration data.
    * 
@@ -508,13 +423,11 @@ 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.
    * 
@@ -526,8 +439,6 @@ public int getIndexConfigsCount() { return indexConfigs_.size(); } /** - * - * *
    * A list of indexed fields and related configuration data.
    * 
@@ -539,8 +450,6 @@ public com.google.logging.v2.IndexConfig getIndexConfigs(int index) { return indexConfigs_.get(index); } /** - * - * *
    * A list of indexed fields and related configuration data.
    * 
@@ -548,15 +457,14 @@ 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
@@ -566,7 +474,6 @@ public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int i
    * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; - * * @return Whether the cmekSettings field is set. */ @java.lang.Override @@ -574,8 +481,6 @@ public boolean hasCmekSettings() { return cmekSettings_ != null; } /** - * - * *
    * 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
@@ -585,18 +490,13 @@ 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
@@ -609,13 +509,10 @@ 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;
@@ -627,7 +524,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -646,8 +544,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     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) {
@@ -678,23 +575,28 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getCreateTime());
     }
     if (updateTime_ != null) {
-      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;
@@ -705,10 +607,12 @@ 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 (cmekSettings_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getCmekSettings());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(19, getCmekSettings());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -718,32 +622,42 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.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;
@@ -771,11 +685,13 @@ 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();
@@ -793,134 +709,132 @@ 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); } // Construct using com.google.logging.v2.LogBucket.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -941,7 +855,8 @@ 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 { @@ -958,9 +873,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 @@ -981,9 +896,7 @@ 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; } @@ -1009,10 +922,14 @@ private void buildPartial0(com.google.logging.v2.LogBucket result) { result.description_ = description_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.retentionDays_ = retentionDays_; @@ -1031,8 +948,9 @@ 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(); } } @@ -1040,39 +958,38 @@ 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; @@ -1137,10 +1054,9 @@ 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_); } @@ -1175,87 +1091,82 @@ 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) { @@ -1265,13 +1176,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource name of the bucket.
      *
@@ -1289,13 +1197,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; @@ -1304,8 +1212,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource name of the bucket.
      *
@@ -1323,14 +1229,15 @@ 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 { @@ -1338,8 +1245,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource name of the bucket.
      *
@@ -1357,22 +1262,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * 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.
      *
@@ -1390,7 +1291,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1400,8 +1300,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource name of the bucket.
      *
@@ -1419,14 +1317,12 @@ 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; @@ -1436,20 +1332,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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; @@ -1458,21 +1352,20 @@ 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 { @@ -1480,35 +1373,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * 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() { @@ -1518,21 +1404,17 @@ 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; @@ -1542,61 +1424,42 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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) { @@ -1612,18 +1475,15 @@ 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 { @@ -1634,22 +1494,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -1662,16 +1518,12 @@ 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); @@ -1684,16 +1536,12 @@ 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; @@ -1701,50 +1549,38 @@ 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_; @@ -1752,58 +1588,39 @@ 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) { @@ -1819,17 +1636,14 @@ 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 { @@ -1840,21 +1654,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -1867,15 +1677,11 @@ 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); @@ -1888,15 +1694,11 @@ 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; @@ -1904,57 +1706,43 @@ 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
@@ -1963,7 +1751,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * int32 retention_days = 11; - * * @return The retentionDays. */ @java.lang.Override @@ -1971,8 +1758,6 @@ 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
@@ -1981,7 +1766,6 @@ public int getRetentionDays() {
      * 
* * int32 retention_days = 11; - * * @param value The retentionDays to set. * @return This builder for chaining. */ @@ -1993,8 +1777,6 @@ 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
@@ -2003,7 +1785,6 @@ public Builder setRetentionDays(int value) {
      * 
* * int32 retention_days = 11; - * * @return This builder for chaining. */ public Builder clearRetentionDays() { @@ -2013,10 +1794,8 @@ public Builder clearRetentionDays() { return this; } - private boolean locked_; + private boolean locked_ ; /** - * - * *
      * Whether the bucket is locked.
      *
@@ -2025,7 +1804,6 @@ public Builder clearRetentionDays() {
      * 
* * bool locked = 9; - * * @return The locked. */ @java.lang.Override @@ -2033,8 +1811,6 @@ public boolean getLocked() { return locked_; } /** - * - * *
      * Whether the bucket is locked.
      *
@@ -2043,7 +1819,6 @@ public boolean getLocked() {
      * 
* * bool locked = 9; - * * @param value The locked to set. * @return This builder for chaining. */ @@ -2055,8 +1830,6 @@ public Builder setLocked(boolean value) { return this; } /** - * - * *
      * Whether the bucket is locked.
      *
@@ -2065,7 +1838,6 @@ public Builder setLocked(boolean value) {
      * 
* * bool locked = 9; - * * @return This builder for chaining. */ public Builder clearLocked() { @@ -2077,33 +1849,22 @@ 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. */ @@ -2114,35 +1875,24 @@ 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. */ @@ -2156,16 +1906,11 @@ 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() { @@ -2175,10 +1920,8 @@ public Builder clearLifecycleState() { return this; } - private boolean analyticsEnabled_; + private boolean analyticsEnabled_ ; /** - * - * *
      * Whether log analytics is enabled for this bucket.
      *
@@ -2186,7 +1929,6 @@ public Builder clearLifecycleState() {
      * 
* * bool analytics_enabled = 14; - * * @return The analyticsEnabled. */ @java.lang.Override @@ -2194,8 +1936,6 @@ public boolean getAnalyticsEnabled() { return analyticsEnabled_; } /** - * - * *
      * Whether log analytics is enabled for this bucket.
      *
@@ -2203,7 +1943,6 @@ public boolean getAnalyticsEnabled() {
      * 
* * bool analytics_enabled = 14; - * * @param value The analyticsEnabled to set. * @return This builder for chaining. */ @@ -2215,8 +1954,6 @@ public Builder setAnalyticsEnabled(boolean value) { return this; } /** - * - * *
      * Whether log analytics is enabled for this bucket.
      *
@@ -2224,7 +1961,6 @@ public Builder setAnalyticsEnabled(boolean value) {
      * 
* * bool analytics_enabled = 14; - * * @return This builder for chaining. */ public Builder clearAnalyticsEnabled() { @@ -2236,7 +1972,6 @@ 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_); @@ -2244,8 +1979,6 @@ private void ensureRestrictedFieldsIsMutable() { bitField0_ |= 0x00000100; } /** - * - * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2257,16 +1990,14 @@ 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.
      *
@@ -2278,15 +2009,12 @@ public com.google.protobuf.ProtocolStringList getRestrictedFieldsList() {
      * 
* * 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.
      *
@@ -2298,7 +2026,6 @@ public int getRestrictedFieldsCount() {
      * 
* * repeated string restricted_fields = 15; - * * @param index The index of the element to return. * @return The restrictedFields at the given index. */ @@ -2306,8 +2033,6 @@ public java.lang.String getRestrictedFields(int index) { return restrictedFields_.get(index); } /** - * - * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2319,16 +2044,14 @@ 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.
      *
@@ -2340,15 +2063,13 @@ public com.google.protobuf.ByteString getRestrictedFieldsBytes(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; @@ -2356,8 +2077,6 @@ public Builder setRestrictedFields(int index, java.lang.String value) { return this; } /** - * - * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2369,14 +2088,12 @@ public Builder setRestrictedFields(int index, java.lang.String value) {
      * 
* * 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; @@ -2384,8 +2101,6 @@ public Builder addRestrictedFields(java.lang.String value) { return this; } /** - * - * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2397,20 +2112,19 @@ public Builder addRestrictedFields(java.lang.String value) {
      * 
* * 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.
      *
@@ -2422,19 +2136,16 @@ public Builder addAllRestrictedFields(java.lang.Iterable value
      * 
* * 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.
      *
@@ -2446,14 +2157,12 @@ 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); @@ -2463,24 +2172,18 @@ public Builder addRestrictedFieldsBytes(com.google.protobuf.ByteString value) { } 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.
      * 
@@ -2495,8 +2198,6 @@ public java.util.List getIndexConfigsList() { } } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2511,8 +2212,6 @@ public int getIndexConfigsCount() { } } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2527,15 +2226,14 @@ 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(); @@ -2549,8 +2247,6 @@ public Builder setIndexConfigs(int index, com.google.logging.v2.IndexConfig valu return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2569,8 +2265,6 @@ public Builder setIndexConfigs( return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2591,15 +2285,14 @@ 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(); @@ -2613,15 +2306,14 @@ public Builder addIndexConfigs(int index, com.google.logging.v2.IndexConfig valu 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()); @@ -2632,8 +2324,6 @@ public Builder addIndexConfigs(com.google.logging.v2.IndexConfig.Builder builder return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2652,8 +2342,6 @@ public Builder addIndexConfigs( return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2664,7 +2352,8 @@ 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); @@ -2672,8 +2361,6 @@ public Builder addAllIndexConfigs( return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2691,8 +2378,6 @@ public Builder clearIndexConfigs() { return this; } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2710,44 +2395,39 @@ 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 { @@ -2755,8 +2435,6 @@ public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int i } } /** - * - * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2764,47 +2442,42 @@ public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int i * 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_; @@ -2812,13 +2485,8 @@ public java.util.List getIndexConfigs 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
@@ -2828,15 +2496,12 @@ public java.util.List getIndexConfigs
      * 
* * .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
@@ -2846,21 +2511,16 @@ 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
@@ -2885,8 +2545,6 @@ 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
@@ -2897,7 +2555,8 @@ 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 {
@@ -2908,8 +2567,6 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builde
       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
@@ -2922,9 +2579,9 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builde
      */
     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;
@@ -2937,8 +2594,6 @@ 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
@@ -2960,8 +2615,6 @@ 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
@@ -2978,8 +2631,6 @@ 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
@@ -2994,14 +2645,11 @@ 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
@@ -3013,24 +2661,21 @@ 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);
     }
 
@@ -3040,12 +2685,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();
   }
@@ -3054,27 +2699,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;
@@ -3089,4 +2734,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.logging.v2.LogBucket getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java
similarity index 100%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java
similarity index 83%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java
index f0a86378e..4f38df197 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/logging_config.proto
 
 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.
    *
@@ -43,13 +25,10 @@ public interface LogBucketOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource name of the bucket.
    *
@@ -67,118 +46,89 @@ public interface LogBucketOrBuilder
    * 
* * 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
@@ -187,14 +137,11 @@ public interface LogBucketOrBuilder
    * 
* * int32 retention_days = 11; - * * @return The retentionDays. */ int getRetentionDays(); /** - * - * *
    * Whether the bucket is locked.
    *
@@ -203,43 +150,30 @@ public interface LogBucketOrBuilder
    * 
* * 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.
    *
@@ -247,14 +181,11 @@ public interface LogBucketOrBuilder
    * 
* * bool analytics_enabled = 14; - * * @return The analyticsEnabled. */ boolean getAnalyticsEnabled(); /** - * - * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -266,13 +197,11 @@ public interface LogBucketOrBuilder
    * 
* * 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.
    *
@@ -284,13 +213,10 @@ public interface LogBucketOrBuilder
    * 
* * repeated string restricted_fields = 15; - * * @return The count of restrictedFields. */ int getRestrictedFieldsCount(); /** - * - * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -302,14 +228,11 @@ public interface LogBucketOrBuilder
    * 
* * 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.
    *
@@ -321,25 +244,22 @@ public interface LogBucketOrBuilder
    * 
* * 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.
    * 
@@ -348,8 +268,6 @@ public interface LogBucketOrBuilder */ com.google.logging.v2.IndexConfig getIndexConfigs(int index); /** - * - * *
    * A list of indexed fields and related configuration data.
    * 
@@ -358,30 +276,25 @@ public interface LogBucketOrBuilder */ 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
@@ -391,13 +304,10 @@ public interface LogBucketOrBuilder
    * 
* * .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
@@ -407,13 +317,10 @@ public interface LogBucketOrBuilder
    * 
* * .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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java
similarity index 76%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java
index 573a6e1bb..f0ef97381 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/log_entry.proto
 
 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; @@ -47,50 +29,47 @@ 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"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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 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; } @@ -106,35 +85,28 @@ 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:
    *
@@ -162,7 +134,6 @@ public PayloadCase getPayloadCase() {
    * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; - * * @return The logName. */ @java.lang.Override @@ -171,15 +142,14 @@ 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:
    *
@@ -207,15 +177,16 @@ 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 { @@ -226,8 +197,6 @@ public com.google.protobuf.ByteString getLogNameBytes() { public static final int RESOURCE_FIELD_NUMBER = 8; private com.google.api.MonitoredResource resource_; /** - * - * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -236,9 +205,7 @@ public com.google.protobuf.ByteString getLogNameBytes() {
    * 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 @@ -246,8 +213,6 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -256,9 +221,7 @@ 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 @@ -266,8 +229,6 @@ public com.google.api.MonitoredResource getResource() { return resource_ == null ? com.google.api.MonitoredResource.getDefaultInstance() : resource_; } /** - * - * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -276,8 +237,7 @@ 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() { @@ -286,8 +246,6 @@ 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.
@@ -300,7 +258,6 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
    * 
* * .google.protobuf.Any proto_payload = 2; - * * @return Whether the protoPayload field is set. */ @java.lang.Override @@ -308,8 +265,6 @@ 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.
@@ -322,19 +277,16 @@ 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.
@@ -351,35 +303,29 @@ 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() { @@ -390,7 +336,8 @@ 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; @@ -399,24 +346,23 @@ 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; } @@ -428,15 +374,12 @@ public com.google.protobuf.ByteString getTextPayloadBytes() { 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 @@ -444,27 +387,22 @@ 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.
@@ -475,7 +413,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();
   }
@@ -483,8 +421,6 @@ 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
@@ -500,9 +436,7 @@ 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 @@ -510,8 +444,6 @@ public boolean hasTimestamp() { return timestamp_ != null; } /** - * - * *
    * 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
@@ -527,9 +459,7 @@ 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 @@ -537,8 +467,6 @@ 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
@@ -554,8 +482,7 @@ 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() { @@ -565,16 +492,11 @@ 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 @@ -582,88 +504,61 @@ public boolean hasReceiveTimestamp() { return receiveTimestamp_ != null; } /** - * - * *
    * 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
@@ -679,7 +574,6 @@ public com.google.logging.type.LogSeverity getSeverity() {
    * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The insertId. */ @java.lang.Override @@ -688,15 +582,14 @@ 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
@@ -712,15 +605,16 @@ 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 { @@ -731,17 +625,12 @@ public com.google.protobuf.ByteString getInsertIdBytes() { 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 @@ -749,73 +638,58 @@ public boolean hasHttpRequest() { return httpRequest_ != null; } /** - * - * *
    * 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 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< + 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, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. A map of key, value pairs that provides additional information
    * about the log entry. The labels can be user-defined or system-defined.
@@ -836,21 +710,20 @@ 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.
@@ -875,8 +748,6 @@ 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.
@@ -897,19 +768,17 @@ 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.
@@ -930,11 +799,11 @@ public java.util.Map getLabelsMap() {
    * 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();
     }
@@ -944,17 +813,12 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   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 @@ -962,51 +826,35 @@ public boolean hasOperation() { return operation_ != null; } /** - * - * *
    * 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
@@ -1020,7 +868,6 @@ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder()
    * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The trace. */ @java.lang.Override @@ -1029,15 +876,14 @@ 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
@@ -1051,15 +897,16 @@ 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 { @@ -1068,12 +915,9 @@ public com.google.protobuf.ByteString getTraceBytes() { } 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.
@@ -1108,7 +952,6 @@ public com.google.protobuf.ByteString getTraceBytes() {
    * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spanId. */ @java.lang.Override @@ -1117,15 +960,14 @@ 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.
@@ -1160,15 +1002,16 @@ 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 { @@ -1179,8 +1022,6 @@ public com.google.protobuf.ByteString getSpanIdBytes() { 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.
    *
@@ -1192,7 +1033,6 @@ public com.google.protobuf.ByteString getSpanIdBytes() {
    * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The traceSampled. */ @java.lang.Override @@ -1203,17 +1043,12 @@ 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 @@ -1221,56 +1056,40 @@ public boolean hasSourceLocation() { return sourceLocation_ != null; } /** - * - * *
    * 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 @@ -1278,15 +1097,12 @@ public boolean hasSplit() { return split_ != null; } /** - * - * *
    * 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 @@ -1294,8 +1110,6 @@ 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.
@@ -1309,7 +1123,6 @@ public com.google.logging.v2.LogSplitOrBuilder getSplitOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1321,7 +1134,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (payloadCase_ == 2) {
       output.writeMessage(2, (com.google.protobuf.Any) payload_);
     }
@@ -1346,8 +1160,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     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_);
     }
@@ -1382,9 +1200,8 @@ 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_);
@@ -1393,55 +1210,63 @@ 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 (httpRequest_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getHttpRequest());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getHttpRequest());
     }
     if (resource_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getResource());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(8, getResource());
     }
     if (timestamp_ != null) {
-      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 (operation_ != null) {
-      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 (sourceLocation_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSourceLocation());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(23, getSourceLocation());
     }
     if (receiveTimestamp_ != null) {
-      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 (split_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, getSplit());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(35, getSplit());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1451,58 +1276,74 @@ public int 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:
@@ -1553,7 +1394,8 @@ 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();
@@ -1583,154 +1425,154 @@ 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"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { 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); } // Construct using com.google.logging.v2.LogEntry.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1789,9 +1631,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 @@ -1811,9 +1653,7 @@ 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; @@ -1825,14 +1665,19 @@ private void buildPartial0(com.google.logging.v2.LogEntry result) { result.logName_ = logName_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null + ? resource_ + : resourceBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.timestamp_ = timestampBuilder_ == null ? timestamp_ : timestampBuilder_.build(); + result.timestamp_ = timestampBuilder_ == null + ? timestamp_ + : timestampBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.receiveTimestamp_ = - receiveTimestampBuilder_ == null ? receiveTimestamp_ : receiveTimestampBuilder_.build(); + result.receiveTimestamp_ = receiveTimestampBuilder_ == null + ? receiveTimestamp_ + : receiveTimestampBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.severity_ = severity_; @@ -1841,15 +1686,18 @@ 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(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000800) != 0)) { - result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); + result.operation_ = operationBuilder_ == null + ? operation_ + : operationBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.trace_ = trace_; @@ -1861,21 +1709,26 @@ 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(); } if (((from_bitField0_ & 0x00010000) != 0)) { - result.split_ = splitBuilder_ == null ? split_ : splitBuilder_.build(); + result.split_ = splitBuilder_ == null + ? split_ + : splitBuilder_.build(); } } 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(); } } @@ -1884,39 +1737,38 @@ 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; @@ -1950,7 +1802,8 @@ 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()); @@ -1975,27 +1828,23 @@ 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(); @@ -2023,123 +1872,120 @@ 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) { @@ -2149,12 +1995,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() { @@ -2168,8 +2014,6 @@ public Builder clearPayload() { private java.lang.Object logName_ = ""; /** - * - * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2197,13 +2041,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; @@ -2212,8 +2056,6 @@ public java.lang.String getLogName() { } } /** - * - * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2241,14 +2083,15 @@ 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 { @@ -2256,8 +2099,6 @@ public com.google.protobuf.ByteString getLogNameBytes() { } } /** - * - * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2285,22 +2126,18 @@ public com.google.protobuf.ByteString getLogNameBytes() {
      * 
* * 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:
      *
@@ -2328,7 +2165,6 @@ public Builder setLogName(java.lang.String value) {
      * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLogName() { @@ -2338,8 +2174,6 @@ public Builder clearLogName() { return this; } /** - * - * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2367,14 +2201,12 @@ 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; @@ -2384,13 +2216,8 @@ public Builder setLogNameBytes(com.google.protobuf.ByteString value) { 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.
      *
@@ -2399,17 +2226,13 @@ public Builder setLogNameBytes(com.google.protobuf.ByteString value) {
      * 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.
      *
@@ -2418,23 +2241,17 @@ 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.
      *
@@ -2443,8 +2260,7 @@ 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) { @@ -2460,8 +2276,6 @@ public Builder setResource(com.google.api.MonitoredResource value) { return this; } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2470,10 +2284,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 { @@ -2484,8 +2298,6 @@ public Builder setResource(com.google.api.MonitoredResource.Builder builderForVa return this; } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2494,14 +2306,13 @@ public Builder setResource(com.google.api.MonitoredResource.Builder builderForVa
      * 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; @@ -2514,8 +2325,6 @@ public Builder mergeResource(com.google.api.MonitoredResource value) { return this; } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2524,8 +2333,7 @@ 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); @@ -2538,8 +2346,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2548,8 +2354,7 @@ 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; @@ -2557,8 +2362,6 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() { return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2567,21 +2370,17 @@ 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.
      *
@@ -2590,34 +2389,25 @@ 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.
@@ -2630,7 +2420,6 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
      * 
* * .google.protobuf.Any proto_payload = 2; - * * @return Whether the protoPayload field is set. */ @java.lang.Override @@ -2638,8 +2427,6 @@ 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.
@@ -2652,7 +2439,6 @@ public boolean hasProtoPayload() {
      * 
* * .google.protobuf.Any proto_payload = 2; - * * @return The protoPayload. */ @java.lang.Override @@ -2670,8 +2456,6 @@ 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.
@@ -2699,8 +2483,6 @@ 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.
@@ -2714,7 +2496,8 @@ 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();
@@ -2725,8 +2508,6 @@ public Builder setProtoPayload(com.google.protobuf.Any.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a protocol buffer. Some Google
      * Cloud Platform services use this field for their log entry payloads.
@@ -2742,11 +2523,10 @@ public Builder setProtoPayload(com.google.protobuf.Any.Builder builderForValue)
      */
     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;
         }
@@ -2762,8 +2542,6 @@ 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.
@@ -2794,8 +2572,6 @@ 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.
@@ -2813,8 +2589,6 @@ 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.
@@ -2840,8 +2614,6 @@ 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.
@@ -2856,20 +2628,17 @@ 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;
@@ -2878,14 +2647,11 @@ 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 @@ -2893,14 +2659,11 @@ 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 @@ -2910,7 +2673,8 @@ 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; @@ -2921,25 +2685,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. */ @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; } @@ -2949,35 +2712,28 @@ public com.google.protobuf.ByteString getTextPayloadBytes() { } } /** - * - * *
      * 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() { @@ -2989,21 +2745,17 @@ 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; @@ -3012,20 +2764,14 @@ public Builder setTextPayloadBytes(com.google.protobuf.ByteString value) { } 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 @@ -3033,15 +2779,12 @@ 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 @@ -3059,8 +2802,6 @@ public com.google.protobuf.Struct getJsonPayload() { } } /** - * - * *
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -3082,8 +2823,6 @@ 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.
@@ -3091,7 +2830,8 @@ 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();
@@ -3102,8 +2842,6 @@ public Builder setJsonPayload(com.google.protobuf.Struct.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -3113,11 +2851,10 @@ public Builder setJsonPayload(com.google.protobuf.Struct.Builder builderForValue
      */
     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;
         }
@@ -3133,8 +2870,6 @@ 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.
@@ -3159,8 +2894,6 @@ public Builder clearJsonPayload() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -3172,8 +2905,6 @@ 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.
@@ -3193,8 +2924,6 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -3203,20 +2932,17 @@ 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;
@@ -3226,13 +2952,8 @@ 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
@@ -3248,17 +2969,13 @@ 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
@@ -3274,9 +2991,7 @@ 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() { @@ -3287,8 +3002,6 @@ 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
@@ -3304,8 +3017,7 @@ 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) { @@ -3321,8 +3033,6 @@ 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
@@ -3338,10 +3048,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 { @@ -3352,8 +3062,6 @@ public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValu 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
@@ -3369,14 +3077,13 @@ public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValu
      * 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; @@ -3389,8 +3096,6 @@ 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
@@ -3406,8 +3111,7 @@ 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); @@ -3420,8 +3124,6 @@ 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
@@ -3437,8 +3139,7 @@ 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; @@ -3446,8 +3147,6 @@ 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
@@ -3463,19 +3162,17 @@ 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
@@ -3491,21 +3188,17 @@ 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_; @@ -3513,58 +3206,39 @@ 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) { @@ -3580,17 +3254,14 @@ 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 { @@ -3601,21 +3272,17 @@ public Builder setReceiveTimestamp(com.google.protobuf.Timestamp.Builder builder 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; @@ -3628,15 +3295,11 @@ 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); @@ -3649,15 +3312,11 @@ 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; @@ -3665,48 +3324,36 @@ 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_; @@ -3714,35 +3361,24 @@ 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. */ @@ -3753,37 +3389,26 @@ 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. */ @@ -3797,17 +3422,12 @@ 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() { @@ -3819,8 +3439,6 @@ 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
@@ -3836,13 +3454,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; @@ -3851,8 +3469,6 @@ 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
@@ -3868,14 +3484,15 @@ 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 { @@ -3883,8 +3500,6 @@ public com.google.protobuf.ByteString getInsertIdBytes() { } } /** - * - * *
      * 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
@@ -3900,22 +3515,18 @@ public com.google.protobuf.ByteString getInsertIdBytes() {
      * 
* * 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
@@ -3931,7 +3542,6 @@ public Builder setInsertId(java.lang.String value) {
      * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearInsertId() { @@ -3941,8 +3551,6 @@ 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
@@ -3958,14 +3566,12 @@ 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; @@ -3975,61 +3581,42 @@ public Builder setInsertIdBytes(com.google.protobuf.ByteString value) { 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) { @@ -4045,18 +3632,15 @@ 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 { @@ -4067,22 +3651,18 @@ public Builder setHttpRequest(com.google.logging.type.HttpRequest.Builder builde 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; @@ -4095,16 +3675,12 @@ 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); @@ -4117,16 +3693,12 @@ 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; @@ -4134,68 +3706,58 @@ 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 labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -4204,13 +3766,10 @@ private com.google.protobuf.MapField interna 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.
@@ -4231,21 +3790,20 @@ 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.
@@ -4270,8 +3828,6 @@ 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.
@@ -4292,19 +3848,17 @@ 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.
@@ -4325,25 +3879,23 @@ public java.util.Map getLabelsMap() {
      * 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.
@@ -4363,22 +3915,23 @@ 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.
@@ -4398,20 +3951,17 @@ public java.util.Map getMutableLabels() {
      *
      * 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.
@@ -4431,69 +3981,52 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * 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) { @@ -4509,18 +4042,15 @@ 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 { @@ -4531,22 +4061,18 @@ public Builder setOperation(com.google.logging.v2.LogEntryOperation.Builder buil 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; @@ -4559,16 +4085,12 @@ 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); @@ -4581,16 +4103,12 @@ 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; @@ -4598,50 +4116,38 @@ 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_; @@ -4649,8 +4155,6 @@ 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
@@ -4664,13 +4168,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; @@ -4679,8 +4183,6 @@ public java.lang.String getTrace() { } } /** - * - * *
      * Optional. The REST resource name of the trace being written to
      * [Cloud Trace](https://cloud.google.com/trace) in
@@ -4694,14 +4196,15 @@ 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 { @@ -4709,8 +4212,6 @@ public com.google.protobuf.ByteString getTraceBytes() { } } /** - * - * *
      * Optional. The REST resource name of the trace being written to
      * [Cloud Trace](https://cloud.google.com/trace) in
@@ -4724,22 +4225,18 @@ public com.google.protobuf.ByteString getTraceBytes() {
      * 
* * 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
@@ -4753,7 +4250,6 @@ public Builder setTrace(java.lang.String value) {
      * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTrace() { @@ -4763,8 +4259,6 @@ public Builder clearTrace() { return this; } /** - * - * *
      * Optional. The REST resource name of the trace being written to
      * [Cloud Trace](https://cloud.google.com/trace) in
@@ -4778,14 +4272,12 @@ 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; @@ -4795,8 +4287,6 @@ public Builder setTraceBytes(com.google.protobuf.ByteString value) { 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.
@@ -4831,13 +4321,13 @@ public Builder setTraceBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -4846,8 +4336,6 @@ 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.
@@ -4882,14 +4370,15 @@ 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 { @@ -4897,8 +4386,6 @@ public com.google.protobuf.ByteString getSpanIdBytes() { } } /** - * - * *
      * 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.
@@ -4933,22 +4420,18 @@ public com.google.protobuf.ByteString getSpanIdBytes() {
      * 
* * 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.
@@ -4983,7 +4466,6 @@ public Builder setSpanId(java.lang.String value) {
      * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSpanId() { @@ -4993,8 +4475,6 @@ 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.
@@ -5029,14 +4509,12 @@ 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; @@ -5044,10 +4522,8 @@ public Builder setSpanIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean traceSampled_; + private boolean traceSampled_ ; /** - * - * *
      * Optional. The sampling decision of the trace associated with the log entry.
      *
@@ -5059,7 +4535,6 @@ public Builder setSpanIdBytes(com.google.protobuf.ByteString value) {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The traceSampled. */ @java.lang.Override @@ -5067,8 +4542,6 @@ public boolean getTraceSampled() { return traceSampled_; } /** - * - * *
      * Optional. The sampling decision of the trace associated with the log entry.
      *
@@ -5080,7 +4553,6 @@ public boolean getTraceSampled() {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The traceSampled to set. * @return This builder for chaining. */ @@ -5092,8 +4564,6 @@ public Builder setTraceSampled(boolean value) { return this; } /** - * - * *
      * Optional. The sampling decision of the trace associated with the log entry.
      *
@@ -5105,7 +4575,6 @@ public Builder setTraceSampled(boolean value) {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTraceSampled() { @@ -5117,61 +4586,42 @@ 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) { @@ -5187,16 +4637,12 @@ 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) { @@ -5210,23 +4656,18 @@ 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; @@ -5239,16 +4680,12 @@ 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); @@ -5261,16 +4698,12 @@ 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; @@ -5278,50 +4711,38 @@ 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_; @@ -5329,37 +4750,26 @@ 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() { @@ -5370,15 +4780,12 @@ 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) { @@ -5394,17 +4801,15 @@ 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 { @@ -5415,21 +4820,18 @@ public Builder setSplit(com.google.logging.v2.LogSplit.Builder builderForValue) 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; @@ -5442,15 +4844,12 @@ 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); @@ -5463,15 +4862,12 @@ 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; @@ -5479,53 +4875,45 @@ 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); } @@ -5535,12 +4923,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(); } @@ -5549,27 +4937,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; @@ -5584,4 +4972,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java index 64b7fce90..e88828846 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperation.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/log_entry.proto package com.google.logging.v2; /** - * - * *
  * Additional information about a potentially long-running operation with which
  * a log entry is associated.
@@ -28,16 +11,15 @@
  *
  * 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_ = "";
@@ -45,39 +27,34 @@ 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 @@ -86,30 +63,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 { @@ -118,12 +95,9 @@ public com.google.protobuf.ByteString getIdBytes() { } 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`:
@@ -131,7 +105,6 @@ public com.google.protobuf.ByteString getIdBytes() {
    * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The producer. */ @java.lang.Override @@ -140,15 +113,14 @@ 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`:
@@ -156,15 +128,16 @@ 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 { @@ -175,14 +148,11 @@ public com.google.protobuf.ByteString getProducerBytes() { 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 @@ -193,14 +163,11 @@ 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 @@ -209,7 +176,6 @@ public boolean getLast() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,7 +187,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -250,10 +217,12 @@ 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; @@ -263,17 +232,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.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; } @@ -290,112 +263,109 @@ 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.
@@ -403,32 +373,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -441,9 +412,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
@@ -462,11 +433,8 @@ 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;
     }
@@ -491,39 +459,38 @@ 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;
@@ -574,37 +541,32 @@ 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) {
@@ -614,26 +576,23 @@ 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; @@ -642,22 +601,21 @@ 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 { @@ -665,37 +623,30 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * 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() { @@ -705,22 +656,18 @@ 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; @@ -730,8 +677,6 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object producer_ = ""; /** - * - * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -739,13 +684,13 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -754,8 +699,6 @@ public java.lang.String getProducer() { } } /** - * - * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -763,14 +706,15 @@ 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 { @@ -778,8 +722,6 @@ public com.google.protobuf.ByteString getProducerBytes() { } } /** - * - * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -787,22 +729,18 @@ public com.google.protobuf.ByteString getProducerBytes() {
      * 
* * 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`:
@@ -810,7 +748,6 @@ public Builder setProducer(java.lang.String value) {
      * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearProducer() { @@ -820,8 +757,6 @@ public Builder clearProducer() { return this; } /** - * - * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -829,14 +764,12 @@ 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; @@ -844,16 +777,13 @@ public Builder setProducerBytes(com.google.protobuf.ByteString value) { 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 @@ -861,14 +791,11 @@ 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. */ @@ -880,14 +807,11 @@ 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() { @@ -897,16 +821,13 @@ 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 @@ -914,14 +835,11 @@ 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. */ @@ -933,14 +851,11 @@ 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() { @@ -949,9 +864,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); } @@ -961,12 +876,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(); } @@ -975,27 +890,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; @@ -1010,4 +925,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogEntryOperation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java index 7fe146bd6..a8e197b8f 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOperationOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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 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`:
@@ -60,13 +37,10 @@ public interface LogEntryOperationOrBuilder
    * 
* * 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`:
@@ -74,33 +48,27 @@ public interface LogEntryOperationOrBuilder
    * 
* * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java similarity index 87% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java index 1dc22338e..4943b3e53 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/log_entry.proto 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:
    *
@@ -53,13 +35,10 @@ public interface LogEntryOrBuilder
    * 
* * 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:
    *
@@ -87,14 +66,12 @@ public interface LogEntryOrBuilder
    * 
* * 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.
    *
@@ -103,15 +80,11 @@ public interface LogEntryOrBuilder
    * 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.
    *
@@ -120,15 +93,11 @@ public interface LogEntryOrBuilder
    * 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.
    *
@@ -137,14 +106,11 @@ public interface LogEntryOrBuilder
    * 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.
@@ -157,13 +123,10 @@ public interface LogEntryOrBuilder
    * 
* * .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.
@@ -176,13 +139,10 @@ public interface LogEntryOrBuilder
    * 
* * .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.
@@ -199,71 +159,55 @@ public interface LogEntryOrBuilder
   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.
@@ -274,8 +218,6 @@ public interface LogEntryOrBuilder
   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
@@ -291,15 +233,11 @@ public interface LogEntryOrBuilder
    * 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
@@ -315,15 +253,11 @@ public interface LogEntryOrBuilder
    * 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
@@ -339,84 +273,59 @@ public interface LogEntryOrBuilder
    * 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
@@ -432,13 +341,10 @@ public interface LogEntryOrBuilder
    * 
* * 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
@@ -454,58 +360,42 @@ public interface LogEntryOrBuilder
    * 
* * 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.
@@ -527,8 +417,6 @@ public interface LogEntryOrBuilder
    */
   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.
@@ -548,13 +436,15 @@ public interface LogEntryOrBuilder
    *
    * 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.
@@ -574,10 +464,9 @@ public interface LogEntryOrBuilder
    *
    * 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.
@@ -598,13 +487,11 @@ public interface LogEntryOrBuilder
    * 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.
@@ -624,55 +511,40 @@ 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
@@ -686,13 +558,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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
@@ -706,14 +575,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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.
@@ -748,13 +615,10 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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.
@@ -789,14 +653,12 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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.
    *
@@ -808,84 +670,61 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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/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
new file mode 100644
index 000000000..714a3bd32
--- /dev/null
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java
@@ -0,0 +1,157 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/logging/v2/log_entry.proto
+
+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\"\221\010\n\010LogEntry\022\026\n\010log_name\030\014 \001(\tB\004\342A\001\002\0225" +
+      "\n\010resource\030\010 \001(\0132\035.google.api.MonitoredR" +
+      "esourceB\004\342A\001\002\022-\n\rproto_payload\030\002 \001(\0132\024.g" +
+      "oogle.protobuf.AnyH\000\022\026\n\014text_payload\030\003 \001" +
+      "(\tH\000\022/\n\014json_payload\030\006 \001(\0132\027.google.prot" +
+      "obuf.StructH\000\0223\n\ttimestamp\030\t \001(\0132\032.googl" +
+      "e.protobuf.TimestampB\004\342A\001\001\022;\n\021receive_ti" +
+      "mestamp\030\030 \001(\0132\032.google.protobuf.Timestam" +
+      "pB\004\342A\001\003\0228\n\010severity\030\n \001(\0162 .google.loggi" +
+      "ng.type.LogSeverityB\004\342A\001\001\022\027\n\tinsert_id\030\004" +
+      " \001(\tB\004\342A\001\001\022<\n\014http_request\030\007 \001(\0132 .googl" +
+      "e.logging.type.HttpRequestB\004\342A\001\001\022=\n\006labe" +
+      "ls\030\013 \003(\0132\'.google.logging.v2.LogEntry.La" +
+      "belsEntryB\004\342A\001\001\022=\n\toperation\030\017 \001(\0132$.goo" +
+      "gle.logging.v2.LogEntryOperationB\004\342A\001\001\022\023" +
+      "\n\005trace\030\026 \001(\tB\004\342A\001\001\022\025\n\007span_id\030\033 \001(\tB\004\342A" +
+      "\001\001\022\033\n\rtrace_sampled\030\036 \001(\010B\004\342A\001\001\022H\n\017sourc" +
+      "e_location\030\027 \001(\0132).google.logging.v2.Log" +
+      "EntrySourceLocationB\004\342A\001\001\0220\n\005split\030# \001(\013" +
+      "2\033.google.logging.v2.LogSplitB\004\342A\001\001\032-\n\013L" +
+      "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" +
+      "8\001:\275\001\352A\271\001\n\032logging.googleapis.com/Log\022\035p" +
+      "rojects/{project}/logs/{log}\022\'organizati" +
+      "ons/{organization}/logs/{log}\022\033folders/{" +
+      "folder}/logs/{log}\022,billingAccounts/{bil" +
+      "ling_account}/logs/{log}\032\010log_nameB\t\n\007pa" +
+      "yload\"f\n\021LogEntryOperation\022\020\n\002id\030\001 \001(\tB\004" +
+      "\342A\001\001\022\026\n\010producer\030\002 \001(\tB\004\342A\001\001\022\023\n\005first\030\003 " +
+      "\001(\010B\004\342A\001\001\022\022\n\004last\030\004 \001(\010B\004\342A\001\001\"X\n\026LogEntr" +
+      "ySourceLocation\022\022\n\004file\030\001 \001(\tB\004\342A\001\001\022\022\n\004l" +
+      "ine\030\002 \001(\003B\004\342A\001\001\022\026\n\010function\030\003 \001(\tB\004\342A\001\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(\005B\263\001\n\025com.google.log" +
+      "ging.v2B\rLogEntryProtoP\001Z5cloud.google.c" +
+      "om/go/logging/apiv2/loggingpb;loggingpb\370" +
+      "\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Cl" +
+      "oud\\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.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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java
similarity index 72%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java
index 8a5e0cc5a..d1fab9dbf 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocation.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/log_entry.proto
 
 package com.google.logging.v2;
 
 /**
- *
- *
  * 
  * Additional information about the source code location that produced the log
  * entry.
@@ -28,16 +11,15 @@
  *
  * 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_ = "";
@@ -45,39 +27,34 @@ 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 @@ -86,30 +63,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 { @@ -120,15 +97,12 @@ public com.google.protobuf.ByteString getFileBytes() { 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 @@ -137,12 +111,9 @@ 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
@@ -153,7 +124,6 @@ public long getLine() {
    * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The function. */ @java.lang.Override @@ -162,15 +132,14 @@ 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
@@ -181,15 +150,16 @@ 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 { @@ -198,7 +168,6 @@ public com.google.protobuf.ByteString getFunctionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,7 +179,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(file_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, file_); } @@ -233,7 +203,8 @@ 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_); @@ -246,17 +217,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.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; } @@ -271,7 +244,8 @@ 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(); @@ -279,104 +253,99 @@ 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.
@@ -384,32 +353,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -421,9 +391,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
@@ -442,11 +412,8 @@ 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;
     }
@@ -468,39 +435,38 @@ 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;
@@ -548,31 +514,27 @@ 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) {
@@ -582,26 +544,23 @@ 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; @@ -610,22 +569,21 @@ 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 { @@ -633,37 +591,30 @@ public com.google.protobuf.ByteString getFileBytes() { } } /** - * - * *
      * 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() { @@ -673,22 +624,18 @@ 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; @@ -696,17 +643,14 @@ public Builder setFileBytes(com.google.protobuf.ByteString value) { 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 @@ -714,15 +658,12 @@ 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. */ @@ -734,15 +675,12 @@ 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() { @@ -754,8 +692,6 @@ 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
@@ -766,13 +702,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; @@ -781,8 +717,6 @@ 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
@@ -793,14 +727,15 @@ 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 { @@ -808,8 +743,6 @@ public com.google.protobuf.ByteString getFunctionBytes() { } } /** - * - * *
      * 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
@@ -820,22 +753,18 @@ public com.google.protobuf.ByteString getFunctionBytes() {
      * 
* * 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
@@ -846,7 +775,6 @@ public Builder setFunction(java.lang.String value) {
      * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFunction() { @@ -856,8 +784,6 @@ 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
@@ -868,23 +794,21 @@ 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); } @@ -894,12 +818,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(); } @@ -908,27 +832,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; @@ -943,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogEntrySourceLocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java similarity index 73% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java index fe0ae25bb..958d663a8 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntrySourceLocationOrBuilder.java @@ -1,72 +1,46 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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 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
@@ -77,13 +51,10 @@ public interface LogEntrySourceLocationOrBuilder
    * 
* * 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
@@ -94,8 +65,8 @@ public interface LogEntrySourceLocationOrBuilder
    * 
* * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java index b5b74d5b7..a45811355 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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
@@ -31,16 +14,15 @@
  *
  * 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_ = "";
@@ -49,32 +31,28 @@ 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);
   }
 
   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
@@ -83,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -92,15 +69,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. A client-assigned identifier, such as
    * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -109,15 +85,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -126,18 +103,14 @@ public com.google.protobuf.ByteString getNameBytes() { } 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 @@ -146,29 +119,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 { @@ -177,12 +150,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } 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
@@ -197,7 +167,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -206,15 +175,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -229,15 +197,16 @@ 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 { @@ -248,8 +217,6 @@ public com.google.protobuf.ByteString getFilterBytes() { 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
@@ -258,7 +225,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disabled. */ @java.lang.Override @@ -269,17 +235,13 @@ 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 @@ -287,17 +249,13 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * 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 @@ -305,16 +263,13 @@ 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() { @@ -324,17 +279,13 @@ 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 @@ -342,17 +293,13 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * 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 @@ -360,16 +307,13 @@ 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() { @@ -377,7 +321,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -389,7 +332,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -427,13 +371,16 @@ 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 (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -443,24 +390,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.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; @@ -480,7 +433,8 @@ 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(); @@ -494,103 +448,99 @@ 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
@@ -601,32 +551,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -649,9 +600,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
@@ -671,9 +622,7 @@ 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;
     }
@@ -693,10 +642,14 @@ private void buildPartial0(com.google.logging.v2.LogExclusion result) {
         result.disabled_ = disabled_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
     }
 
@@ -704,39 +657,38 @@ 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;
@@ -795,49 +747,46 @@ 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) {
@@ -847,13 +796,10 @@ 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
@@ -862,13 +808,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; @@ -877,8 +823,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -887,14 +831,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -902,8 +847,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -912,22 +855,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -936,7 +875,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -946,8 +884,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -956,14 +892,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -973,20 +907,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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; @@ -995,21 +927,20 @@ 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 { @@ -1017,35 +948,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * 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() { @@ -1055,21 +979,17 @@ 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; @@ -1079,8 +999,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1095,13 +1013,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -1110,8 +1028,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1126,14 +1042,15 @@ 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 { @@ -1141,8 +1058,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1157,22 +1072,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * 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
@@ -1187,7 +1098,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1197,8 +1107,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1213,14 +1121,12 @@ 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; @@ -1228,10 +1134,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { 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
@@ -1240,7 +1144,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disabled. */ @java.lang.Override @@ -1248,8 +1151,6 @@ 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
@@ -1258,7 +1159,6 @@ public boolean getDisabled() {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The disabled to set. * @return This builder for chaining. */ @@ -1270,8 +1170,6 @@ 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
@@ -1280,7 +1178,6 @@ public Builder setDisabled(boolean value) {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisabled() { @@ -1292,64 +1189,45 @@ 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) { @@ -1365,19 +1243,16 @@ 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 { @@ -1388,23 +1263,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -1417,17 +1288,13 @@ 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); @@ -1440,17 +1307,13 @@ 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; @@ -1458,52 +1321,40 @@ 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_; @@ -1511,64 +1362,45 @@ 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) { @@ -1584,19 +1416,16 @@ 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 { @@ -1607,23 +1436,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -1636,17 +1461,13 @@ 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); @@ -1659,17 +1480,13 @@ 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; @@ -1677,59 +1494,47 @@ 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); } @@ -1739,12 +1544,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(); } @@ -1753,27 +1558,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; @@ -1788,4 +1593,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogExclusion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java similarity index 80% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java index f1c3921b6..df1ff7140 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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
@@ -34,13 +16,10 @@ public interface LogExclusionOrBuilder
    * 
* * 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
@@ -49,39 +28,32 @@ public interface LogExclusionOrBuilder
    * 
* * 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
@@ -96,13 +68,10 @@ public interface LogExclusionOrBuilder
    * 
* * 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
@@ -117,14 +86,12 @@ public interface LogExclusionOrBuilder
    * 
* * 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
@@ -133,96 +100,73 @@ public interface LogExclusionOrBuilder
    * 
* * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java similarity index 75% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java index 865d3f309..8933fc818 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto 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.
@@ -33,16 +16,15 @@
  *
  * 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_ = "";
@@ -54,48 +36,46 @@ 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"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       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.
      * 
@@ -104,8 +84,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ V2(0), /** - * - * *
      * Logging API v1.
      * 
@@ -117,8 +95,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Logging API v2.
      * 
@@ -127,8 +103,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ public static final int V2_VALUE = 0; /** - * - * *
      * Logging API v1.
      * 
@@ -137,6 +111,7 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ public static final int V1_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -161,47 +136,48 @@ 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); + } + }; - 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() { + 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; @@ -219,12 +195,9 @@ private ApiVersion(int value) { } 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"`.
@@ -242,7 +215,6 @@ private ApiVersion(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -251,15 +223,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
@@ -277,15 +248,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -294,19 +266,15 @@ public com.google.protobuf.ByteString getNameBytes() { } 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 @@ -315,30 +283,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 { @@ -347,12 +315,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } 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
@@ -364,7 +329,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -373,15 +337,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -393,15 +356,16 @@ 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 { @@ -410,12 +374,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } 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
@@ -429,7 +390,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bucketName. */ @java.lang.Override @@ -438,15 +398,14 @@ 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
@@ -460,15 +419,16 @@ 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 { @@ -479,15 +439,12 @@ public com.google.protobuf.ByteString getBucketNameBytes() { 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 @@ -498,8 +455,6 @@ 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
@@ -524,10 +479,7 @@ 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 @@ -535,8 +487,6 @@ public boolean hasMetricDescriptor() { return metricDescriptor_ != null; } /** - * - * *
    * Optional. The metric descriptor associated with the logs-based metric.
    * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -561,21 +511,14 @@ 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
@@ -600,24 +543,17 @@ 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.
@@ -642,7 +578,6 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() {
    * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The valueExtractor. */ @java.lang.Override @@ -651,15 +586,14 @@ 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.
@@ -684,15 +618,16 @@ 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 { @@ -701,36 +636,32 @@ public com.google.protobuf.ByteString getValueExtractorBytes() { } public static final int LABEL_EXTRACTORS_FIELD_NUMBER = 7; - private static final class LabelExtractorsDefaultEntryHolder { - 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, - ""); + 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, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labelExtractors_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> 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.
@@ -748,25 +679,23 @@ 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.
@@ -784,16 +713,13 @@ 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.
@@ -811,23 +737,20 @@ 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.
@@ -845,15 +768,14 @@ 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 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(); } @@ -863,18 +785,13 @@ public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) { 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 @@ -882,60 +799,43 @@ public boolean hasBucketOptions() { return bucketOptions_ != null; } /** - * - * *
    * 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 @@ -943,17 +843,13 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * 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 @@ -961,16 +857,13 @@ 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() { @@ -980,17 +873,13 @@ 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 @@ -998,17 +887,13 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * 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 @@ -1016,16 +901,13 @@ 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() { @@ -1035,48 +917,36 @@ 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; @@ -1088,7 +958,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1107,8 +978,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 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 (bucketOptions_ != null) { output.writeMessage(8, getBucketOptions()); } @@ -1143,35 +1018,41 @@ 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 (metricDescriptor_ != null) { - 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 (bucketOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getBucketOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getBucketOptions()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getCreateTime()); } if (updateTime_ != null) { - 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_); @@ -1184,35 +1065,46 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; @@ -1235,7 +1127,8 @@ 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(); @@ -1265,103 +1158,99 @@ 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.
@@ -1374,51 +1263,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         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.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         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);
     }
 
     // Construct using com.google.logging.v2.LogMetric.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1455,9 +1348,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
@@ -1477,9 +1370,7 @@ 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;
     }
@@ -1502,8 +1393,9 @@ private void buildPartial0(com.google.logging.v2.LogMetric result) {
         result.disabled_ = disabled_;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.metricDescriptor_ =
-            metricDescriptorBuilder_ == null ? metricDescriptor_ : metricDescriptorBuilder_.build();
+        result.metricDescriptor_ = metricDescriptorBuilder_ == null
+            ? metricDescriptor_
+            : metricDescriptorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.valueExtractor_ = valueExtractor_;
@@ -1513,14 +1405,19 @@ 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();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
         result.version_ = version_;
@@ -1531,39 +1428,38 @@ 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;
@@ -1603,7 +1499,8 @@ 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());
@@ -1643,92 +1540,84 @@ 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) {
@@ -1738,13 +1627,10 @@ 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"`.
@@ -1762,13 +1648,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; @@ -1777,8 +1663,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1796,14 +1680,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1811,8 +1696,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1830,22 +1713,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1863,7 +1742,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1873,8 +1751,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1892,14 +1768,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1909,21 +1783,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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; @@ -1932,22 +1804,21 @@ 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 { @@ -1955,37 +1826,30 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * 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() { @@ -1995,22 +1859,18 @@ 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; @@ -2020,8 +1880,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -2033,13 +1891,13 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -2048,8 +1906,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -2061,14 +1917,15 @@ 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 { @@ -2076,8 +1933,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -2089,22 +1944,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * 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
@@ -2116,7 +1967,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -2126,8 +1976,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -2139,14 +1987,12 @@ 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; @@ -2156,8 +2002,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { 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
@@ -2171,13 +2015,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -2186,8 +2030,6 @@ 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
@@ -2201,14 +2043,15 @@ 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 { @@ -2216,8 +2059,6 @@ public com.google.protobuf.ByteString getBucketNameBytes() { } } /** - * - * *
      * 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
@@ -2231,22 +2072,18 @@ public com.google.protobuf.ByteString getBucketNameBytes() {
      * 
* * 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
@@ -2260,7 +2097,6 @@ public Builder setBucketName(java.lang.String value) {
      * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearBucketName() { @@ -2270,8 +2106,6 @@ 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
@@ -2285,14 +2119,12 @@ 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; @@ -2300,17 +2132,14 @@ public Builder setBucketNameBytes(com.google.protobuf.ByteString value) { 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 @@ -2318,15 +2147,12 @@ 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. */ @@ -2338,15 +2164,12 @@ 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() { @@ -2358,13 +2181,8 @@ 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
@@ -2389,18 +2207,13 @@ 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
@@ -2425,24 +2238,17 @@ 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
@@ -2467,9 +2273,7 @@ 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) { @@ -2485,8 +2289,6 @@ 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
@@ -2511,11 +2313,10 @@ 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 { @@ -2526,8 +2327,6 @@ public Builder setMetricDescriptor(com.google.api.MetricDescriptor.Builder build return this; } /** - * - * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2552,15 +2351,13 @@ public Builder setMetricDescriptor(com.google.api.MetricDescriptor.Builder build
      * 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; @@ -2573,8 +2370,6 @@ 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
@@ -2599,9 +2394,7 @@ 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); @@ -2614,8 +2407,6 @@ 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
@@ -2640,9 +2431,7 @@ 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; @@ -2650,8 +2439,6 @@ 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
@@ -2676,22 +2463,17 @@ 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
@@ -2716,22 +2498,17 @@ 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_; @@ -2739,8 +2516,6 @@ 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.
@@ -2765,13 +2540,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; @@ -2780,8 +2555,6 @@ 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.
@@ -2806,14 +2579,15 @@ 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 { @@ -2821,8 +2595,6 @@ public com.google.protobuf.ByteString getValueExtractorBytes() { } } /** - * - * *
      * Optional. A `value_extractor` is required when using a distribution
      * logs-based metric to extract the values to record from a log entry.
@@ -2847,22 +2619,18 @@ public com.google.protobuf.ByteString getValueExtractorBytes() {
      * 
* * 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.
@@ -2887,7 +2655,6 @@ public Builder setValueExtractor(java.lang.String value) {
      * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValueExtractor() { @@ -2897,8 +2664,6 @@ 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.
@@ -2923,14 +2688,12 @@ 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; @@ -2938,8 +2701,8 @@ public Builder setValueExtractorBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField labelExtractors_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labelExtractors_; private com.google.protobuf.MapField internalGetLabelExtractors() { if (labelExtractors_ == null) { @@ -2948,13 +2711,11 @@ public Builder setValueExtractorBytes(com.google.protobuf.ByteString value) { } 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(); @@ -2963,13 +2724,10 @@ public Builder setValueExtractorBytes(com.google.protobuf.ByteString value) { 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.
@@ -2987,26 +2745,23 @@ 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.
@@ -3024,17 +2779,13 @@ 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.
@@ -3052,24 +2803,20 @@ 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.
@@ -3087,30 +2834,26 @@ 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 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.
@@ -3128,26 +2871,25 @@ 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.
@@ -3165,24 +2907,19 @@ public java.util.Map getMutableLabelExtracto
      * 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.
@@ -3200,76 +2937,57 @@ public Builder putLabelExtractors(java.lang.String key, java.lang.String value)
      * 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) { @@ -3285,17 +3003,13 @@ 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) { @@ -3309,23 +3023,19 @@ 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; @@ -3338,17 +3048,13 @@ 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); @@ -3361,17 +3067,13 @@ 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; @@ -3379,52 +3081,40 @@ 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_; @@ -3432,64 +3122,45 @@ 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) { @@ -3505,19 +3176,16 @@ 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 { @@ -3528,23 +3196,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -3557,17 +3221,13 @@ 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); @@ -3580,17 +3240,13 @@ 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; @@ -3598,52 +3254,40 @@ 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_; @@ -3651,64 +3295,45 @@ 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) { @@ -3724,19 +3349,16 @@ 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 { @@ -3747,23 +3369,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -3776,17 +3394,13 @@ 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); @@ -3799,17 +3413,13 @@ 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; @@ -3817,52 +3427,40 @@ 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_; @@ -3870,84 +3468,66 @@ 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(); } @@ -3957,29 +3537,25 @@ public Builder setVersion(com.google.logging.v2.LogMetric.ApiVersion value) { 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); } @@ -3989,12 +3565,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(); } @@ -4003,27 +3579,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; @@ -4038,4 +3614,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogMetric getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java similarity index 85% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java index 3c8feceb0..730fc3fce 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto 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"`.
@@ -43,13 +25,10 @@ public interface LogMetricOrBuilder
    * 
* * 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"`.
@@ -67,41 +46,34 @@ public interface LogMetricOrBuilder
    * 
* * 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
@@ -113,13 +85,10 @@ public interface LogMetricOrBuilder
    * 
* * 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
@@ -131,14 +100,12 @@ public interface LogMetricOrBuilder
    * 
* * 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
@@ -152,13 +119,10 @@ public interface LogMetricOrBuilder
    * 
* * 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
@@ -172,28 +136,23 @@ public interface LogMetricOrBuilder
    * 
* * 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
@@ -218,16 +177,11 @@ public interface LogMetricOrBuilder
    * 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
@@ -252,16 +206,11 @@ public interface LogMetricOrBuilder
    * 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
@@ -286,15 +235,11 @@ public interface LogMetricOrBuilder
    * 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.
@@ -319,13 +264,10 @@ public interface LogMetricOrBuilder
    * 
* * 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.
@@ -350,14 +292,12 @@ public interface LogMetricOrBuilder
    * 
* * 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.
@@ -375,13 +315,10 @@ public interface LogMetricOrBuilder
    * 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.
@@ -399,16 +336,17 @@ public interface LogMetricOrBuilder
    * 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]; + */ + boolean containsLabelExtractors( + java.lang.String key); + /** + * Use {@link #getLabelExtractorsMap()} instead. */ - boolean containsLabelExtractors(java.lang.String key); - /** Use {@link #getLabelExtractorsMap()} instead. */ @java.lang.Deprecated - java.util.Map getLabelExtractors(); + java.util.Map + getLabelExtractors(); /** - * - * *
    * Optional. A map from a label key string to an extractor expression which is
    * used to extract data from a log entry field and assign as the label value.
@@ -426,13 +364,11 @@ public interface LogMetricOrBuilder
    * 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.
@@ -450,17 +386,14 @@ public interface LogMetricOrBuilder
    * 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.
@@ -478,176 +411,132 @@ 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java similarity index 73% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java index 4604a4e82..655052da2 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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
@@ -31,16 +14,15 @@
  *
  * 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_ = "";
@@ -53,37 +35,34 @@ 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.
      * 
@@ -92,8 +71,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { */ VERSION_FORMAT_UNSPECIFIED(0), /** - * - * *
      * `LogEntry` version 2 format.
      * 
@@ -102,8 +79,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { */ V2(1), /** - * - * *
      * `LogEntry` version 1 format.
      * 
@@ -115,8 +90,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * An unspecified format version that will default to V2.
      * 
@@ -125,8 +98,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERSION_FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * `LogEntry` version 2 format.
      * 
@@ -135,8 +106,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int V2_VALUE = 1; /** - * - * *
      * `LogEntry` version 1 format.
      * 
@@ -145,6 +114,7 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int V1_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -169,49 +139,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); + } + }; - 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() { + 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; @@ -229,18 +199,14 @@ private VersionFormat(int value) { } 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; } @@ -256,31 +222,26 @@ 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.
    *
@@ -291,7 +252,6 @@ public OptionsCase getOptionsCase() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -300,15 +260,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The client-assigned sink identifier, unique within the project.
    *
@@ -319,15 +278,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -336,12 +296,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DESTINATION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object destination_ = ""; /** - * - * *
    * Required. The export destination:
    *
@@ -356,10 +313,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 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 @@ -368,15 +322,14 @@ 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:
    *
@@ -391,18 +344,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. */ @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 { @@ -411,12 +363,9 @@ public com.google.protobuf.ByteString getDestinationBytes() { } 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
@@ -429,7 +378,6 @@ public com.google.protobuf.ByteString getDestinationBytes() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -438,15 +386,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -459,15 +406,16 @@ 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 { @@ -476,12 +424,9 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 18; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Optional. A description of this sink.
    *
@@ -489,7 +434,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -498,15 +442,14 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. A description of this sink.
    *
@@ -514,15 +457,16 @@ 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 { @@ -533,15 +477,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { 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 @@ -550,12 +491,9 @@ 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.
@@ -564,17 +502,13 @@ 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.
@@ -583,18 +517,14 @@ 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.
@@ -603,17 +533,13 @@ 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.
@@ -622,17 +548,13 @@ 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.
@@ -641,65 +563,48 @@ 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
@@ -722,7 +627,6 @@ public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() {
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The writerIdentity. */ @java.lang.Override @@ -731,15 +635,14 @@ 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
@@ -762,15 +665,16 @@ 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 { @@ -781,8 +685,6 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { 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
@@ -804,7 +706,6 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() {
    * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The includeChildren. */ @java.lang.Override @@ -814,16 +715,11 @@ 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 @@ -831,40 +727,31 @@ 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(); } @@ -872,17 +759,13 @@ 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 @@ -890,17 +773,13 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * 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 @@ -908,16 +787,13 @@ 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() { @@ -927,17 +803,13 @@ 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 @@ -945,17 +817,13 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * 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 @@ -963,16 +831,13 @@ 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() { @@ -980,7 +845,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -992,7 +856,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1002,8 +867,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 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_)) { @@ -1048,35 +912,39 @@ 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 (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getCreateTime()); } if (updateTime_ != null) { - 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; @@ -1086,34 +954,45 @@ public int 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: @@ -1138,7 +1017,8 @@ 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(); @@ -1148,7 +1028,8 @@ 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(); @@ -1170,103 +1051,99 @@ 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
@@ -1277,31 +1154,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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);
     }
 
     // Construct using com.google.logging.v2.LogSink.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1340,9 +1219,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
@@ -1363,9 +1242,7 @@ 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;
@@ -1410,17 +1287,22 @@ private void buildPartial0(com.google.logging.v2.LogSink result) {
         result.includeChildren_ = includeChildren_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
     }
 
     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();
       }
     }
@@ -1429,39 +1311,38 @@ 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;
@@ -1511,10 +1392,9 @@ 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_);
           }
@@ -1538,15 +1418,13 @@ 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();
@@ -1574,92 +1452,86 @@ 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) {
@@ -1669,12 +1541,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() {
@@ -1688,8 +1560,6 @@ public Builder clearOptions() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1700,13 +1570,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; @@ -1715,8 +1585,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1727,14 +1595,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1742,8 +1611,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1754,22 +1621,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1780,7 +1643,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1790,8 +1652,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1802,14 +1662,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1819,8 +1677,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object destination_ = ""; /** - * - * *
      * Required. The export destination:
      *
@@ -1835,16 +1691,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 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; @@ -1853,8 +1707,6 @@ public java.lang.String getDestination() { } } /** - * - * *
      * Required. The export destination:
      *
@@ -1869,17 +1721,16 @@ 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 { @@ -1887,8 +1738,6 @@ public com.google.protobuf.ByteString getDestinationBytes() { } } /** - * - * *
      * Required. The export destination:
      *
@@ -1903,25 +1752,19 @@ public com.google.protobuf.ByteString getDestinationBytes() {
      * 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:
      *
@@ -1936,10 +1779,7 @@ public Builder setDestination(java.lang.String value) {
      * 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() { @@ -1949,8 +1789,6 @@ public Builder clearDestination() { return this; } /** - * - * *
      * Required. The export destination:
      *
@@ -1965,17 +1803,13 @@ 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; @@ -1985,8 +1819,6 @@ public Builder setDestinationBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1999,13 +1831,13 @@ public Builder setDestinationBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -2014,8 +1846,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -2028,14 +1858,15 @@ 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 { @@ -2043,8 +1874,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -2057,22 +1886,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * 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
@@ -2085,7 +1910,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -2095,8 +1919,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -2109,14 +1931,12 @@ 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; @@ -2126,8 +1946,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. A description of this sink.
      *
@@ -2135,13 +1953,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -2150,8 +1968,6 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. A description of this sink.
      *
@@ -2159,14 +1975,15 @@ 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 { @@ -2174,8 +1991,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. A description of this sink.
      *
@@ -2183,22 +1998,18 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * 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.
      *
@@ -2206,7 +2017,6 @@ public Builder setDescription(java.lang.String value) {
      * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2216,8 +2026,6 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Optional. A description of this sink.
      *
@@ -2225,14 +2033,12 @@ 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; @@ -2240,17 +2046,14 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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 @@ -2258,15 +2061,12 @@ 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. */ @@ -2278,15 +2078,12 @@ 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() { @@ -2297,24 +2094,18 @@ 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.
@@ -2323,9 +2114,7 @@ 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) { @@ -2335,8 +2124,6 @@ public java.util.List getExclusionsList() { } } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2345,9 +2132,7 @@ 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) { @@ -2357,8 +2142,6 @@ public int getExclusionsCount() { } } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2367,9 +2150,7 @@ 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) { @@ -2379,8 +2160,6 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { } } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2389,11 +2168,10 @@ 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(); @@ -2407,8 +2185,6 @@ public Builder setExclusions(int index, com.google.logging.v2.LogExclusion value return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2417,9 +2193,7 @@ public Builder setExclusions(int index, 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 setExclusions( int index, com.google.logging.v2.LogExclusion.Builder builderForValue) { @@ -2433,8 +2207,6 @@ public Builder setExclusions( return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2443,9 +2215,7 @@ 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) { @@ -2461,8 +2231,6 @@ 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.
@@ -2471,11 +2239,10 @@ 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(); @@ -2489,8 +2256,6 @@ public Builder addExclusions(int index, com.google.logging.v2.LogExclusion value return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2499,11 +2264,10 @@ public Builder addExclusions(int index, 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(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()); @@ -2514,8 +2278,6 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion.Builder builderF return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2524,9 +2286,7 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion.Builder builderF
      * 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) { @@ -2540,8 +2300,6 @@ public Builder addExclusions( return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2550,15 +2308,14 @@ 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); @@ -2566,8 +2323,6 @@ public Builder addAllExclusions( return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2576,9 +2331,7 @@ 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) { @@ -2591,8 +2344,6 @@ public Builder clearExclusions() { return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2601,9 +2352,7 @@ 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) { @@ -2616,8 +2365,6 @@ public Builder removeExclusions(int index) { return this; } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2626,16 +2373,13 @@ 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.
@@ -2644,20 +2388,16 @@ public com.google.logging.v2.LogExclusion.Builder getExclusionsBuilder(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.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.
@@ -2666,12 +2406,10 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in
      * 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 { @@ -2679,8 +2417,6 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in } } /** - * - * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2689,17 +2425,13 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in
      * 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.
@@ -2708,17 +2440,14 @@ 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.
@@ -2727,26 +2456,22 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder(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 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_; @@ -2754,84 +2479,62 @@ public java.util.List getExclusionsB 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(); } @@ -2841,21 +2544,16 @@ public Builder setOutputVersionFormat(com.google.logging.v2.LogSink.VersionForma 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(); @@ -2864,8 +2562,6 @@ public Builder clearOutputVersionFormat() { 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
@@ -2888,13 +2584,13 @@ public Builder clearOutputVersionFormat() {
      * 
* * 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; @@ -2903,8 +2599,6 @@ 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
@@ -2927,14 +2621,15 @@ 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 { @@ -2942,8 +2637,6 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { } } /** - * - * *
      * 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
@@ -2966,22 +2659,18 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() {
      * 
* * 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
@@ -3004,7 +2693,6 @@ public Builder setWriterIdentity(java.lang.String value) {
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearWriterIdentity() { @@ -3014,8 +2702,6 @@ 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
@@ -3038,14 +2724,12 @@ 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; @@ -3053,10 +2737,8 @@ public Builder setWriterIdentityBytes(com.google.protobuf.ByteString value) { 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
@@ -3078,7 +2760,6 @@ public Builder setWriterIdentityBytes(com.google.protobuf.ByteString value) {
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The includeChildren. */ @java.lang.Override @@ -3086,8 +2767,6 @@ 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
@@ -3109,7 +2788,6 @@ public boolean getIncludeChildren() {
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The includeChildren to set. * @return This builder for chaining. */ @@ -3121,8 +2799,6 @@ 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
@@ -3144,7 +2820,6 @@ public Builder setIncludeChildren(boolean value) {
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIncludeChildren() { @@ -3155,21 +2830,13 @@ 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 @@ -3177,16 +2844,11 @@ 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 @@ -3204,15 +2866,11 @@ 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) { @@ -3228,15 +2886,11 @@ 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) { @@ -3250,25 +2904,18 @@ 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; } @@ -3284,15 +2931,11 @@ 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) { @@ -3311,29 +2954,21 @@ 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() { @@ -3347,30 +2982,21 @@ 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()); @@ -3383,64 +3009,45 @@ 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) { @@ -3456,19 +3063,16 @@ 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 { @@ -3479,23 +3083,19 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -3508,17 +3108,13 @@ 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); @@ -3531,17 +3127,13 @@ 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; @@ -3549,52 +3141,40 @@ 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_; @@ -3602,64 +3182,45 @@ 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) { @@ -3675,19 +3236,16 @@ 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 { @@ -3698,23 +3256,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -3727,17 +3281,13 @@ 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); @@ -3750,17 +3300,13 @@ 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; @@ -3768,59 +3314,47 @@ 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); } @@ -3830,12 +3364,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(); } @@ -3844,27 +3378,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; @@ -3879,4 +3413,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogSink getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java similarity index 78% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java index 5b269ebba..4e02be0ea 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -36,13 +18,10 @@ public interface LogSinkOrBuilder
    * 
* * 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.
    *
@@ -53,14 +32,12 @@ public interface LogSinkOrBuilder
    * 
* * 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:
    *
@@ -75,16 +52,11 @@ public interface LogSinkOrBuilder
    * 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:
    *
@@ -99,17 +71,13 @@ public interface LogSinkOrBuilder
    * 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
@@ -122,13 +90,10 @@ public interface LogSinkOrBuilder
    * 
* * 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
@@ -141,14 +106,12 @@ public interface LogSinkOrBuilder
    * 
* * 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.
    *
@@ -156,13 +119,10 @@ public interface LogSinkOrBuilder
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. A description of this sink.
    *
@@ -170,28 +130,23 @@ public interface LogSinkOrBuilder
    * 
* * 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.
@@ -200,14 +155,11 @@ public interface LogSinkOrBuilder
    * 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.
@@ -216,14 +168,10 @@ public interface LogSinkOrBuilder
    * 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.
@@ -232,14 +180,10 @@ public interface LogSinkOrBuilder
    * 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.
@@ -248,15 +192,11 @@ public interface LogSinkOrBuilder
    * 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.
@@ -265,48 +205,35 @@ public interface LogSinkOrBuilder
    * 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
@@ -329,13 +256,10 @@ public interface LogSinkOrBuilder
    * 
* * 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
@@ -358,14 +282,12 @@ public interface LogSinkOrBuilder
    * 
* * 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
@@ -387,137 +309,100 @@ public interface LogSinkOrBuilder
    * 
* * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java index 3d8fd1eb3..be143abba 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/log_entry.proto 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
@@ -29,47 +12,43 @@
  *
  * 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
@@ -77,7 +56,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string uid = 1; - * * @return The uid. */ @java.lang.Override @@ -86,15 +64,14 @@ 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
@@ -102,15 +79,16 @@ 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 { @@ -121,8 +99,6 @@ public com.google.protobuf.ByteString getUidBytes() { 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
@@ -130,7 +106,6 @@ public com.google.protobuf.ByteString getUidBytes() {
    * 
* * int32 index = 2; - * * @return The index. */ @java.lang.Override @@ -141,14 +116,11 @@ 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 @@ -157,7 +129,6 @@ public int getTotalSplits() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,7 +140,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uid_); } @@ -192,10 +164,12 @@ 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; @@ -205,16 +179,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.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; } @@ -237,103 +214,99 @@ 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
@@ -342,31 +315,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -378,9 +353,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
@@ -400,9 +375,7 @@ 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;
     }
@@ -424,39 +397,38 @@ 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;
@@ -502,31 +474,27 @@ 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) {
@@ -536,13 +504,10 @@ 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
@@ -550,13 +515,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; @@ -565,8 +530,6 @@ 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
@@ -574,14 +537,15 @@ 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 { @@ -589,8 +553,6 @@ public com.google.protobuf.ByteString getUidBytes() { } } /** - * - * *
      * 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
@@ -598,22 +560,18 @@ public com.google.protobuf.ByteString getUidBytes() {
      * 
* * 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
@@ -621,7 +579,6 @@ public Builder setUid(java.lang.String value) {
      * 
* * string uid = 1; - * * @return This builder for chaining. */ public Builder clearUid() { @@ -631,8 +588,6 @@ 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
@@ -640,14 +595,12 @@ 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; @@ -655,10 +608,8 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { 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
@@ -666,7 +617,6 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 index = 2; - * * @return The index. */ @java.lang.Override @@ -674,8 +624,6 @@ 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
@@ -683,7 +631,6 @@ public int getIndex() {
      * 
* * int32 index = 2; - * * @param value The index to set. * @return This builder for chaining. */ @@ -695,8 +642,6 @@ 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
@@ -704,7 +649,6 @@ public Builder setIndex(int value) {
      * 
* * int32 index = 2; - * * @return This builder for chaining. */ public Builder clearIndex() { @@ -714,16 +658,13 @@ 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 @@ -731,14 +672,11 @@ 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. */ @@ -750,14 +688,11 @@ 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() { @@ -766,9 +701,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); } @@ -778,12 +713,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(); } @@ -792,27 +727,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; @@ -827,4 +762,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogSplit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java similarity index 65% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java index 42e8a631f..3c9f21a23 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/log_entry.proto 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
@@ -33,13 +15,10 @@ public interface LogSplitOrBuilder
    * 
* * 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
@@ -47,14 +26,12 @@ public interface LogSplitOrBuilder
    * 
* * 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
@@ -62,20 +39,16 @@ public interface LogSplitOrBuilder
    * 
* * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java similarity index 68% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java index 2db6f4790..05a68ec0f 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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_ = ""; @@ -45,31 +27,28 @@ 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); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * The resource name of the view.
    *
@@ -79,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -88,15 +66,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the view.
    *
@@ -106,15 +83,16 @@ public java.lang.String getName() {
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,18 +101,14 @@ public com.google.protobuf.ByteString getNameBytes() { } 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 @@ -143,29 +117,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 { @@ -176,15 +150,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { 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 @@ -192,15 +162,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * 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 @@ -208,14 +174,11 @@ 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() { @@ -225,15 +188,11 @@ 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 @@ -241,15 +200,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * 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 @@ -257,14 +212,11 @@ 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() { @@ -272,12 +224,9 @@ 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.
@@ -296,7 +245,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string filter = 7; - * * @return The filter. */ @java.lang.Override @@ -305,15 +253,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Filter that restricts which log entries in a bucket are visible in this
    * view.
@@ -332,15 +279,16 @@ 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 { @@ -349,7 +297,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -361,7 +308,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -393,10 +341,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); } if (updateTime_ != null) { - 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_); @@ -409,24 +359,29 @@ public int 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; } @@ -457,134 +412,132 @@ 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); } // Construct using com.google.logging.v2.LogView.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -606,9 +559,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 @@ -628,9 +581,7 @@ 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; } @@ -644,10 +595,14 @@ private void buildPartial0(com.google.logging.v2.LogView result) { result.description_ = description_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.filter_ = filter_; @@ -658,39 +613,38 @@ 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; @@ -746,43 +700,41 @@ 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) { @@ -792,13 +744,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the view.
      *
@@ -808,13 +757,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; @@ -823,8 +772,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the view.
      *
@@ -834,14 +781,15 @@ public java.lang.String getName() {
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -849,8 +797,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the view.
      *
@@ -860,22 +806,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the view.
      *
@@ -885,7 +827,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -895,8 +836,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the view.
      *
@@ -906,14 +845,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -923,20 +860,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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; @@ -945,21 +880,20 @@ 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 { @@ -967,35 +901,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * 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() { @@ -1005,21 +932,17 @@ 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; @@ -1029,58 +952,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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) { @@ -1096,17 +1000,14 @@ 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 { @@ -1117,21 +1018,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -1144,15 +1041,11 @@ 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); @@ -1165,15 +1058,11 @@ 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; @@ -1181,48 +1070,36 @@ 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_; @@ -1230,58 +1107,39 @@ 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) { @@ -1297,17 +1155,14 @@ 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 { @@ -1318,21 +1173,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal 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; @@ -1345,15 +1196,11 @@ 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); @@ -1366,15 +1213,11 @@ 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; @@ -1382,48 +1225,36 @@ 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_; @@ -1431,8 +1262,6 @@ 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.
@@ -1451,13 +1280,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; @@ -1466,8 +1295,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1486,14 +1313,15 @@ 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 { @@ -1501,8 +1329,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1521,22 +1347,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * 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.
@@ -1555,7 +1377,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 7; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1565,8 +1386,6 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1585,23 +1404,21 @@ 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); } @@ -1611,12 +1428,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(); } @@ -1625,27 +1442,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; @@ -1660,4 +1477,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.LogView getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java similarity index 74% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java index 1490c0d5d..f0e96444e 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -35,13 +17,10 @@ public interface LogViewOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the view.
    *
@@ -51,115 +30,86 @@ public interface LogViewOrBuilder
    * 
* * 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.
@@ -178,13 +128,10 @@ public interface LogViewOrBuilder
    * 
* * string filter = 7; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter that restricts which log entries in a bucket are visible in this
    * view.
@@ -203,8 +150,8 @@ public interface LogViewOrBuilder
    * 
* * string filter = 7; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } 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 new file mode 100644 index 000000000..cc12843be --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java @@ -0,0 +1,1157 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +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\"\220\001\n\013IndexCon" + + "fig\022\030\n\nfield_path\030\001 \001(\tB\004\342A\001\002\0220\n\004type\030\002 " + + "\001(\0162\034.google.logging.v2.IndexTypeB\004\342A\001\002\022" + + "5\n\013create_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestampB\004\342A\001\003\"\331\005\n\tLogBucket\022\022\n\004name\030\001 \001" + + "(\tB\004\342A\001\003\022\023\n\013description\030\003 \001(\t\0225\n\013create_" + + "time\030\004 \001(\0132\032.google.protobuf.TimestampB\004" + + "\342A\001\003\0225\n\013update_time\030\005 \001(\0132\032.google.proto" + + "buf.TimestampB\004\342A\001\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" + + "\004\342A\001\003\022\031\n\021analytics_enabled\030\016 \001(\010\022\031\n\021rest" + + "ricted_fields\030\017 \003(\t\0225\n\rindex_configs\030\021 \003" + + "(\0132\036.google.logging.v2.IndexConfig\0226\n\rcm" + + "ek_settings\030\023 \001(\0132\037.google.logging.v2.Cm" + + "ekSettings:\245\002\352A\241\002\n logging.googleapis.co" + + "m/LogBucket\0228projects/{project}/location" + + "s/{location}/buckets/{bucket}\022Borganizat" + + "ions/{organization}/locations/{location}" + + "/buckets/{bucket}\0226folders/{folder}/loca" + + "tions/{location}/buckets/{bucket}\022Gbilli" + + "ngAccounts/{billing_account}/locations/{" + + "location}/buckets/{bucket}\"\204\004\n\007LogView\022\014" + + "\n\004name\030\001 \001(\t\022\023\n\013description\030\003 \001(\t\0225\n\013cre" + + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mpB\004\342A\001\003\0225\n\013update_time\030\005 \001(\0132\032.google.p" + + "rotobuf.TimestampB\004\342A\001\003\022\016\n\006filter\030\007 \001(\t:" + + "\327\002\352A\323\002\n\036logging.googleapis.com/LogView\022E" + + "projects/{project}/locations/{location}/" + + "buckets/{bucket}/views/{view}\022Oorganizat" + + "ions/{organization}/locations/{location}" + + "/buckets/{bucket}/views/{view}\022Cfolders/" + + "{folder}/locations/{location}/buckets/{b" + + "ucket}/views/{view}\022TbillingAccounts/{bi" + + "lling_account}/locations/{location}/buck" + + "ets/{bucket}/views/{view}\"\220\006\n\007LogSink\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\002\022\037\n\013destination\030\003 \001(\tB\n" + + "\342A\001\002\372A\003\n\001*\022\024\n\006filter\030\005 \001(\tB\004\342A\001\001\022\031\n\013desc" + + "ription\030\022 \001(\tB\004\342A\001\001\022\026\n\010disabled\030\023 \001(\010B\004\342" + + "A\001\001\0229\n\nexclusions\030\020 \003(\0132\037.google.logging" + + ".v2.LogExclusionB\004\342A\001\001\022K\n\025output_version" + + "_format\030\006 \001(\0162(.google.logging.v2.LogSin" + + "k.VersionFormatB\002\030\001\022\035\n\017writer_identity\030\010" + + " \001(\tB\004\342A\001\003\022\036\n\020include_children\030\t \001(\010B\004\342A" + + "\001\001\022D\n\020bigquery_options\030\014 \001(\0132\".google.lo" + + "gging.v2.BigQueryOptionsB\004\342A\001\001H\000\0225\n\013crea" + + "te_time\030\r \001(\0132\032.google.protobuf.Timestam" + + "pB\004\342A\001\003\0225\n\013update_time\030\016 \001(\0132\032.google.pr" + + "otobuf.TimestampB\004\342A\001\003\"?\n\rVersionFormat\022" + + "\036\n\032VERSION_FORMAT_UNSPECIFIED\020\000\022\006\n\002V2\020\001\022" + + "\006\n\002V1\020\002:\277\001\352A\273\001\n\036logging.googleapis.com/L" + + "ogSink\022\037projects/{project}/sinks/{sink}\022" + + ")organizations/{organization}/sinks/{sin" + + "k}\022\035folders/{folder}/sinks/{sink}\022.billi" + + "ngAccounts/{billing_account}/sinks/{sink" + + "}B\t\n\007options\"+\n\017BigQueryDataset\022\030\n\ndatas" + + "et_id\030\001 \001(\tB\004\342A\001\003\"\267\004\n\004Link\022\014\n\004name\030\001 \001(\t" + + "\022\023\n\013description\030\002 \001(\t\0225\n\013create_time\030\003 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022@\n\017" + + "lifecycle_state\030\004 \001(\0162!.google.logging.v" + + "2.LifecycleStateB\004\342A\001\003\022<\n\020bigquery_datas" + + "et\030\005 \001(\0132\".google.logging.v2.BigQueryDat" + + "aset:\324\002\352A\320\002\n\033logging.googleapis.com/Link" + + "\022Eprojects/{project}/locations/{location" + + "}/buckets/{bucket}/links/{link}\022Oorganiz" + + "ations/{organization}/locations/{locatio" + + "n}/buckets/{bucket}/links/{link}\022Cfolder" + + "s/{folder}/locations/{location}/buckets/" + + "{bucket}/links/{link}\022TbillingAccounts/{" + + "billing_account}/locations/{location}/bu" + + "ckets/{bucket}/links/{link}\"i\n\017BigQueryO" + + "ptions\022$\n\026use_partitioned_tables\030\001 \001(\010B\004" + + "\342A\001\001\0220\n\"uses_timestamp_column_partitioni" + + "ng\030\003 \001(\010B\004\342A\001\003\"\202\001\n\022ListBucketsRequest\0229\n" + + "\006parent\030\001 \001(\tB)\342A\001\002\372A\"\022 logging.googleap" + + "is.com/LogBucket\022\030\n\npage_token\030\002 \001(\tB\004\342A" + + "\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"]\n\023ListBucke" + + "tsResponse\022-\n\007buckets\030\001 \003(\0132\034.google.log" + + "ging.v2.LogBucket\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\235\001\n\023CreateBucketRequest\0229\n\006parent\030\001 \001" + + "(\tB)\342A\001\002\372A\"\022 logging.googleapis.com/LogB" + + "ucket\022\027\n\tbucket_id\030\002 \001(\tB\004\342A\001\002\0222\n\006bucket" + + "\030\003 \001(\0132\034.google.logging.v2.LogBucketB\004\342A" + + "\001\002\"\271\001\n\023UpdateBucketRequest\0227\n\004name\030\001 \001(\t" + + "B)\342A\001\002\372A\"\n logging.googleapis.com/LogBuc" + + "ket\0222\n\006bucket\030\002 \001(\0132\034.google.logging.v2." + + "LogBucketB\004\342A\001\002\0225\n\013update_mask\030\004 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\004\342A\001\002\"K\n\020GetBuc" + + "ketRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n loggi" + + "ng.googleapis.com/LogBucket\"N\n\023DeleteBuc" + + "ketRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n loggi" + + "ng.googleapis.com/LogBucket\"P\n\025UndeleteB" + + "ucketRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n log" + + "ging.googleapis.com/LogBucket\"[\n\020ListVie" + + "wsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\030\n\npage_" + + "token\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A" + + "\001\001\"W\n\021ListViewsResponse\022)\n\005views\030\001 \003(\0132\032" + + ".google.logging.v2.LogView\022\027\n\017next_page_" + + "token\030\002 \001(\t\"p\n\021CreateViewRequest\022\024\n\006pare" + + "nt\030\001 \001(\tB\004\342A\001\002\022\025\n\007view_id\030\002 \001(\tB\004\342A\001\002\022.\n" + + "\004view\030\003 \001(\0132\032.google.logging.v2.LogViewB" + + "\004\342A\001\002\"\216\001\n\021UpdateViewRequest\022\022\n\004name\030\001 \001(" + + "\tB\004\342A\001\002\022.\n\004view\030\002 \001(\0132\032.google.logging.v" + + "2.LogViewB\004\342A\001\002\0225\n\013update_mask\030\004 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\004\342A\001\001\"G\n\016GetVie" + + "wRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036logging" + + ".googleapis.com/LogView\"J\n\021DeleteViewReq" + + "uest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036logging.goo" + + "gleapis.com/LogView\"~\n\020ListSinksRequest\022" + + "7\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036logging.google" + + "apis.com/LogSink\022\030\n\npage_token\030\002 \001(\tB\004\342A" + + "\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"W\n\021ListSinks" + + "Response\022)\n\005sinks\030\001 \003(\0132\032.google.logging" + + ".v2.LogSink\022\027\n\017next_page_token\030\002 \001(\t\"L\n\016" + + "GetSinkRequest\022:\n\tsink_name\030\001 \001(\tB\'\342A\001\002\372" + + "A \n\036logging.googleapis.com/LogSink\"\242\001\n\021C" + + "reateSinkRequest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A" + + " \022\036logging.googleapis.com/LogSink\022.\n\004sin" + + "k\030\002 \001(\0132\032.google.logging.v2.LogSinkB\004\342A\001" + + "\002\022$\n\026unique_writer_identity\030\003 \001(\010B\004\342A\001\001\"" + + "\334\001\n\021UpdateSinkRequest\022:\n\tsink_name\030\001 \001(\t" + + "B\'\342A\001\002\372A \n\036logging.googleapis.com/LogSin" + + "k\022.\n\004sink\030\002 \001(\0132\032.google.logging.v2.LogS" + + "inkB\004\342A\001\002\022$\n\026unique_writer_identity\030\003 \001(" + + "\010B\004\342A\001\001\0225\n\013update_mask\030\004 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\004\342A\001\001\"O\n\021DeleteSinkRequ" + + "est\022:\n\tsink_name\030\001 \001(\tB\'\342A\001\002\372A \n\036logging" + + ".googleapis.com/LogSink\"\215\001\n\021CreateLinkRe" + + "quest\0224\n\006parent\030\001 \001(\tB$\342A\001\002\372A\035\022\033logging." + + "googleapis.com/Link\022+\n\004link\030\002 \001(\0132\027.goog" + + "le.logging.v2.LinkB\004\342A\001\002\022\025\n\007link_id\030\003 \001(" + + "\tB\004\342A\001\002\"G\n\021DeleteLinkRequest\0222\n\004name\030\001 \001" + + "(\tB$\342A\001\002\372A\035\n\033logging.googleapis.com/Link" + + "\"{\n\020ListLinksRequest\0224\n\006parent\030\001 \001(\tB$\342A" + + "\001\002\372A\035\022\033logging.googleapis.com/Link\022\030\n\npa" + + "ge_token\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B" + + "\004\342A\001\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\"D\n\016GetLinkRequest\0222\n\004name\030\001 " + + "\001(\tB$\342A\001\002\372A\035\n\033logging.googleapis.com/Lin" + + "k\"\310\003\n\014LogExclusion\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022\031" + + "\n\013description\030\002 \001(\tB\004\342A\001\001\022\024\n\006filter\030\003 \001(" + + "\tB\004\342A\001\002\022\026\n\010disabled\030\004 \001(\010B\004\342A\001\001\0225\n\013creat" + + "e_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + + "B\004\342A\001\003\0225\n\013update_time\030\006 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003:\354\001\352A\350\001\n#logging.go" + + "ogleapis.com/LogExclusion\022)projects/{pro" + + "ject}/exclusions/{exclusion}\0223organizati" + + "ons/{organization}/exclusions/{exclusion" + + "}\022\'folders/{folder}/exclusions/{exclusio" + + "n}\0228billingAccounts/{billing_account}/ex" + + "clusions/{exclusion}\"\210\001\n\025ListExclusionsR" + + "equest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\022#logging" + + ".googleapis.com/LogExclusion\022\030\n\npage_tok" + + "en\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"" + + "f\n\026ListExclusionsResponse\0223\n\nexclusions\030" + + "\001 \003(\0132\037.google.logging.v2.LogExclusion\022\027" + + "\n\017next_page_token\030\002 \001(\t\"Q\n\023GetExclusionR" + + "equest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.g" + + "oogleapis.com/LogExclusion\"\220\001\n\026CreateExc" + + "lusionRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\022#" + + "logging.googleapis.com/LogExclusion\0228\n\te" + + "xclusion\030\002 \001(\0132\037.google.logging.v2.LogEx" + + "clusionB\004\342A\001\002\"\305\001\n\026UpdateExclusionRequest" + + "\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.googlea" + + "pis.com/LogExclusion\0228\n\texclusion\030\002 \001(\0132" + + "\037.google.logging.v2.LogExclusionB\004\342A\001\002\0225" + + "\n\013update_mask\030\003 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\004\342A\001\002\"T\n\026DeleteExclusionRequest\022" + + ":\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.googleap" + + "is.com/LogExclusion\"T\n\026GetCmekSettingsRe" + + "quest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.go" + + "ogleapis.com/CmekSettings\"\244\001\n\031UpdateCmek" + + "SettingsRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022<\n\rc" + + "mek_settings\030\002 \001(\0132\037.google.logging.v2.C" + + "mekSettingsB\004\342A\001\002\0225\n\013update_mask\030\003 \001(\0132\032" + + ".google.protobuf.FieldMaskB\004\342A\001\001\"\277\002\n\014Cme" + + "kSettings\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014kms_key" + + "_name\030\002 \001(\t\022\034\n\024kms_key_version_name\030\004 \001(" + + "\t\022 \n\022service_account_id\030\003 \001(\tB\004\342A\001\003:\304\001\352A" + + "\300\001\n#logging.googleapis.com/CmekSettings\022" + + "\037projects/{project}/cmekSettings\022)organi" + + "zations/{organization}/cmekSettings\022\035fol" + + "ders/{folder}/cmekSettings\022.billingAccou" + + "nts/{billing_account}/cmekSettings\"L\n\022Ge" + + "tSettingsRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n" + + "\037logging.googleapis.com/Settings\"\227\001\n\025Upd" + + "ateSettingsRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0223" + + "\n\010settings\030\002 \001(\0132\033.google.logging.v2.Set" + + "tingsB\004\342A\001\002\0225\n\013update_mask\030\003 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\004\342A\001\001\"\327\002\n\010Settings\022" + + "\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\032\n\014kms_key_name\030\002 \001(" + + "\tB\004\342A\001\001\022$\n\026kms_service_account_id\030\003 \001(\tB" + + "\004\342A\001\003\022\036\n\020storage_location\030\004 \001(\tB\004\342A\001\001\022\"\n" + + "\024disable_default_sink\030\005 \001(\010B\004\342A\001\001:\260\001\352A\254\001" + + "\n\037logging.googleapis.com/Settings\022\033proje" + + "cts/{project}/settings\022%organizations/{o" + + "rganization}/settings\022\031folders/{folder}/" + + "settings\022*billingAccounts/{billing_accou" + + "nt}/settings\"\\\n\025CopyLogEntriesRequest\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\002\022\024\n\006filter\030\003 \001(\tB\004\342A\001\001\022" + + "\031\n\013destination\030\004 \001(\tB\004\342A\001\002\"\256\002\n\026CopyLogEn" + + "triesMetadata\022.\n\nstart_time\030\001 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132" + + "\032.google.protobuf.Timestamp\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.CopyLogEntrie" + + "sRequest\022\020\n\010progress\030\006 \001(\005\022\027\n\017writer_ide" + + "ntity\030\007 \001(\t\":\n\026CopyLogEntriesResponse\022 \n" + + "\030log_entries_copied_count\030\001 \001(\003\"\275\002\n\016Buck" + + "etMetadata\022.\n\nstart_time\030\001 \001(\0132\032.google." + + "protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\0220\n\005state\030\003 \001(\0162" + + "!.google.logging.v2.OperationState\022G\n\025cr" + + "eate_bucket_request\030\004 \001(\0132&.google.loggi" + + "ng.v2.CreateBucketRequestH\000\022G\n\025update_bu" + + "cket_request\030\005 \001(\0132&.google.logging.v2.U" + + "pdateBucketRequestH\000B\t\n\007request\"\263\002\n\014Link" + + "Metadata\022.\n\nstart_time\030\001 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\0220\n\005state\030\003 \001(\0162!." + + "google.logging.v2.OperationState\022C\n\023crea" + + "te_link_request\030\004 \001(\0132$.google.logging.v" + + "2.CreateLinkRequestH\000\022C\n\023delete_link_req" + + "uest\030\005 \001(\0132$.google.logging.v2.DeleteLin" + + "kRequestH\000B\t\n\007request\"1\n\020LocationMetadat" + + "a\022\035\n\025log_analytics_enabled\030\001 \001(\010*\364\001\n\016Ope" + + "rationState\022\037\n\033OPERATION_STATE_UNSPECIFI" + + "ED\020\000\022\035\n\031OPERATION_STATE_SCHEDULED\020\001\022+\n\'O" + + "PERATION_STATE_WAITING_FOR_PERMISSIONS\020\002" + + "\022\033\n\027OPERATION_STATE_RUNNING\020\003\022\035\n\031OPERATI" + + "ON_STATE_SUCCEEDED\020\004\022\032\n\026OPERATION_STATE_" + + "FAILED\020\005\022\035\n\031OPERATION_STATE_CANCELLED\020\006*" + + "{\n\016LifecycleState\022\037\n\033LIFECYCLE_STATE_UNS" + + "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\024\n\020DELETE_REQUEST" + + "ED\020\002\022\014\n\010UPDATING\020\003\022\014\n\010CREATING\020\004\022\n\n\006FAIL" + + "ED\020\005*V\n\tIndexType\022\032\n\026INDEX_TYPE_UNSPECIF" + + "IED\020\000\022\025\n\021INDEX_TYPE_STRING\020\001\022\026\n\022INDEX_TY" + + "PE_INTEGER\020\0022\237Y\n\017ConfigServiceV2\022\334\002\n\013Lis" + + "tBuckets\022%.google.logging.v2.ListBuckets" + + "Request\032&.google.logging.v2.ListBucketsR" + + "esponse\"\375\001\332A\006parent\202\323\344\223\002\355\001\022$/v2/{parent=" + + "*/*/locations/*}/bucketsZ-\022+/v2/{parent=" + + "projects/*/locations/*}/bucketsZ2\0220/v2/{" + + "parent=organizations/*/locations/*}/buck" + + "etsZ,\022*/v2/{parent=folders/*/locations/*" + + "}/bucketsZ4\0222/v2/{parent=billingAccounts" + + "/*/locations/*}/buckets\022\305\002\n\tGetBucket\022#." + + "google.logging.v2.GetBucketRequest\032\034.goo" + + "gle.logging.v2.LogBucket\"\364\001\202\323\344\223\002\355\001\022$/v2/" + + "{name=*/*/locations/*/buckets/*}Z-\022+/v2/" + + "{name=projects/*/locations/*/buckets/*}Z" + + "2\0220/v2/{name=organizations/*/locations/*" + + "/buckets/*}Z,\022*/v2/{name=folders/*/locat" + + "ions/*/buckets/*}Z4\0222/v2/{name=billingAc" + + "counts/*/locations/*/buckets/*}\022\323\003\n\021Crea" + + "teBucketAsync\022&.google.logging.v2.Create" + + "BucketRequest\032\035.google.longrunning.Opera" + + "tion\"\366\002\312A\033\n\tLogBucket\022\016BucketMetadata\202\323\344" + + "\223\002\321\002\"0/v2/{parent=*/*/locations/*}/bucke" + + "ts:createAsync:\006bucketZA\"7/v2/{parent=pr" + + "ojects/*/locations/*}/buckets:createAsyn" + + "c:\006bucketZF\"/v2/{pare" + + "nt=billingAccounts/*/locations/*}/bucket" + + "s:createAsync:\006bucket\022\323\003\n\021UpdateBucketAs" + + "ync\022&.google.logging.v2.UpdateBucketRequ" + + "est\032\035.google.longrunning.Operation\"\366\002\312A\033" + + "\n\tLogBucket\022\016BucketMetadata\202\323\344\223\002\321\002\"0/v2/" + + "{name=*/*/locations/*/buckets/*}:updateA" + + "sync:\006bucketZA\"7/v2/{name=projects/*/loc" + + "ations/*/buckets/*}:updateAsync:\006bucketZ" + + "F\"/v2/{name=billingAc" + + "counts/*/locations/*/buckets/*}:updateAs" + + "ync:\006bucket\022\363\002\n\014CreateBucket\022&.google.lo" + + "gging.v2.CreateBucketRequest\032\034.google.lo" + + "gging.v2.LogBucket\"\234\002\202\323\344\223\002\225\002\"$/v2/{paren" + + "t=*/*/locations/*}/buckets:\006bucketZ5\"+/v" + + "2/{parent=projects/*/locations/*}/bucket" + + "s:\006bucketZ:\"0/v2/{parent=organizations/*" + + "/locations/*}/buckets:\006bucketZ4\"*/v2/{pa" + + "rent=folders/*/locations/*}/buckets:\006buc" + + "ketZ<\"2/v2/{parent=billingAccounts/*/loc" + + "ations/*}/buckets:\006bucket\022\363\002\n\014UpdateBuck" + + "et\022&.google.logging.v2.UpdateBucketReque" + + "st\032\034.google.logging.v2.LogBucket\"\234\002\202\323\344\223\002" + + "\225\0022$/v2/{name=*/*/locations/*/buckets/*}" + + ":\006bucketZ52+/v2/{name=projects/*/locatio" + + "ns/*/buckets/*}:\006bucketZ:20/v2/{name=org" + + "anizations/*/locations/*/buckets/*}:\006buc" + + "ketZ42*/v2/{name=folders/*/locations/*/b" + + "uckets/*}:\006bucketZ<22/v2/{name=billingAc" + + "counts/*/locations/*/buckets/*}:\006bucket\022" + + "\305\002\n\014DeleteBucket\022&.google.logging.v2.Del" + + "eteBucketRequest\032\026.google.protobuf.Empty" + + "\"\364\001\202\323\344\223\002\355\001*$/v2/{name=*/*/locations/*/bu" + + "ckets/*}Z-*+/v2/{name=projects/*/locatio" + + "ns/*/buckets/*}Z2*0/v2/{name=organizatio" + + "ns/*/locations/*/buckets/*}Z,**/v2/{name" + + "=folders/*/locations/*/buckets/*}Z4*2/v2" + + "/{name=billingAccounts/*/locations/*/buc" + + "kets/*}\022\205\003\n\016UndeleteBucket\022(.google.logg" + + "ing.v2.UndeleteBucketRequest\032\026.google.pr" + + "otobuf.Empty\"\260\002\202\323\344\223\002\251\002\"-/v2/{name=*/*/lo" + + "cations/*/buckets/*}:undelete:\001*Z9\"4/v2/" + + "{name=projects/*/locations/*/buckets/*}:" + + "undelete:\001*Z>\"9/v2/{name=organizations/*" + + "/locations/*/buckets/*}:undelete:\001*Z8\"3/" + + "v2/{name=folders/*/locations/*/buckets/*" + + "}:undelete:\001*Z@\";/v2/{name=billingAccoun" + + "ts/*/locations/*/buckets/*}:undelete:\001*\022" + + "\376\002\n\tListViews\022#.google.logging.v2.ListVi" + + "ewsRequest\032$.google.logging.v2.ListViews" + + "Response\"\245\002\332A\006parent\202\323\344\223\002\225\002\022,/v2/{parent" + + "=*/*/locations/*/buckets/*}/viewsZ5\0223/v2" + + "/{parent=projects/*/locations/*/buckets/" + + "*}/viewsZ:\0228/v2/{parent=organizations/*/" + + "locations/*/buckets/*}/viewsZ4\0222/v2/{par" + + "ent=folders/*/locations/*/buckets/*}/vie" + + "wsZ<\022:/v2/{parent=billingAccounts/*/loca" + + "tions/*/buckets/*}/views\022\347\002\n\007GetView\022!.g" + + "oogle.logging.v2.GetViewRequest\032\032.google" + + ".logging.v2.LogView\"\234\002\202\323\344\223\002\225\002\022,/v2/{name" + + "=*/*/locations/*/buckets/*/views/*}Z5\0223/" + + "v2/{name=projects/*/locations/*/buckets/" + + "*/views/*}Z:\0228/v2/{name=organizations/*/" + + "locations/*/buckets/*/views/*}Z4\0222/v2/{n" + + "ame=folders/*/locations/*/buckets/*/view" + + "s/*}Z<\022:/v2/{name=billingAccounts/*/loca" + + "tions/*/buckets/*/views/*}\022\213\003\n\nCreateVie" + + "w\022$.google.logging.v2.CreateViewRequest\032" + + "\032.google.logging.v2.LogView\"\272\002\202\323\344\223\002\263\002\",/" + + "v2/{parent=*/*/locations/*/buckets/*}/vi" + + "ews:\004viewZ;\"3/v2/{parent=projects/*/loca" + + "tions/*/buckets/*}/views:\004viewZ@\"8/v2/{p" + + "arent=organizations/*/locations/*/bucket" + + "s/*}/views:\004viewZ:\"2/v2/{parent=folders/" + + "*/locations/*/buckets/*}/views:\004viewZB\":" + + "/v2/{parent=billingAccounts/*/locations/" + + "*/buckets/*}/views:\004view\022\213\003\n\nUpdateView\022" + + "$.google.logging.v2.UpdateViewRequest\032\032." + + "google.logging.v2.LogView\"\272\002\202\323\344\223\002\263\0022,/v2" + + "/{name=*/*/locations/*/buckets/*/views/*" + + "}:\004viewZ;23/v2/{name=projects/*/location" + + "s/*/buckets/*/views/*}:\004viewZ@28/v2/{nam" + + "e=organizations/*/locations/*/buckets/*/" + + "views/*}:\004viewZ:22/v2/{name=folders/*/lo" + + "cations/*/buckets/*/views/*}:\004viewZB2:/v" + + "2/{name=billingAccounts/*/locations/*/bu" + + "ckets/*/views/*}:\004view\022\351\002\n\nDeleteView\022$." + + "google.logging.v2.DeleteViewRequest\032\026.go" + + "ogle.protobuf.Empty\"\234\002\202\323\344\223\002\225\002*,/v2/{name" + + "=*/*/locations/*/buckets/*/views/*}Z5*3/" + + "v2/{name=projects/*/locations/*/buckets/" + + "*/views/*}Z:*8/v2/{name=organizations/*/" + + "locations/*/buckets/*/views/*}Z4*2/v2/{n" + + "ame=folders/*/locations/*/buckets/*/view" + + "s/*}Z<*:/v2/{name=billingAccounts/*/loca" + + "tions/*/buckets/*/views/*}\022\220\002\n\tListSinks" + + "\022#.google.logging.v2.ListSinksRequest\032$." + + "google.logging.v2.ListSinksResponse\"\267\001\332A" + + "\006parent\202\323\344\223\002\247\001\022\026/v2/{parent=*/*}/sinksZ\037" + + "\022\035/v2/{parent=projects/*}/sinksZ$\022\"/v2/{" + + "parent=organizations/*}/sinksZ\036\022\034/v2/{pa" + + "rent=folders/*}/sinksZ&\022$/v2/{parent=bil" + + "lingAccounts/*}/sinks\022\236\002\n\007GetSink\022!.goog" + + "le.logging.v2.GetSinkRequest\032\032.google.lo" + + "gging.v2.LogSink\"\323\001\332A\tsink_name\202\323\344\223\002\300\001\022\033" + + "/v2/{sink_name=*/*/sinks/*}Z$\022\"/v2/{sink" + + "_name=projects/*/sinks/*}Z)\022\'/v2/{sink_n" + + "ame=organizations/*/sinks/*}Z#\022!/v2/{sin" + + "k_name=folders/*/sinks/*}Z+\022)/v2/{sink_n" + + "ame=billingAccounts/*/sinks/*}\022\253\002\n\nCreat" + + "eSink\022$.google.logging.v2.CreateSinkRequ" + + "est\032\032.google.logging.v2.LogSink\"\332\001\332A\013par" + + "ent,sink\202\323\344\223\002\305\001\"\026/v2/{parent=*/*}/sinks:" + + "\004sinkZ%\"\035/v2/{parent=projects/*}/sinks:\004" + + "sinkZ*\"\"/v2/{parent=organizations/*}/sin" + + "ks:\004sinkZ$\"\034/v2/{parent=folders/*}/sinks" + + ":\004sinkZ,\"$/v2/{parent=billingAccounts/*}" + + "/sinks:\004sink\022\237\004\n\nUpdateSink\022$.google.log" + + "ging.v2.UpdateSinkRequest\032\032.google.loggi" + + "ng.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/*}:\004sinkZ*\032\"/v2/{sink_na" + + "me=projects/*/sinks/*}:\004sinkZ/\032\'/v2/{sin" + + "k_name=organizations/*/sinks/*}:\004sinkZ)\032", + "!/v2/{sink_name=folders/*/sinks/*}:\004sink" + + "Z1\032)/v2/{sink_name=billingAccounts/*/sin" + + "ks/*}:\004sinkZ*2\"/v2/{sink_name=projects/*" + + "/sinks/*}:\004sinkZ/2\'/v2/{sink_name=organi" + + "zations/*/sinks/*}:\004sinkZ)2!/v2/{sink_na" + + "me=folders/*/sinks/*}:\004sinkZ12)/v2/{sink" + + "_name=billingAccounts/*/sinks/*}:\004sink\022\240" + + "\002\n\nDeleteSink\022$.google.logging.v2.Delete" + + "SinkRequest\032\026.google.protobuf.Empty\"\323\001\332A" + + "\tsink_name\202\323\344\223\002\300\001*\033/v2/{sink_name=*/*/si" + + "nks/*}Z$*\"/v2/{sink_name=projects/*/sink" + + "s/*}Z)*\'/v2/{sink_name=organizations/*/s" + + "inks/*}Z#*!/v2/{sink_name=folders/*/sink" + + "s/*}Z+*)/v2/{sink_name=billingAccounts/*" + + "/sinks/*}\022\273\003\n\nCreateLink\022$.google.loggin" + + "g.v2.CreateLinkRequest\032\035.google.longrunn" + + "ing.Operation\"\347\002\312A\024\n\004Link\022\014LinkMetadata\332" + + "A\023parent,link,link_id\202\323\344\223\002\263\002\",/v2/{paren" + + "t=*/*/locations/*/buckets/*}/links:\004link" + + "Z;\"3/v2/{parent=projects/*/locations/*/b" + + "uckets/*}/links:\004linkZ@\"8/v2/{parent=org" + + "anizations/*/locations/*/buckets/*}/link" + + "s:\004linkZ:\"2/v2/{parent=folders/*/locatio" + + "ns/*/buckets/*}/links:\004linkZB\":/v2/{pare" + + "nt=billingAccounts/*/locations/*/buckets" + + "/*}/links:\004link\022\237\003\n\nDeleteLink\022$.google." + + "logging.v2.DeleteLinkRequest\032\035.google.lo" + + "ngrunning.Operation\"\313\002\312A%\n\025google.protob" + + "uf.Empty\022\014LinkMetadata\332A\004name\202\323\344\223\002\225\002*,/v" + + "2/{name=*/*/locations/*/buckets/*/links/" + + "*}Z5*3/v2/{name=projects/*/locations/*/b" + + "uckets/*/links/*}Z:*8/v2/{name=organizat" + + "ions/*/locations/*/buckets/*/links/*}Z4*" + + "2/v2/{name=folders/*/locations/*/buckets" + + "/*/links/*}Z<*:/v2/{name=billingAccounts" + + "/*/locations/*/buckets/*/links/*}\022\376\002\n\tLi" + + "stLinks\022#.google.logging.v2.ListLinksReq" + + "uest\032$.google.logging.v2.ListLinksRespon" + + "se\"\245\002\332A\006parent\202\323\344\223\002\225\002\022,/v2/{parent=*/*/l" + + "ocations/*/buckets/*}/linksZ5\0223/v2/{pare" + + "nt=projects/*/locations/*/buckets/*}/lin" + + "ksZ:\0228/v2/{parent=organizations/*/locati" + + "ons/*/buckets/*}/linksZ4\0222/v2/{parent=fo" + + "lders/*/locations/*/buckets/*}/linksZ<\022:" + + "/v2/{parent=billingAccounts/*/locations/" + + "*/buckets/*}/links\022\353\002\n\007GetLink\022!.google." + + "logging.v2.GetLinkRequest\032\027.google.loggi" + + "ng.v2.Link\"\243\002\332A\004name\202\323\344\223\002\225\002\022,/v2/{name=*" + + "/*/locations/*/buckets/*/links/*}Z5\0223/v2" + + "/{name=projects/*/locations/*/buckets/*/" + + "links/*}Z:\0228/v2/{name=organizations/*/lo" + + "cations/*/buckets/*/links/*}Z4\0222/v2/{nam" + + "e=folders/*/locations/*/buckets/*/links/" + + "*}Z<\022:/v2/{name=billingAccounts/*/locati" + + "ons/*/buckets/*/links/*}\022\270\002\n\016ListExclusi" + + "ons\022(.google.logging.v2.ListExclusionsRe" + + "quest\032).google.logging.v2.ListExclusions" + + "Response\"\320\001\332A\006parent\202\323\344\223\002\300\001\022\033/v2/{parent" + + "=*/*}/exclusionsZ$\022\"/v2/{parent=projects" + + "/*}/exclusionsZ)\022\'/v2/{parent=organizati" + + "ons/*}/exclusionsZ#\022!/v2/{parent=folders" + + "/*}/exclusionsZ+\022)/v2/{parent=billingAcc" + + "ounts/*}/exclusions\022\250\002\n\014GetExclusion\022&.g" + + "oogle.logging.v2.GetExclusionRequest\032\037.g" + + "oogle.logging.v2.LogExclusion\"\316\001\332A\004name\202" + + "\323\344\223\002\300\001\022\033/v2/{name=*/*/exclusions/*}Z$\022\"/" + + "v2/{name=projects/*/exclusions/*}Z)\022\'/v2" + + "/{name=organizations/*/exclusions/*}Z#\022!" + + "/v2/{name=folders/*/exclusions/*}Z+\022)/v2" + + "/{name=billingAccounts/*/exclusions/*}\022\361" + + "\002\n\017CreateExclusion\022).google.logging.v2.C" + + "reateExclusionRequest\032\037.google.logging.v" + + "2.LogExclusion\"\221\002\332A\020parent,exclusion\202\323\344\223" + + "\002\367\001\"\033/v2/{parent=*/*}/exclusions:\texclus" + + "ionZ/\"\"/v2/{parent=projects/*}/exclusion" + + "s:\texclusionZ4\"\'/v2/{parent=organization" + + "s/*}/exclusions:\texclusionZ.\"!/v2/{paren" + + "t=folders/*}/exclusions:\texclusionZ6\")/v" + + "2/{parent=billingAccounts/*}/exclusions:" + + "\texclusion\022\373\002\n\017UpdateExclusion\022).google." + + "logging.v2.UpdateExclusionRequest\032\037.goog" + + "le.logging.v2.LogExclusion\"\233\002\332A\032name,exc" + + "lusion,update_mask\202\323\344\223\002\367\0012\033/v2/{name=*/*" + + "/exclusions/*}:\texclusionZ/2\"/v2/{name=p" + + "rojects/*/exclusions/*}:\texclusionZ42\'/v" + + "2/{name=organizations/*/exclusions/*}:\te" + + "xclusionZ.2!/v2/{name=folders/*/exclusio" + + "ns/*}:\texclusionZ62)/v2/{name=billingAcc" + + "ounts/*/exclusions/*}:\texclusion\022\245\002\n\017Del" + + "eteExclusion\022).google.logging.v2.DeleteE" + + "xclusionRequest\032\026.google.protobuf.Empty\"" + + "\316\001\332A\004name\202\323\344\223\002\300\001*\033/v2/{name=*/*/exclusio" + + "ns/*}Z$*\"/v2/{name=projects/*/exclusions" + + "/*}Z)*\'/v2/{name=organizations/*/exclusi" + + "ons/*}Z#*!/v2/{name=folders/*/exclusions" + + "/*}Z+*)/v2/{name=billingAccounts/*/exclu" + + "sions/*}\022\247\002\n\017GetCmekSettings\022).google.lo" + + "gging.v2.GetCmekSettingsRequest\032\037.google" + + ".logging.v2.CmekSettings\"\307\001\202\323\344\223\002\300\001\022\033/v2/" + + "{name=*/*}/cmekSettingsZ$\022\"/v2/{name=pro" + + "jects/*}/cmekSettingsZ)\022\'/v2/{name=organ" + + "izations/*}/cmekSettingsZ#\022!/v2/{name=fo" + + "lders/*}/cmekSettingsZ+\022)/v2/{name=billi" + + "ngAccounts/*}/cmekSettings\022\321\001\n\022UpdateCme" + + "kSettings\022,.google.logging.v2.UpdateCmek" + + "SettingsRequest\032\037.google.logging.v2.Cmek" + + "Settings\"l\202\323\344\223\002f2\033/v2/{name=*/*}/cmekSet" + + "tings:\rcmek_settingsZ82\'/v2/{name=organi" + + "zations/*}/cmekSettings:\rcmek_settings\022\216" + + "\002\n\013GetSettings\022%.google.logging.v2.GetSe" + + "ttingsRequest\032\033.google.logging.v2.Settin" + + "gs\"\272\001\332A\004name\202\323\344\223\002\254\001\022\027/v2/{name=*/*}/sett" + + "ingsZ \022\036/v2/{name=projects/*}/settingsZ%" + + "\022#/v2/{name=organizations/*}/settingsZ\037\022" + + "\035/v2/{name=folders/*}/settingsZ\'\022%/v2/{n" + + "ame=billingAccounts/*}/settings\022\366\001\n\016Upda" + + "teSettings\022(.google.logging.v2.UpdateSet" + + "tingsRequest\032\033.google.logging.v2.Setting" + + "s\"\234\001\332A\024settings,update_mask\202\323\344\223\002\1772\027/v2/{" + + "name=*/*}/settings:\010settingsZ/2#/v2/{nam" + + "e=organizations/*}/settings:\010settingsZ)2" + + "\035/v2/{name=folders/*}/settings:\010settings" + + "\022\251\001\n\016CopyLogEntries\022(.google.logging.v2." + + "CopyLogEntriesRequest\032\035.google.longrunni" + + "ng.Operation\"N\312A0\n\026CopyLogEntriesRespons" + + "e\022\026CopyLogEntriesMetadata\202\323\344\223\002\025\"\020/v2/ent" + + "ries:copy:\001*\032\337\001\312A\026logging.googleapis.com" + + "\322A\302\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.readB\326" + + "\003\n\025com.google.logging.v2B\022LoggingConfigP" + + "rotoP\001Z5cloud.google.com/go/logging/apiv" + + "2/loggingpb;loggingpb\370\001\001\252\002\027Google.Cloud." + + "Logging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032G" + + "oogle::Cloud::Logging::V2\352A`\n+logging.go" + + "ogleapis.com/OrganizationLocation\0221organ" + + "izations/{organization}/locations/{locat" + + "ion}\352AN\n%logging.googleapis.com/FolderLo" + + "cation\022%folders/{folder}/locations/{loca" + + "tion}\352Ag\n-logging.googleapis.com/Billing" + + "AccountLocation\0226billingAccounts/{billin" + + "g_account}/locations/{location}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 new file mode 100644 index 000000000..a066df222 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java @@ -0,0 +1,224 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_metrics.proto + +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\"\310\005\n\tLogMetric\022\022\n\004name\030\001 \001(" + + "\tB\004\342A\001\002\022\031\n\013description\030\002 \001(\tB\004\342A\001\001\022\024\n\006fi" + + "lter\030\003 \001(\tB\004\342A\001\002\022\031\n\013bucket_name\030\r \001(\tB\004\342" + + "A\001\001\022\026\n\010disabled\030\014 \001(\010B\004\342A\001\001\022=\n\021metric_de" + + "scriptor\030\005 \001(\0132\034.google.api.MetricDescri" + + "ptorB\004\342A\001\001\022\035\n\017value_extractor\030\006 \001(\tB\004\342A\001" + + "\001\022Q\n\020label_extractors\030\007 \003(\01321.google.log" + + "ging.v2.LogMetric.LabelExtractorsEntryB\004" + + "\342A\001\001\022D\n\016bucket_options\030\010 \001(\0132&.google.ap" + + "i.Distribution.BucketOptionsB\004\342A\001\001\0225\n\013cr" + + "eate_time\030\t \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\0225\n\013update_time\030\n \001(\0132\032.google." + + "protobuf.TimestampB\004\342A\001\003\022<\n\007version\030\004 \001(" + + "\0162\'.google.logging.v2.LogMetric.ApiVersi" + + "onB\002\030\001\0326\n\024LabelExtractorsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\034\n\nApiVersion\022\006\n\002" + + "V2\020\000\022\006\n\002V1\020\001:J\352AG\n logging.googleapis.co" + + "m/LogMetric\022#projects/{project}/metrics/" + + "{metric}\"\220\001\n\025ListLogMetricsRequest\022D\n\006pa" + + "rent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanage" + + "r.googleapis.com/Project\022\030\n\npage_token\030\002" + + " \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"`\n\026L" + + "istLogMetricsResponse\022-\n\007metrics\030\001 \003(\0132\034" + + ".google.logging.v2.LogMetric\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"U\n\023GetLogMetricRequest\022>\n\013" + + "metric_name\030\001 \001(\tB)\342A\001\002\372A\"\n logging.goog" + + "leapis.com/LogMetric\"\207\001\n\026CreateLogMetric" + + "Request\0229\n\006parent\030\001 \001(\tB)\342A\001\002\372A\"\022 loggin" + + "g.googleapis.com/LogMetric\0222\n\006metric\030\002 \001" + + "(\0132\034.google.logging.v2.LogMetricB\004\342A\001\002\"\214" + + "\001\n\026UpdateLogMetricRequest\022>\n\013metric_name" + + "\030\001 \001(\tB)\342A\001\002\372A\"\n logging.googleapis.com/" + + "LogMetric\0222\n\006metric\030\002 \001(\0132\034.google.loggi" + + "ng.v2.LogMetricB\004\342A\001\002\"X\n\026DeleteLogMetric" + + "Request\022>\n\013metric_name\030\001 \001(\tB)\342A\001\002\372A\"\n l" + + "ogging.googleapis.com/LogMetric2\256\010\n\020Metr" + + "icsServiceV2\022\227\001\n\016ListLogMetrics\022(.google" + + ".logging.v2.ListLogMetricsRequest\032).goog" + + "le.logging.v2.ListLogMetricsResponse\"0\332A" + + "\006parent\202\323\344\223\002!\022\037/v2/{parent=projects/*}/m" + + "etrics\022\222\001\n\014GetLogMetric\022&.google.logging" + + ".v2.GetLogMetricRequest\032\034.google.logging" + + ".v2.LogMetric\"<\332A\013metric_name\202\323\344\223\002(\022&/v2" + + "/{metric_name=projects/*/metrics/*}\022\233\001\n\017" + + "CreateLogMetric\022).google.logging.v2.Crea" + + "teLogMetricRequest\032\034.google.logging.v2.L" + + "ogMetric\"?\332A\rparent,metric\202\323\344\223\002)\"\037/v2/{p" + + "arent=projects/*}/metrics:\006metric\022\247\001\n\017Up" + + "dateLogMetric\022).google.logging.v2.Update" + + "LogMetricRequest\032\034.google.logging.v2.Log" + + "Metric\"K\332A\022metric_name,metric\202\323\344\223\0020\032&/v2" + + "/{metric_name=projects/*/metrics/*}:\006met" + + "ric\022\222\001\n\017DeleteLogMetric\022).google.logging" + + ".v2.DeleteLogMetricRequest\032\026.google.prot" + + "obuf.Empty\"<\332A\013metric_name\202\323\344\223\002(*&/v2/{m" + + "etric_name=projects/*/metrics/*}\032\215\002\312A\026lo" + + "gging.googleapis.com\322A\360\001https://www.goog" + + "leapis.com/auth/cloud-platform,https://w" + + "ww.googleapis.com/auth/cloud-platform.re" + + "ad-only,https://www.googleapis.com/auth/" + + "logging.admin,https://www.googleapis.com" + + "/auth/logging.read,https://www.googleapi" + + "s.com/auth/logging.writeB\271\001\n\025com.google." + + "logging.v2B\023LoggingMetricsProtoP\001Z5cloud" + + ".google.com/go/logging/apiv2/loggingpb;l" + + "oggingpb\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027" + + "Google\\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 new file mode 100644 index 000000000..48907c34e --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java @@ -0,0 +1,333 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging.proto + +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\"I\n\020DeleteLogRequest\0225\n\010log_name\030\001 " + + "\001(\tB#\342A\001\002\372A\034\n\032logging.googleapis.com/Log" + + "\"\354\002\n\026WriteLogEntriesRequest\0225\n\010log_name\030" + + "\001 \001(\tB#\342A\001\001\372A\034\n\032logging.googleapis.com/L" + + "og\0225\n\010resource\030\002 \001(\0132\035.google.api.Monito" + + "redResourceB\004\342A\001\001\022K\n\006labels\030\003 \003(\01325.goog" + + "le.logging.v2.WriteLogEntriesRequest.Lab" + + "elsEntryB\004\342A\001\001\0222\n\007entries\030\004 \003(\0132\033.google" + + ".logging.v2.LogEntryB\004\342A\001\002\022\035\n\017partial_su" + + "ccess\030\005 \001(\010B\004\342A\001\001\022\025\n\007dry_run\030\006 \001(\010B\004\342A\001\001" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"\031\n\027WriteLogEntriesResponse\"\310\001\n\034W" + + "riteLogEntriesPartialErrors\022]\n\020log_entry" + + "_errors\030\001 \003(\0132C.google.logging.v2.WriteL" + + "ogEntriesPartialErrors.LogEntryErrorsEnt" + + "ry\032I\n\023LogEntryErrorsEntry\022\013\n\003key\030\001 \001(\005\022!" + + "\n\005value\030\002 \001(\0132\022.google.rpc.Status:\0028\001\"\265\001" + + "\n\025ListLogEntriesRequest\022;\n\016resource_name" + + "s\030\010 \003(\tB#\342A\001\002\372A\034\022\032logging.googleapis.com" + + "/Log\022\024\n\006filter\030\002 \001(\tB\004\342A\001\001\022\026\n\010order_by\030\003" + + " \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\004 \001(\005B\004\342A\001\001\022\030\n\np" + + "age_token\030\005 \001(\tB\004\342A\001\001\"_\n\026ListLogEntriesR" + + "esponse\022,\n\007entries\030\001 \003(\0132\033.google.loggin" + + "g.v2.LogEntry\022\027\n\017next_page_token\030\002 \001(\t\"\\" + + "\n\'ListMonitoredResourceDescriptorsReques" + + "t\022\027\n\tpage_size\030\001 \001(\005B\004\342A\001\001\022\030\n\npage_token" + + "\030\002 \001(\tB\004\342A\001\001\"\212\001\n(ListMonitoredResourceDe" + + "scriptorsResponse\022E\n\024resource_descriptor" + + "s\030\001 \003(\0132\'.google.api.MonitoredResourceDe" + + "scriptor\022\027\n\017next_page_token\030\002 \001(\t\"\266\001\n\017Li" + + "stLogsRequest\0223\n\006parent\030\001 \001(\tB#\342A\001\002\372A\034\022\032" + + "logging.googleapis.com/Log\022;\n\016resource_n" + + "ames\030\010 \003(\tB#\342A\001\001\372A\034\022\032logging.googleapis." + + "com/Log\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + + "_token\030\003 \001(\tB\004\342A\001\001\">\n\020ListLogsResponse\022\021" + + "\n\tlog_names\030\003 \003(\t\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\203\001\n\025TailLogEntriesRequest\022\034\n\016resource" + + "_names\030\001 \003(\tB\004\342A\001\002\022\024\n\006filter\030\002 \001(\tB\004\342A\001\001" + + "\0226\n\rbuffer_window\030\003 \001(\0132\031.google.protobu" + + "f.DurationB\004\342A\001\001\"\337\002\n\026TailLogEntriesRespo" + + "nse\022,\n\007entries\030\001 \003(\0132\033.google.logging.v2" + + ".LogEntry\022S\n\020suppression_info\030\002 \003(\01329.go" + + "ogle.logging.v2.TailLogEntriesResponse.S" + + "uppressionInfo\032\301\001\n\017SuppressionInfo\022P\n\006re" + + "ason\030\001 \001(\0162@.google.logging.v2.TailLogEn" + + "triesResponse.SuppressionInfo.Reason\022\030\n\020" + + "suppressed_count\030\002 \001(\005\"B\n\006Reason\022\026\n\022REAS" + + "ON_UNSPECIFIED\020\000\022\016\n\nRATE_LIMIT\020\001\022\020\n\014NOT_" + + "CONSUMED\020\0022\351\r\n\020LoggingServiceV2\022\223\002\n\tDele" + + "teLog\022#.google.logging.v2.DeleteLogReque" + + "st\032\026.google.protobuf.Empty\"\310\001\332A\010log_name" + + "\202\323\344\223\002\266\001* /v2/{log_name=projects/*/logs/*" + + "}Z\033*\031/v2/{log_name=*/*/logs/*}Z\'*%/v2/{l" + + "og_name=organizations/*/logs/*}Z!*\037/v2/{" + + "log_name=folders/*/logs/*}Z)*\'/v2/{log_n" + + "ame=billingAccounts/*/logs/*}\022\251\001\n\017WriteL" + + "ogEntries\022).google.logging.v2.WriteLogEn" + + "triesRequest\032*.google.logging.v2.WriteLo" + + "gEntriesResponse\"?\332A log_name,resource,l" + + "abels,entries\202\323\344\223\002\026\"\021/v2/entries:write:\001" + + "*\022\243\001\n\016ListLogEntries\022(.google.logging.v2" + + ".ListLogEntriesRequest\032).google.logging." + + "v2.ListLogEntriesResponse\"<\332A\036resource_n" + + "ames,filter,order_by\202\323\344\223\002\025\"\020/v2/entries:" + + "list:\001*\022\305\001\n ListMonitoredResourceDescrip" + + "tors\022:.google.logging.v2.ListMonitoredRe" + + "sourceDescriptorsRequest\032;.google.loggin" + + "g.v2.ListMonitoredResourceDescriptorsRes" + + "ponse\"(\202\323\344\223\002\"\022 /v2/monitoredResourceDesc" + + "riptors\022\213\004\n\010ListLogs\022\".google.logging.v2" + + ".ListLogsRequest\032#.google.logging.v2.Lis" + + "tLogsResponse\"\265\003\332A\006parent\202\323\344\223\002\245\003\022\025/v2/{p" + + "arent=*/*}/logsZ\036\022\034/v2/{parent=projects/" + + "*}/logsZ#\022!/v2/{parent=organizations/*}/" + + "logsZ\035\022\033/v2/{parent=folders/*}/logsZ%\022#/" + + "v2/{parent=billingAccounts/*}/logsZ<\022:/v" + + "2/{parent=projects/*/locations/*/buckets" + + "/*/views/*}/logsZA\022?/v2/{parent=organiza" + + "tions/*/locations/*/buckets/*/views/*}/l" + + "ogsZ;\0229/v2/{parent=folders/*/locations/*" + + "/buckets/*/views/*}/logsZC\022A/v2/{parent=" + + "billingAccounts/*/locations/*/buckets/*/" + + "views/*}/logs\022\206\001\n\016TailLogEntries\022(.googl" + + "e.logging.v2.TailLogEntriesRequest\032).goo" + + "gle.logging.v2.TailLogEntriesResponse\"\033\202" + + "\323\344\223\002\025\"\020/v2/entries:tail:\001*(\0010\001\032\215\002\312A\026logg" + + "ing.googleapis.com\322A\360\001https://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/cloud-platform.read" + + "-only,https://www.googleapis.com/auth/lo" + + "gging.admin,https://www.googleapis.com/a" + + "uth/logging.read,https://www.googleapis." + + "com/auth/logging.writeB\262\001\n\025com.google.lo" + + "gging.v2B\014LoggingProtoP\001Z5cloud.google.c" + + "om/go/logging/apiv2/loggingpb;loggingpb\370" + + "\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Cl" + + "oud\\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.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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java index e97d45281..72bd0c425 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto package com.google.logging.v2; /** - * - * *
  * List of different operation states.
  * High level state of the operation. This is used to report the job's
@@ -31,10 +14,9 @@
  *
  * 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.
    * 
@@ -43,8 +25,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ OPERATION_STATE_UNSPECIFIED(0), /** - * - * *
    * The operation is scheduled.
    * 
@@ -53,8 +33,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ OPERATION_STATE_SCHEDULED(1), /** - * - * *
    * Waiting for necessary permissions.
    * 
@@ -63,8 +41,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ OPERATION_STATE_WAITING_FOR_PERMISSIONS(2), /** - * - * *
    * The operation is running.
    * 
@@ -73,8 +49,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ OPERATION_STATE_RUNNING(3), /** - * - * *
    * The operation was completed successfully.
    * 
@@ -83,8 +57,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ OPERATION_STATE_SUCCEEDED(4), /** - * - * *
    * The operation failed.
    * 
@@ -93,8 +65,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ OPERATION_STATE_FAILED(5), /** - * - * *
    * The operation was cancelled by the user.
    * 
@@ -106,8 +76,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Should not be used.
    * 
@@ -116,8 +84,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The operation is scheduled.
    * 
@@ -126,8 +92,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_STATE_SCHEDULED_VALUE = 1; /** - * - * *
    * Waiting for necessary permissions.
    * 
@@ -136,8 +100,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_STATE_WAITING_FOR_PERMISSIONS_VALUE = 2; /** - * - * *
    * The operation is running.
    * 
@@ -146,8 +108,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_STATE_RUNNING_VALUE = 3; /** - * - * *
    * The operation was completed successfully.
    * 
@@ -156,8 +116,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_STATE_SUCCEEDED_VALUE = 4; /** - * - * *
    * The operation failed.
    * 
@@ -166,8 +124,6 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_STATE_FAILED_VALUE = 5; /** - * - * *
    * The operation was cancelled by the user.
    * 
@@ -176,6 +132,7 @@ public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPERATION_STATE_CANCELLED_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -200,57 +157,53 @@ 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 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< + 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() { 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; @@ -266,3 +219,4 @@ private OperationState(int value) { // @@protoc_insertion_point(enum_scope:google.logging.v2.OperationState) } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationLocationName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OrganizationName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ProjectName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java similarity index 79% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java index 338c0a6b7..62eb5d794 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto package com.google.logging.v2; /** - * - * *
  * Describes the settings associated with a project, folder, organization,
  * billing account, or flexible resource.
@@ -28,16 +11,15 @@
  *
  * 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_ = "";
@@ -47,37 +29,33 @@ 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 @@ -86,29 +64,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 { @@ -117,12 +95,9 @@ public com.google.protobuf.ByteString getNameBytes() { } 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.
    *
@@ -154,7 +129,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The kmsKeyName. */ @java.lang.Override @@ -163,15 +137,14 @@ 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.
    *
@@ -203,15 +176,16 @@ 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 { @@ -220,12 +194,9 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } 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.
@@ -242,7 +213,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
    * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The kmsServiceAccountId. */ @java.lang.Override @@ -251,15 +221,14 @@ 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.
@@ -276,15 +245,16 @@ 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 { @@ -293,12 +263,9 @@ public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() { } 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`.
@@ -306,7 +273,6 @@ public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() {
    * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The storageLocation. */ @java.lang.Override @@ -315,15 +281,14 @@ 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`.
@@ -331,15 +296,16 @@ 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 { @@ -350,8 +316,6 @@ public com.google.protobuf.ByteString getStorageLocationBytes() { 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
@@ -360,7 +324,6 @@ public com.google.protobuf.ByteString getStorageLocationBytes() {
    * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disableDefaultSink. */ @java.lang.Override @@ -369,7 +332,6 @@ public boolean getDisableDefaultSink() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,7 +343,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -419,7 +382,8 @@ 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; @@ -429,18 +393,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.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; } @@ -461,109 +430,106 @@ 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.
@@ -571,31 +537,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -609,9 +577,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
@@ -631,9 +599,7 @@ 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;
     }
@@ -661,39 +627,38 @@ 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;
@@ -751,43 +716,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:
-              {
-                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) {
@@ -797,25 +756,22 @@ 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; @@ -824,21 +780,20 @@ 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 { @@ -846,35 +801,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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() { @@ -884,21 +832,17 @@ 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; @@ -908,8 +852,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -941,13 +883,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -956,8 +898,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -989,14 +929,15 @@ 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 { @@ -1004,8 +945,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -1037,22 +976,18 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
      * 
* * 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.
      *
@@ -1084,7 +1019,6 @@ public Builder setKmsKeyName(java.lang.String value) {
      * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -1094,8 +1028,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -1127,14 +1059,12 @@ 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; @@ -1144,8 +1074,6 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsServiceAccountId_ = ""; /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1162,13 +1090,13 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; @@ -1177,8 +1105,6 @@ public java.lang.String getKmsServiceAccountId() { } } /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1195,14 +1121,15 @@ 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 { @@ -1210,8 +1137,6 @@ public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() { } } /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1228,22 +1153,18 @@ public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() {
      * 
* * 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.
@@ -1260,7 +1181,6 @@ public Builder setKmsServiceAccountId(java.lang.String value) {
      * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearKmsServiceAccountId() { @@ -1270,8 +1190,6 @@ public Builder clearKmsServiceAccountId() { return this; } /** - * - * *
      * Output only. The service account that will be used by the Log Router to
      * access your Cloud KMS key.
@@ -1288,14 +1206,12 @@ 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; @@ -1305,8 +1221,6 @@ public Builder setKmsServiceAccountIdBytes(com.google.protobuf.ByteString value) 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`.
@@ -1314,13 +1228,13 @@ public Builder setKmsServiceAccountIdBytes(com.google.protobuf.ByteString value)
      * 
* * 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; @@ -1329,8 +1243,6 @@ 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`.
@@ -1338,14 +1250,15 @@ 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 { @@ -1353,8 +1266,6 @@ public com.google.protobuf.ByteString getStorageLocationBytes() { } } /** - * - * *
      * Optional. The Cloud region that will be used for _Default and _Required log
      * buckets for newly created projects and folders. For example `europe-west1`.
@@ -1362,22 +1273,18 @@ public com.google.protobuf.ByteString getStorageLocationBytes() {
      * 
* * 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`.
@@ -1385,7 +1292,6 @@ public Builder setStorageLocation(java.lang.String value) {
      * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearStorageLocation() { @@ -1395,8 +1301,6 @@ 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`.
@@ -1404,14 +1308,12 @@ 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; @@ -1419,10 +1321,8 @@ public Builder setStorageLocationBytes(com.google.protobuf.ByteString value) { 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
@@ -1431,7 +1331,6 @@ public Builder setStorageLocationBytes(com.google.protobuf.ByteString value) {
      * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disableDefaultSink. */ @java.lang.Override @@ -1439,8 +1338,6 @@ 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
@@ -1449,7 +1346,6 @@ public boolean getDisableDefaultSink() {
      * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The disableDefaultSink to set. * @return This builder for chaining. */ @@ -1461,8 +1357,6 @@ 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
@@ -1471,7 +1365,6 @@ public Builder setDisableDefaultSink(boolean value) {
      * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisableDefaultSink() { @@ -1480,9 +1373,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); } @@ -1492,12 +1385,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(); } @@ -1506,27 +1399,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; @@ -1541,4 +1434,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.Settings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java similarity index 100% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java similarity index 86% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java index a3ddd4296..c526741b6 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -82,13 +59,10 @@ public interface SettingsOrBuilder
    * 
* * 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.
    *
@@ -120,14 +94,12 @@ public interface SettingsOrBuilder
    * 
* * 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.
@@ -144,13 +116,10 @@ public interface SettingsOrBuilder
    * 
* * 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.
@@ -167,14 +136,12 @@ public interface SettingsOrBuilder
    * 
* * 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`.
@@ -182,13 +149,10 @@ public interface SettingsOrBuilder
    * 
* * 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`.
@@ -196,14 +160,12 @@ public interface SettingsOrBuilder
    * 
* * 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
@@ -212,7 +174,6 @@ public interface SettingsOrBuilder
    * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disableDefaultSink. */ boolean getDisableDefaultSink(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java similarity index 77% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java index a06c2d401..ee8181249 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java @@ -1,76 +1,55 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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); } 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:
    *
@@ -88,15 +67,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * 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:
    *
@@ -114,15 +91,12 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() {
    * 
* * 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:
    *
@@ -140,7 +114,6 @@ 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. */ @@ -148,8 +121,6 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -167,21 +138,18 @@ 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`.
@@ -191,7 +159,6 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -200,15 +167,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Only log entries that match the filter are returned.  An empty
    * filter matches all log entries in the resources listed in `resource_names`.
@@ -218,15 +184,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -237,8 +204,6 @@ public com.google.protobuf.ByteString getFilterBytes() { 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
@@ -246,9 +211,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 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 @@ -256,8 +219,6 @@ public boolean hasBufferWindow() { return bufferWindow_ != null; } /** - * - * *
    * 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
@@ -265,20 +226,14 @@ 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
@@ -286,18 +241,14 @@ 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; @@ -309,7 +260,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < resourceNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceNames_.getRaw(i)); } @@ -340,7 +292,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (bufferWindow_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBufferWindow()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBufferWindow()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -350,19 +303,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.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; @@ -390,141 +345,138 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - resourceNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + resourceNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); filter_ = ""; bufferWindow_ = null; if (bufferWindowBuilder_ != null) { @@ -535,9 +487,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 @@ -556,11 +508,8 @@ 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; } @@ -575,8 +524,9 @@ private void buildPartial0(com.google.logging.v2.TailLogEntriesRequest result) { result.filter_ = filter_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.bufferWindow_ = - bufferWindowBuilder_ == null ? bufferWindow_ : bufferWindowBuilder_.build(); + result.bufferWindow_ = bufferWindowBuilder_ == null + ? bufferWindow_ + : bufferWindowBuilder_.build(); } } @@ -584,39 +534,38 @@ 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; @@ -669,32 +618,30 @@ 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) { @@ -704,12 +651,10 @@ 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_); @@ -717,8 +662,6 @@ private void ensureResourceNamesIsMutable() { bitField0_ |= 0x00000001; } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -736,16 +679,14 @@ 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:
      *
@@ -763,15 +704,12 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() {
      * 
* * 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:
      *
@@ -789,7 +727,6 @@ 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. */ @@ -797,8 +734,6 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -816,16 +751,14 @@ 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:
      *
@@ -843,15 +776,13 @@ public com.google.protobuf.ByteString getResourceNamesBytes(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; @@ -859,8 +790,6 @@ public Builder setResourceNames(int index, java.lang.String value) { return this; } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -878,14 +807,12 @@ public Builder setResourceNames(int index, java.lang.String value) {
      * 
* * 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; @@ -893,8 +820,6 @@ public Builder addResourceNames(java.lang.String value) { return this; } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -912,20 +837,19 @@ public Builder addResourceNames(java.lang.String value) {
      * 
* * 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:
      *
@@ -943,19 +867,16 @@ public Builder addAllResourceNames(java.lang.Iterable values)
      * 
* * 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:
      *
@@ -973,14 +894,12 @@ 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); @@ -991,8 +910,6 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { 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`.
@@ -1002,13 +919,13 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1017,8 +934,6 @@ 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`.
@@ -1028,14 +943,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1043,8 +959,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1054,22 +968,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. Only log entries that match the filter are returned.  An empty
      * filter matches all log entries in the resources listed in `resource_names`.
@@ -1079,7 +989,6 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1089,8 +998,6 @@ 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`.
@@ -1100,14 +1007,12 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000002; @@ -1117,13 +1022,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { 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
@@ -1131,17 +1031,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 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
@@ -1149,23 +1045,17 @@ 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
@@ -1173,8 +1063,7 @@ 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) { @@ -1190,8 +1079,6 @@ 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
@@ -1199,10 +1086,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 { @@ -1213,8 +1100,6 @@ public Builder setBufferWindow(com.google.protobuf.Duration.Builder builderForVa 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
@@ -1222,14 +1107,13 @@ public Builder setBufferWindow(com.google.protobuf.Duration.Builder builderForVa
      * 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; @@ -1242,8 +1126,6 @@ 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
@@ -1251,8 +1133,7 @@ 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); @@ -1265,8 +1146,6 @@ 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
@@ -1274,8 +1153,7 @@ 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; @@ -1283,8 +1161,6 @@ 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
@@ -1292,21 +1168,17 @@ 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
@@ -1314,28 +1186,24 @@ 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); } @@ -1345,12 +1213,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(); } @@ -1359,27 +1227,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; @@ -1394,4 +1262,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.TailLogEntriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java similarity index 84% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java index 46f26659b..a59baa451 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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:
    *
@@ -43,13 +25,11 @@ public interface TailLogEntriesRequestOrBuilder
    * 
* * 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:
    *
@@ -67,13 +47,10 @@ public interface TailLogEntriesRequestOrBuilder
    * 
* * 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:
    *
@@ -91,14 +68,11 @@ public interface TailLogEntriesRequestOrBuilder
    * 
* * 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:
    *
@@ -116,15 +90,13 @@ public interface TailLogEntriesRequestOrBuilder
    * 
* * 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`.
@@ -134,13 +106,10 @@ public interface TailLogEntriesRequestOrBuilder
    * 
* * 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`.
@@ -150,14 +119,12 @@ public interface TailLogEntriesRequestOrBuilder
    * 
* * 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
@@ -165,15 +132,11 @@ public interface TailLogEntriesRequestOrBuilder
    * 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
@@ -181,15 +144,11 @@ public interface TailLogEntriesRequestOrBuilder
    * 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
@@ -197,8 +156,7 @@ public interface TailLogEntriesRequestOrBuilder
    * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java similarity index 72% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java index 74ef3c0cd..5085c2090 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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(); @@ -44,125 +26,107 @@ 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.
        * 
@@ -171,8 +135,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ REASON_UNSPECIFIED(0), /** - * - * *
        * Indicates suppression occurred due to relevant entries being
        * received in excess of rate limits. For quotas and limits, see
@@ -184,8 +146,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
        */
       RATE_LIMIT(1),
       /**
-       *
-       *
        * 
        * Indicates suppression occurred due to the client not consuming
        * responses quickly enough.
@@ -198,8 +158,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Unexpected default.
        * 
@@ -208,8 +166,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum { */ 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
@@ -221,8 +177,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int RATE_LIMIT_VALUE = 1;
       /**
-       *
-       *
        * 
        * Indicates suppression occurred due to the client not consuming
        * responses quickly enough.
@@ -232,6 +186,7 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
        */
       public static final int NOT_CONSUMED_VALUE = 2;
 
+
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -256,51 +211,49 @@ 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);
+              }
+            };
 
-      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() {
+      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;
@@ -320,51 +273,37 @@ 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 @@ -373,7 +312,6 @@ public int getSuppressedCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -385,10 +323,9 @@ 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) { @@ -403,13 +340,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; @@ -419,16 +356,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; } @@ -450,94 +387,89 @@ 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 @@ -547,41 +479,39 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -592,14 +522,13 @@ 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(); } @@ -614,17 +543,13 @@ 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_; @@ -638,41 +563,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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; @@ -680,9 +602,7 @@ 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()); } @@ -715,25 +635,22 @@ 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) { @@ -743,34 +660,26 @@ 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. */ @@ -781,38 +690,28 @@ 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(); } @@ -822,14 +721,11 @@ public Builder setReason( 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() { @@ -839,16 +735,13 @@ 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 @@ -856,14 +749,11 @@ 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. */ @@ -875,14 +765,11 @@ 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() { @@ -891,7 +778,6 @@ public Builder clearSuppressedCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -904,44 +790,41 @@ 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; @@ -953,19 +836,16 @@ 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
@@ -979,8 +859,6 @@ 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
@@ -990,13 +868,11 @@ 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
@@ -1010,8 +886,6 @@ 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
@@ -1025,8 +899,6 @@ 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
@@ -1036,18 +908,15 @@ 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
@@ -1056,17 +925,13 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(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; */ @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
@@ -1075,18 +940,14 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(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; */ @java.lang.Override - public java.util.List< - ? extends com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder> + public java.util.List 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
@@ -1095,16 +956,13 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(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; */ @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
@@ -1113,17 +971,13 @@ 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
@@ -1132,17 +986,15 @@ 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; @@ -1154,7 +1006,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < entries_.size(); i++) { output.writeMessage(1, entries_.get(i)); } @@ -1171,10 +1024,12 @@ 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; @@ -1184,16 +1039,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.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; } @@ -1218,136 +1074,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1370,9 +1222,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 @@ -1391,12 +1243,9 @@ 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; } @@ -1430,39 +1279,38 @@ 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; @@ -1489,10 +1337,9 @@ 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_); } @@ -1516,10 +1363,9 @@ 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_); } @@ -1551,39 +1397,38 @@ 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) { @@ -1593,28 +1438,21 @@ 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
@@ -1631,8 +1469,6 @@ 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
@@ -1649,8 +1485,6 @@ 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
@@ -1667,8 +1501,6 @@ 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
@@ -1677,7 +1509,8 @@ 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();
@@ -1691,8 +1524,6 @@ public Builder setEntries(int index, 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
@@ -1701,7 +1532,8 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry value) {
      *
      * 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());
@@ -1712,8 +1544,6 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder buil
       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
@@ -1736,8 +1566,6 @@ 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
@@ -1746,7 +1574,8 @@ 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();
@@ -1760,8 +1589,6 @@ public Builder addEntries(int index, 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
@@ -1770,7 +1597,8 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry value) {
      *
      * 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());
@@ -1781,8 +1609,6 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue
       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
@@ -1791,7 +1617,8 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue
      *
      * 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());
@@ -1802,8 +1629,6 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder buil
       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
@@ -1816,7 +1641,8 @@ 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);
@@ -1824,8 +1650,6 @@ 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
@@ -1845,8 +1669,6 @@ 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
@@ -1866,8 +1688,6 @@ 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
@@ -1876,12 +1696,11 @@ 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
@@ -1890,16 +1709,14 @@ public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) {
      *
      * 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
@@ -1908,8 +1725,8 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
      *
      * repeated .google.logging.v2.LogEntry entries = 1;
      */
-    public java.util.List
-        getEntriesOrBuilderList() {
+    public java.util.List 
+         getEntriesOrBuilderList() {
       if (entriesBuilder_ != null) {
         return entriesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1917,8 +1734,6 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(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
@@ -1928,12 +1743,10 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
      * 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
@@ -1942,13 +1755,12 @@ 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
@@ -1957,48 +1769,38 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) {
      *
      * 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
@@ -2007,12 +1809,9 @@ 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 { @@ -2020,8 +1819,6 @@ private void ensureSuppressionInfoIsMutable() { } } /** - * - * *
      * 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
@@ -2030,9 +1827,7 @@ 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 int getSuppressionInfoCount() { if (suppressionInfoBuilder_ == null) { @@ -2042,8 +1837,6 @@ 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
@@ -2052,12 +1845,9 @@ 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 { @@ -2065,8 +1855,6 @@ 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
@@ -2075,9 +1863,7 @@ 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) { @@ -2094,8 +1880,6 @@ 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
@@ -2104,13 +1888,10 @@ 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()); @@ -2121,8 +1902,6 @@ 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
@@ -2131,12 +1910,9 @@ 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(); @@ -2150,8 +1926,6 @@ 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
@@ -2160,9 +1934,7 @@ 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 value) { @@ -2179,8 +1951,6 @@ 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
@@ -2189,9 +1959,7 @@ 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) { @@ -2205,8 +1973,6 @@ 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
@@ -2215,13 +1981,10 @@ 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()); @@ -2232,8 +1995,6 @@ 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
@@ -2242,16 +2003,14 @@ 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); @@ -2259,8 +2018,6 @@ 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
@@ -2269,9 +2026,7 @@ 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) { @@ -2284,8 +2039,6 @@ 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
@@ -2294,9 +2047,7 @@ 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) { @@ -2309,8 +2060,6 @@ 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
@@ -2319,17 +2068,13 @@ 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
@@ -2338,21 +2083,16 @@ 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.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
@@ -2361,13 +2101,10 @@ 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 java.util.List< - ? extends com.google.logging.v2.TailLogEntriesResponse.SuppressionInfoOrBuilder> - getSuppressionInfoOrBuilderList() { + public java.util.List + getSuppressionInfoOrBuilderList() { if (suppressionInfoBuilder_ != null) { return suppressionInfoBuilder_.getMessageOrBuilderList(); } else { @@ -2375,8 +2112,6 @@ public Builder removeSuppressionInfo(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
@@ -2385,19 +2120,13 @@ 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 - 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
@@ -2406,20 +2135,14 @@ 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 - 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
@@ -2428,26 +2151,18 @@ 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 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(), @@ -2456,9 +2171,9 @@ public Builder removeSuppressionInfo(int index) { } 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); } @@ -2468,12 +2183,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(); } @@ -2482,27 +2197,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; @@ -2517,4 +2232,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.TailLogEntriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java similarity index 79% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java index 61a73480a..1502fa2ad 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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
@@ -34,10 +16,9 @@ public interface TailLogEntriesResponseOrBuilder
    *
    * 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
@@ -48,8 +29,6 @@ public interface TailLogEntriesResponseOrBuilder
    */
   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
@@ -60,8 +39,6 @@ public interface TailLogEntriesResponseOrBuilder
    */
   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
@@ -70,10 +47,9 @@ public interface TailLogEntriesResponseOrBuilder
    *
    * 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
@@ -82,11 +58,10 @@ public interface TailLogEntriesResponseOrBuilder
    *
    * 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
@@ -95,14 +70,11 @@ public interface TailLogEntriesResponseOrBuilder
    * 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
@@ -111,13 +83,10 @@ public interface TailLogEntriesResponseOrBuilder
    * 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
@@ -126,13 +95,10 @@ public interface TailLogEntriesResponseOrBuilder
    * 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
@@ -141,14 +107,11 @@ public interface TailLogEntriesResponseOrBuilder
    * 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
@@ -157,8 +120,7 @@ public interface TailLogEntriesResponseOrBuilder
    * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java similarity index 67% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java index ef9500024..1051699da 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -82,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"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 @@ -94,15 +69,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the bucket to undelete.
    *
@@ -116,18 +90,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. */ @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 { @@ -136,7 +109,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,7 +120,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -172,15 +145,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; } @@ -199,136 +172,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -338,9 +307,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 @@ -359,11 +328,8 @@ 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; } @@ -379,39 +345,38 @@ 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; @@ -451,19 +416,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -473,13 +436,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -493,16 +453,14 @@ 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; @@ -511,8 +469,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -526,17 +482,16 @@ 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 { @@ -544,8 +499,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -559,25 +512,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"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.
      *
@@ -591,10 +538,7 @@ public Builder setName(java.lang.String value) {
      *   `"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() { @@ -604,8 +548,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -619,26 +561,22 @@ 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); } @@ -648,12 +586,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(); } @@ -662,27 +600,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; @@ -697,4 +635,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UndeleteBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java index b208b2baa..deee3fce2 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -39,16 +21,11 @@ public interface UndeleteBucketRequestOrBuilder
    *   `"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.
    *
@@ -62,11 +39,9 @@ public interface UndeleteBucketRequestOrBuilder
    *   `"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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java index 16597165e..1779b3e5d 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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); } 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.
    *
@@ -82,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"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 @@ -94,15 +69,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the bucket to update.
    *
@@ -116,18 +90,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. */ @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 { @@ -138,14 +111,11 @@ public com.google.protobuf.ByteString getNameBytes() { 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 @@ -153,14 +123,11 @@ public boolean hasBucket() { return bucket_ != null; } /** - * - * *
    * Required. The updated bucket.
    * 
* * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucket. */ @java.lang.Override @@ -168,8 +135,6 @@ public com.google.logging.v2.LogBucket getBucket() { return bucket_ == null ? com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; } /** - * - * *
    * Required. The updated bucket.
    * 
@@ -184,8 +149,6 @@ 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
@@ -197,9 +160,7 @@ 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 @@ -207,8 +168,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * 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
@@ -220,9 +179,7 @@ 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 @@ -230,8 +187,6 @@ 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
@@ -243,8 +198,7 @@ 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() { @@ -252,7 +206,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +217,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -287,10 +241,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (bucket_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBucket()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBucket()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -300,22 +256,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.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; @@ -343,136 +301,132 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -492,9 +446,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 @@ -513,11 +467,8 @@ 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; } @@ -528,10 +479,14 @@ private void buildPartial0(com.google.logging.v2.UpdateBucketRequest result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null + ? bucket_ + : bucketBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -539,39 +494,38 @@ 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; @@ -617,31 +571,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) { @@ -651,13 +605,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the bucket to update.
      *
@@ -671,16 +622,14 @@ 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; @@ -689,8 +638,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the bucket to update.
      *
@@ -704,17 +651,16 @@ 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 { @@ -722,8 +668,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the bucket to update.
      *
@@ -737,25 +681,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"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.
      *
@@ -769,10 +707,7 @@ public Builder setName(java.lang.String value) {
      *   `"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() { @@ -782,8 +717,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the bucket to update.
      *
@@ -797,17 +730,13 @@ 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; @@ -817,35 +746,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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() { @@ -856,14 +774,11 @@ 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) { @@ -879,16 +794,14 @@ 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 { @@ -899,20 +812,17 @@ public Builder setBucket(com.google.logging.v2.LogBucket.Builder builderForValue 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; @@ -925,14 +835,11 @@ 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); @@ -945,14 +852,11 @@ 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; @@ -960,44 +864,36 @@ 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_; @@ -1005,13 +901,8 @@ 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
@@ -1023,17 +914,13 @@ 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
@@ -1045,23 +932,17 @@ 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
@@ -1073,8 +954,7 @@ 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) { @@ -1090,8 +970,6 @@ 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
@@ -1103,10 +981,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 { @@ -1117,8 +995,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal 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
@@ -1130,14 +1006,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * 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; @@ -1150,8 +1025,6 @@ 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
@@ -1163,8 +1036,7 @@ 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); @@ -1177,8 +1049,6 @@ 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
@@ -1190,8 +1060,7 @@ 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; @@ -1199,8 +1068,6 @@ 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
@@ -1212,21 +1079,17 @@ 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
@@ -1238,28 +1101,24 @@ 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); } @@ -1269,12 +1128,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(); } @@ -1283,27 +1142,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; @@ -1318,4 +1177,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateBucketRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java similarity index 76% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java index f32181fdd..1fa69edee 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -39,16 +21,11 @@ public interface UpdateBucketRequestOrBuilder
    *   `"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.
    *
@@ -62,41 +39,31 @@ public interface UpdateBucketRequestOrBuilder
    *   `"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.
    * 
@@ -106,8 +73,6 @@ public interface UpdateBucketRequestOrBuilder 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
@@ -119,15 +84,11 @@ public interface UpdateBucketRequestOrBuilder
    * 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
@@ -139,15 +100,11 @@ public interface UpdateBucketRequestOrBuilder
    * 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
@@ -159,8 +116,7 @@ public interface UpdateBucketRequestOrBuilder
    * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java similarity index 71% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java index d1c88f3f8..697f112e8 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto package com.google.logging.v2; /** - * - * *
  * The parameters to
  * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
@@ -32,48 +15,43 @@
  *
  * 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);
   }
 
   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.
    *
@@ -92,7 +70,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -101,15 +78,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name for the CMEK settings to update.
    *
@@ -128,15 +104,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -147,8 +124,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CMEK_SETTINGS_FIELD_NUMBER = 2; private com.google.logging.v2.CmekSettings cmekSettings_; /** - * - * *
    * Required. The CMEK settings to update.
    *
@@ -157,10 +132,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 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 @@ -168,8 +140,6 @@ public boolean hasCmekSettings() { return cmekSettings_ != null; } /** - * - * *
    * Required. The CMEK settings to update.
    *
@@ -178,21 +148,14 @@ 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.
    *
@@ -201,22 +164,16 @@ 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
@@ -227,9 +184,7 @@ 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 @@ -237,8 +192,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * 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
@@ -249,9 +202,7 @@ 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 @@ -259,8 +210,6 @@ 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
@@ -271,8 +220,7 @@ 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() { @@ -280,7 +228,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -292,7 +239,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -315,10 +263,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (cmekSettings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCmekSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCmekSettings()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -328,22 +278,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.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; @@ -371,104 +323,99 @@ 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].
@@ -480,32 +427,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -525,9 +473,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
@@ -546,11 +494,8 @@ 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;
     }
@@ -561,11 +506,14 @@ private void buildPartial0(com.google.logging.v2.UpdateCmekSettingsRequest resul
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.cmekSettings_ =
-            cmekSettingsBuilder_ == null ? cmekSettings_ : cmekSettingsBuilder_.build();
+        result.cmekSettings_ = cmekSettingsBuilder_ == null
+            ? cmekSettings_
+            : cmekSettingsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
     }
 
@@ -573,39 +521,38 @@ 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;
@@ -613,8 +560,7 @@ 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;
@@ -652,31 +598,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) {
@@ -686,13 +632,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for the CMEK settings to update.
      *
@@ -711,13 +654,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; @@ -726,8 +669,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -746,14 +687,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -761,8 +703,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -781,22 +721,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -815,7 +751,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -825,8 +760,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -845,14 +778,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -862,13 +793,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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.
      *
@@ -877,18 +803,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString 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]; * @return Whether the cmekSettings field is set. */ public boolean hasCmekSettings() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -897,24 +818,17 @@ 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.
      *
@@ -923,9 +837,7 @@ 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) { @@ -941,8 +853,6 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) { return this; } /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -951,11 +861,10 @@ 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 { @@ -966,8 +875,6 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builde return this; } /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -976,15 +883,13 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builde
      * 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; @@ -997,8 +902,6 @@ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) { return this; } /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -1007,9 +910,7 @@ 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); @@ -1022,8 +923,6 @@ public Builder clearCmekSettings() { return this; } /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -1032,9 +931,7 @@ 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; @@ -1042,8 +939,6 @@ public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() { return getCmekSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The CMEK settings to update.
      *
@@ -1052,22 +947,17 @@ 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.
      *
@@ -1076,22 +966,17 @@ 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_; @@ -1099,13 +984,8 @@ 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
@@ -1116,17 +996,13 @@ 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
@@ -1137,23 +1013,17 @@ 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
@@ -1164,8 +1034,7 @@ 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) { @@ -1181,8 +1050,6 @@ 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
@@ -1193,10 +1060,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 { @@ -1207,8 +1074,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal 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
@@ -1219,14 +1084,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * 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; @@ -1239,8 +1103,6 @@ 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
@@ -1251,8 +1113,7 @@ 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); @@ -1265,8 +1126,6 @@ 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
@@ -1277,8 +1136,7 @@ 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; @@ -1286,8 +1144,6 @@ 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
@@ -1298,21 +1154,17 @@ 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
@@ -1323,28 +1175,24 @@ 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); } @@ -1354,12 +1202,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(); } @@ -1368,27 +1216,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; @@ -1403,4 +1251,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.logging.v2.UpdateCmekSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java index 44b2a5d11..a0ac9baf2 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -44,13 +26,10 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * 
* * 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.
    *
@@ -69,14 +48,12 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * 
* * 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.
    *
@@ -85,16 +62,11 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * 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.
    *
@@ -103,16 +75,11 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * 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.
    *
@@ -121,15 +88,11 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * 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
@@ -140,15 +103,11 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * 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
@@ -159,15 +118,11 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * 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
@@ -178,8 +133,7 @@ public interface UpdateCmekSettingsRequestOrBuilder
    * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java similarity index 70% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java index b6b06c234..352e954d5 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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); } 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:
    *
@@ -82,10 +60,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"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 @@ -94,15 +69,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name of the exclusion to update:
    *
@@ -116,18 +90,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. */ @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 { @@ -138,16 +111,12 @@ public com.google.protobuf.ByteString getNameBytes() { 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 @@ -155,47 +124,34 @@ public boolean hasExclusion() { return exclusion_ != null; } /** - * - * *
    * 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
@@ -207,9 +163,7 @@ 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 @@ -217,8 +171,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * 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
@@ -230,9 +182,7 @@ 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 @@ -240,8 +190,6 @@ 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
@@ -253,8 +201,7 @@ 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() { @@ -262,7 +209,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,7 +220,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -297,10 +244,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (exclusion_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExclusion()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -310,22 +259,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.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; @@ -353,136 +304,132 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -502,9 +449,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 @@ -523,11 +470,8 @@ 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; } @@ -538,10 +482,14 @@ private void buildPartial0(com.google.logging.v2.UpdateExclusionRequest result) result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.exclusion_ = exclusionBuilder_ == null ? exclusion_ : exclusionBuilder_.build(); + result.exclusion_ = exclusionBuilder_ == null + ? exclusion_ + : exclusionBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -549,39 +497,38 @@ 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; @@ -627,31 +574,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) { @@ -661,13 +608,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the exclusion to update:
      *
@@ -681,16 +625,14 @@ 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; @@ -699,8 +641,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the exclusion to update:
      *
@@ -714,17 +654,16 @@ 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 { @@ -732,8 +671,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the exclusion to update:
      *
@@ -747,25 +684,19 @@ public com.google.protobuf.ByteString getNameBytes() {
      *   `"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:
      *
@@ -779,10 +710,7 @@ public Builder setName(java.lang.String value) {
      *   `"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() { @@ -792,8 +720,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name of the exclusion to update:
      *
@@ -807,17 +733,13 @@ 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; @@ -827,61 +749,42 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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) { @@ -897,18 +800,15 @@ 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 { @@ -919,22 +819,18 @@ public Builder setExclusion(com.google.logging.v2.LogExclusion.Builder builderFo 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; @@ -947,16 +843,12 @@ 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); @@ -969,16 +861,12 @@ 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; @@ -986,50 +874,38 @@ 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_; @@ -1037,13 +913,8 @@ 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
@@ -1055,17 +926,13 @@ 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
@@ -1077,23 +944,17 @@ 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
@@ -1105,8 +966,7 @@ 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) { @@ -1122,8 +982,6 @@ 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
@@ -1135,10 +993,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 { @@ -1149,8 +1007,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal 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
@@ -1162,14 +1018,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * 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; @@ -1182,8 +1037,6 @@ 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
@@ -1195,8 +1048,7 @@ 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); @@ -1209,8 +1061,6 @@ 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
@@ -1222,8 +1072,7 @@ 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; @@ -1231,8 +1080,6 @@ 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
@@ -1244,21 +1091,17 @@ 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
@@ -1270,28 +1113,24 @@ 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); } @@ -1301,12 +1140,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(); } @@ -1315,27 +1154,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; @@ -1350,4 +1189,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateExclusionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java index 162dde851..b73750c99 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
    *
@@ -39,16 +21,11 @@ public interface UpdateExclusionRequestOrBuilder
    *   `"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:
    *
@@ -62,58 +39,43 @@ public interface UpdateExclusionRequestOrBuilder
    *   `"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
@@ -125,15 +87,11 @@ public interface UpdateExclusionRequestOrBuilder
    * 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
@@ -145,15 +103,11 @@ public interface UpdateExclusionRequestOrBuilder
    * 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
@@ -165,8 +119,7 @@ public interface UpdateExclusionRequestOrBuilder
    * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java similarity index 67% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java index dc0526f6c..07384cb75 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto 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); } 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:
    *
@@ -79,10 +57,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 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 @@ -91,15 +66,14 @@ 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:
    *
@@ -110,18 +84,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. */ @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 { @@ -132,14 +105,11 @@ public com.google.protobuf.ByteString getMetricNameBytes() { 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 @@ -147,14 +117,11 @@ public boolean hasMetric() { return metric_ != null; } /** - * - * *
    * Required. The updated metric.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The metric. */ @java.lang.Override @@ -162,8 +129,6 @@ public com.google.logging.v2.LogMetric getMetric() { return metric_ == null ? com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; } /** - * - * *
    * Required. The updated metric.
    * 
@@ -176,7 +141,6 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,7 +152,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -208,7 +173,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); } if (metric_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetric()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMetric()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -218,18 +184,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; @@ -253,136 +220,132 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -397,9 +360,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 @@ -418,11 +381,8 @@ 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; } @@ -433,7 +393,9 @@ private void buildPartial0(com.google.logging.v2.UpdateLogMetricRequest result) result.metricName_ = metricName_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.metric_ = metricBuilder_ == null ? metric_ : metricBuilder_.build(); + result.metric_ = metricBuilder_ == null + ? metric_ + : metricBuilder_.build(); } } @@ -441,39 +403,38 @@ 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; @@ -516,25 +477,24 @@ 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) { @@ -544,13 +504,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object metricName_ = ""; /** - * - * *
      * Required. The resource name of the metric to update:
      *
@@ -561,16 +518,14 @@ 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; @@ -579,8 +534,6 @@ public java.lang.String getMetricName() { } } /** - * - * *
      * Required. The resource name of the metric to update:
      *
@@ -591,17 +544,16 @@ 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 { @@ -609,8 +561,6 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } } /** - * - * *
      * Required. The resource name of the metric to update:
      *
@@ -621,25 +571,19 @@ public com.google.protobuf.ByteString getMetricNameBytes() {
      * 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:
      *
@@ -650,10 +594,7 @@ public Builder setMetricName(java.lang.String value) {
      * 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() { @@ -663,8 +604,6 @@ public Builder clearMetricName() { return this; } /** - * - * *
      * Required. The resource name of the metric to update:
      *
@@ -675,17 +614,13 @@ 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; @@ -695,35 +630,24 @@ public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { 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() { @@ -734,14 +658,11 @@ 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) { @@ -757,16 +678,14 @@ 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 { @@ -777,20 +696,17 @@ public Builder setMetric(com.google.logging.v2.LogMetric.Builder builderForValue 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; @@ -803,14 +719,11 @@ 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); @@ -823,14 +736,11 @@ 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; @@ -838,51 +748,43 @@ 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); } @@ -892,12 +794,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(); } @@ -906,27 +808,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; @@ -941,4 +843,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateLogMetricRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java index f0b147c75..d10923d64 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_metrics.proto 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:
    *
@@ -36,16 +18,11 @@ public interface UpdateLogMetricRequestOrBuilder
    * 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:
    *
@@ -56,41 +33,31 @@ public interface UpdateLogMetricRequestOrBuilder
    * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java similarity index 73% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java index 122b6a6c9..4727fa160 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto package com.google.logging.v2; /** - * - * *
  * The parameters to
  * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings].
@@ -32,48 +15,43 @@
  *
  * 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);
   }
 
   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.
    *
@@ -89,7 +67,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -98,15 +75,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The resource name for the settings to update.
    *
@@ -122,15 +98,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -141,8 +118,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SETTINGS_FIELD_NUMBER = 2; private com.google.logging.v2.Settings settings_; /** - * - * *
    * Required. The settings to update.
    *
@@ -151,9 +126,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 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 @@ -161,8 +134,6 @@ public boolean hasSettings() { return settings_ != null; } /** - * - * *
    * Required. The settings to update.
    *
@@ -171,9 +142,7 @@ 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 @@ -181,8 +150,6 @@ public com.google.logging.v2.Settings getSettings() { return settings_ == null ? com.google.logging.v2.Settings.getDefaultInstance() : settings_; } /** - * - * *
    * Required. The settings to update.
    *
@@ -191,8 +158,7 @@ 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() { @@ -202,8 +168,6 @@ 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
@@ -214,9 +178,7 @@ 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 @@ -224,8 +186,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * 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
@@ -236,9 +196,7 @@ 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 @@ -246,8 +204,6 @@ 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
@@ -258,8 +214,7 @@ 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() { @@ -267,7 +222,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,7 +233,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -302,10 +257,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (settings_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSettings()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSettings()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -315,22 +272,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.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; @@ -358,104 +317,99 @@ 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].
@@ -467,32 +421,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 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()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -512,9 +467,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
@@ -533,11 +488,8 @@ 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;
     }
@@ -548,10 +500,14 @@ private void buildPartial0(com.google.logging.v2.UpdateSettingsRequest result) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.settings_ = settingsBuilder_ == null ? settings_ : settingsBuilder_.build();
+        result.settings_ = settingsBuilder_ == null
+            ? settings_
+            : settingsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null
+            ? updateMask_
+            : updateMaskBuilder_.build();
       }
     }
 
@@ -559,39 +515,38 @@ 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;
@@ -637,31 +592,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) {
@@ -671,13 +626,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The resource name for the settings to update.
      *
@@ -693,13 +645,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; @@ -708,8 +660,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for the settings to update.
      *
@@ -725,14 +675,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -740,8 +691,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for the settings to update.
      *
@@ -757,22 +706,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the settings to update.
      *
@@ -788,7 +733,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -798,8 +742,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The resource name for the settings to update.
      *
@@ -815,14 +757,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -832,13 +772,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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.
      *
@@ -847,17 +782,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString 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]; * @return Whether the settings field is set. */ public boolean hasSettings() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The settings to update.
      *
@@ -866,9 +797,7 @@ 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() { @@ -879,8 +808,6 @@ public com.google.logging.v2.Settings getSettings() { } } /** - * - * *
      * Required. The settings to update.
      *
@@ -889,8 +816,7 @@ 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) { @@ -906,8 +832,6 @@ public Builder setSettings(com.google.logging.v2.Settings value) { return this; } /** - * - * *
      * Required. The settings to update.
      *
@@ -916,10 +840,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 { @@ -930,8 +854,6 @@ public Builder setSettings(com.google.logging.v2.Settings.Builder builderForValu return this; } /** - * - * *
      * Required. The settings to update.
      *
@@ -940,14 +862,13 @@ public Builder setSettings(com.google.logging.v2.Settings.Builder builderForValu
      * 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; @@ -960,8 +881,6 @@ public Builder mergeSettings(com.google.logging.v2.Settings value) { return this; } /** - * - * *
      * Required. The settings to update.
      *
@@ -970,8 +889,7 @@ 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); @@ -984,8 +902,6 @@ public Builder clearSettings() { return this; } /** - * - * *
      * Required. The settings to update.
      *
@@ -994,8 +910,7 @@ 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; @@ -1003,8 +918,6 @@ public com.google.logging.v2.Settings.Builder getSettingsBuilder() { return getSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The settings to update.
      *
@@ -1013,19 +926,17 @@ 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.
      *
@@ -1034,21 +945,17 @@ 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_; @@ -1056,13 +963,8 @@ 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
@@ -1073,17 +975,13 @@ 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
@@ -1094,23 +992,17 @@ 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
@@ -1121,8 +1013,7 @@ 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) { @@ -1138,8 +1029,6 @@ 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
@@ -1150,10 +1039,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 { @@ -1164,8 +1053,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal 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
@@ -1176,14 +1063,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * 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; @@ -1196,8 +1082,6 @@ 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
@@ -1208,8 +1092,7 @@ 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); @@ -1222,8 +1105,6 @@ 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
@@ -1234,8 +1115,7 @@ 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; @@ -1243,8 +1123,6 @@ 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
@@ -1255,21 +1133,17 @@ 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
@@ -1280,28 +1154,24 @@ 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); } @@ -1311,12 +1181,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(); } @@ -1325,27 +1195,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; @@ -1360,4 +1230,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateSettingsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java similarity index 78% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java index 075d7bc5d..2e6294c74 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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.
    *
@@ -41,13 +23,10 @@ public interface UpdateSettingsRequestOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The resource name for the settings to update.
    *
@@ -63,14 +42,12 @@ public interface UpdateSettingsRequestOrBuilder
    * 
* * 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.
    *
@@ -79,15 +56,11 @@ public interface UpdateSettingsRequestOrBuilder
    * 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.
    *
@@ -96,15 +69,11 @@ public interface UpdateSettingsRequestOrBuilder
    * 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.
    *
@@ -113,14 +82,11 @@ public interface UpdateSettingsRequestOrBuilder
    * 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
@@ -131,15 +97,11 @@ public interface UpdateSettingsRequestOrBuilder
    * 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
@@ -150,15 +112,11 @@ public interface UpdateSettingsRequestOrBuilder
    * 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
@@ -169,8 +127,7 @@ public interface UpdateSettingsRequestOrBuilder
    * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java similarity index 76% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java index 1556a4ade..9863c5c7f 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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); } 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:
@@ -83,10 +61,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *   `"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 @@ -95,15 +70,14 @@ 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:
@@ -118,18 +92,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. */ @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 { @@ -140,15 +113,12 @@ public com.google.protobuf.ByteString getSinkNameBytes() { 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 @@ -156,15 +126,12 @@ public boolean hasSink() { return sink_ != null; } /** - * - * *
    * 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 @@ -172,8 +139,6 @@ 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`.
@@ -189,8 +154,6 @@ 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
@@ -206,7 +169,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -217,8 +179,6 @@ 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
@@ -238,9 +198,7 @@ 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 @@ -248,8 +206,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * 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
@@ -269,9 +225,7 @@ 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 @@ -279,8 +233,6 @@ 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
@@ -300,8 +252,7 @@ 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() { @@ -309,7 +260,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -321,7 +271,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sinkName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sinkName_); } @@ -347,13 +298,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sinkName_); } if (sink_ != null) { - 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 (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -363,22 +317,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; @@ -398,7 +356,8 @@ 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(); @@ -408,136 +367,132 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -558,9 +513,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 @@ -579,11 +534,8 @@ 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; } @@ -594,13 +546,17 @@ private void buildPartial0(com.google.logging.v2.UpdateSinkRequest result) { result.sinkName_ = sinkName_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.sink_ = sinkBuilder_ == null ? sink_ : sinkBuilder_.build(); + result.sink_ = sinkBuilder_ == null + ? sink_ + : sinkBuilder_.build(); } 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(); } } @@ -608,39 +564,38 @@ 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; @@ -689,37 +644,36 @@ 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) { @@ -729,13 +683,10 @@ 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:
@@ -750,16 +701,14 @@ 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; @@ -768,8 +717,6 @@ public java.lang.String getSinkName() { } } /** - * - * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -784,17 +731,16 @@ 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 { @@ -802,8 +748,6 @@ public com.google.protobuf.ByteString getSinkNameBytes() { } } /** - * - * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -818,25 +762,19 @@ public com.google.protobuf.ByteString getSinkNameBytes() {
      *   `"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:
@@ -851,10 +789,7 @@ public Builder setSinkName(java.lang.String value) {
      *   `"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() { @@ -864,8 +799,6 @@ public Builder clearSinkName() { return this; } /** - * - * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -880,17 +813,13 @@ 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; @@ -900,35 +829,26 @@ public Builder setSinkNameBytes(com.google.protobuf.ByteString value) { 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() { @@ -939,8 +859,6 @@ public com.google.logging.v2.LogSink getSink() { } } /** - * - * *
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -962,8 +880,6 @@ 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`.
@@ -971,7 +887,8 @@ 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 {
@@ -982,8 +899,6 @@ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -993,9 +908,9 @@ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) {
      */
     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;
@@ -1008,8 +923,6 @@ 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`.
@@ -1028,8 +941,6 @@ public Builder clearSink() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -1043,8 +954,6 @@ 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`.
@@ -1056,12 +965,11 @@ 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`.
@@ -1070,26 +978,21 @@ 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
@@ -1105,7 +1008,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -1113,8 +1015,6 @@ 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
@@ -1130,7 +1030,6 @@ public boolean getUniqueWriterIdentity() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The uniqueWriterIdentity to set. * @return This builder for chaining. */ @@ -1142,8 +1041,6 @@ 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
@@ -1159,7 +1056,6 @@ public Builder setUniqueWriterIdentity(boolean value) {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUniqueWriterIdentity() { @@ -1171,13 +1067,8 @@ 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
@@ -1197,17 +1088,13 @@ 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
@@ -1227,23 +1114,17 @@ 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
@@ -1263,8 +1144,7 @@ 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) { @@ -1280,8 +1160,6 @@ 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
@@ -1301,10 +1179,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 { @@ -1315,8 +1193,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal 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
@@ -1336,14 +1212,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * 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; @@ -1356,8 +1231,6 @@ 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
@@ -1377,8 +1250,7 @@ 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); @@ -1391,8 +1263,6 @@ 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
@@ -1412,8 +1282,7 @@ 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; @@ -1421,8 +1290,6 @@ 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
@@ -1442,21 +1309,17 @@ 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
@@ -1476,28 +1339,24 @@ 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); } @@ -1507,12 +1366,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(); } @@ -1521,27 +1380,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; @@ -1556,4 +1415,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateSinkRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java similarity index 82% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java index 6b711948b..9569d5787 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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:
@@ -40,16 +22,11 @@ public interface UpdateSinkRequestOrBuilder
    *   `"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:
@@ -64,43 +41,33 @@ public interface UpdateSinkRequestOrBuilder
    *   `"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`.
@@ -111,8 +78,6 @@ public interface UpdateSinkRequestOrBuilder
   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
@@ -128,14 +93,11 @@ public interface UpdateSinkRequestOrBuilder
    * 
* * 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
@@ -155,15 +117,11 @@ public interface UpdateSinkRequestOrBuilder
    * 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
@@ -183,15 +141,11 @@ public interface UpdateSinkRequestOrBuilder
    * 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
@@ -211,8 +165,7 @@ public interface UpdateSinkRequestOrBuilder
    * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java similarity index 73% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java index fd0dbc794..29eade357 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java @@ -1,74 +1,52 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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); } 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
    *
@@ -80,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -89,15 +66,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The full resource name of the view to update
    *
@@ -109,15 +85,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -128,14 +105,11 @@ public com.google.protobuf.ByteString getNameBytes() { 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 @@ -143,14 +117,11 @@ public boolean hasView() { return view_ != null; } /** - * - * *
    * Required. The updated view.
    * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The view. */ @java.lang.Override @@ -158,8 +129,6 @@ public com.google.logging.v2.LogView getView() { return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; } /** - * - * *
    * Required. The updated view.
    * 
@@ -174,8 +143,6 @@ 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
@@ -187,9 +154,7 @@ 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 @@ -197,8 +162,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask that specifies the fields in `view` that need
    * an update. A field will be overwritten if, and only if, it is
@@ -210,9 +173,7 @@ 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 @@ -220,8 +181,6 @@ 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
@@ -233,8 +192,7 @@ 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() { @@ -242,7 +200,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,7 +211,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -277,10 +235,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (view_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getView()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getView()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -290,21 +250,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.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; @@ -332,136 +295,132 @@ 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +440,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 @@ -502,11 +461,8 @@ 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; } @@ -517,10 +473,14 @@ private void buildPartial0(com.google.logging.v2.UpdateViewRequest result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.view_ = viewBuilder_ == null ? view_ : viewBuilder_.build(); + result.view_ = viewBuilder_ == null + ? view_ + : viewBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } } @@ -528,39 +488,38 @@ 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; @@ -606,31 +565,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) { @@ -640,13 +599,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the view to update
      *
@@ -658,13 +614,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,8 +629,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the view to update
      *
@@ -686,14 +640,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -701,8 +656,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the view to update
      *
@@ -714,22 +667,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the view to update
      *
@@ -741,7 +690,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -751,8 +699,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The full resource name of the view to update
      *
@@ -764,14 +710,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -781,33 +725,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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() { @@ -818,8 +753,6 @@ public com.google.logging.v2.LogView getView() { } } /** - * - * *
      * Required. The updated view.
      * 
@@ -840,15 +773,14 @@ 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 { @@ -859,8 +791,6 @@ public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { return this; } /** - * - * *
      * Required. The updated view.
      * 
@@ -869,9 +799,9 @@ public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { */ 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; @@ -884,8 +814,6 @@ public Builder mergeView(com.google.logging.v2.LogView value) { return this; } /** - * - * *
      * Required. The updated view.
      * 
@@ -903,8 +831,6 @@ public Builder clearView() { return this; } /** - * - * *
      * Required. The updated view.
      * 
@@ -917,8 +843,6 @@ public com.google.logging.v2.LogView.Builder getViewBuilder() { return getViewFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated view.
      * 
@@ -929,12 +853,11 @@ 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.
      * 
@@ -942,17 +865,14 @@ 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_; @@ -960,13 +880,8 @@ 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
@@ -978,17 +893,13 @@ 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
@@ -1000,23 +911,17 @@ 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
@@ -1028,8 +933,7 @@ 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) { @@ -1045,8 +949,6 @@ 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
@@ -1058,10 +960,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 { @@ -1072,8 +974,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal 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
@@ -1085,14 +985,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * 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; @@ -1105,8 +1004,6 @@ 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
@@ -1118,8 +1015,7 @@ 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); @@ -1132,8 +1028,6 @@ 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
@@ -1145,8 +1039,7 @@ 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; @@ -1154,8 +1047,6 @@ 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
@@ -1167,21 +1058,17 @@ 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
@@ -1193,28 +1080,24 @@ 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); } @@ -1224,12 +1107,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(); } @@ -1238,27 +1121,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; @@ -1273,4 +1156,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.UpdateViewRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java similarity index 79% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java index d0a1df19e..fd470d4d2 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging_config.proto 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
    *
@@ -37,13 +19,10 @@ public interface UpdateViewRequestOrBuilder
    * 
* * 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
    *
@@ -55,38 +34,30 @@ public interface UpdateViewRequestOrBuilder
    * 
* * 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.
    * 
@@ -96,8 +67,6 @@ public interface UpdateViewRequestOrBuilder 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
@@ -109,15 +78,11 @@ public interface UpdateViewRequestOrBuilder
    * 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
@@ -129,15 +94,11 @@ public interface UpdateViewRequestOrBuilder
    * 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
@@ -149,8 +110,7 @@ public interface UpdateViewRequestOrBuilder
    * 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java similarity index 66% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java index 5439c4491..3434230da 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java @@ -1,109 +1,86 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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 - defaultEntry = + static final com.google.protobuf.MapEntry< + java.lang.Integer, com.google.rpc.Status> 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 logEntryErrors_; - + private com.google.protobuf.MapField< + java.lang.Integer, com.google.rpc.Status> 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
@@ -116,19 +93,20 @@ 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
@@ -145,8 +123,6 @@ 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
@@ -159,18 +135,17 @@ 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
@@ -183,7 +158,8 @@ public java.util.Map getLogEntryErrors
    * 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();
@@ -194,7 +170,6 @@ public com.google.rpc.Status getLogEntryErrorsOrThrow(int key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -206,9 +181,14 @@ 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);
   }
 
@@ -218,15 +198,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;
@@ -236,15 +216,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;
   }
@@ -266,155 +246,153 @@ 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"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -424,9 +402,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 @@ -445,11 +423,8 @@ 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; } @@ -466,39 +441,38 @@ 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; @@ -506,9 +480,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(); @@ -536,26 +510,21 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.MapEntry - logEntryErrors__ = - input.readMessage( - LogEntryErrorsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLogEntryErrors() - .getMutableMap() - .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().getMutableMap().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) { @@ -565,11 +534,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.MapField logEntryErrors_; - + private com.google.protobuf.MapField< + java.lang.Integer, com.google.rpc.Status> logEntryErrors_; private com.google.protobuf.MapField internalGetLogEntryErrors() { if (logEntryErrors_ == null) { @@ -578,12 +546,11 @@ public Builder mergeFrom( } return logEntryErrors_; } - private com.google.protobuf.MapField internalGetMutableLogEntryErrors() { if (logEntryErrors_ == null) { - logEntryErrors_ = - com.google.protobuf.MapField.newMapField(LogEntryErrorsDefaultEntryHolder.defaultEntry); + logEntryErrors_ = com.google.protobuf.MapField.newMapField( + LogEntryErrorsDefaultEntryHolder.defaultEntry); } if (!logEntryErrors_.isMutable()) { logEntryErrors_ = logEntryErrors_.copy(); @@ -592,13 +559,10 @@ public Builder mergeFrom( onChanged(); 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
@@ -611,19 +575,20 @@ 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
@@ -640,8 +605,6 @@ 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
@@ -654,18 +617,17 @@ 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
@@ -678,7 +640,8 @@ public java.util.Map getLogEntryErrors
      * 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();
@@ -687,15 +650,13 @@ public com.google.rpc.Status getLogEntryErrorsOrThrow(int key) {
       }
       return map.get(key);
     }
-
     public Builder clearLogEntryErrors() {
       bitField0_ = (bitField0_ & ~0x00000001);
-      internalGetMutableLogEntryErrors().getMutableMap().clear();
+      internalGetMutableLogEntryErrors().getMutableMap()
+          .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
@@ -707,20 +668,23 @@ public Builder clearLogEntryErrors() {
      *
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
-    public Builder removeLogEntryErrors(int key) {
+    public Builder removeLogEntryErrors(
+        int key) {
 
-      internalGetMutableLogEntryErrors().getMutableMap().remove(key);
+      internalGetMutableLogEntryErrors().getMutableMap()
+          .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().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -732,18 +696,17 @@ public java.util.Map getMutableLogEntr
      *
      * 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().getMutableMap().put(key, value);
+      if (value == null) { throw new NullPointerException("map value"); }
+      internalGetMutableLogEntryErrors().getMutableMap()
+          .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
@@ -757,13 +720,14 @@ public Builder putLogEntryErrors(int key, com.google.rpc.Status value) {
      */
     public Builder putAllLogEntryErrors(
         java.util.Map values) {
-      internalGetMutableLogEntryErrors().getMutableMap().putAll(values);
+      internalGetMutableLogEntryErrors().getMutableMap()
+          .putAll(values);
       bitField0_ |= 0x00000001;
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -773,12 +737,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();
   }
@@ -787,27 +751,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;
@@ -822,4 +786,6 @@ public com.google.protobuf.Parser getParserForType
   public com.google.logging.v2.WriteLogEntriesPartialErrors getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java
similarity index 69%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java
index 16470c27f..6035ebfe4 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrorsOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/logging.proto
 
 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
@@ -39,8 +21,6 @@ public interface WriteLogEntriesPartialErrorsOrBuilder
    */
   int getLogEntryErrorsCount();
   /**
-   *
-   *
    * 
    * When `WriteLogEntriesRequest.partial_success` is true, records the error
    * status for entries that were not written due to a permanent error, keyed
@@ -52,13 +32,15 @@ public interface WriteLogEntriesPartialErrorsOrBuilder
    *
    * 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
@@ -70,10 +52,9 @@ public interface WriteLogEntriesPartialErrorsOrBuilder
    *
    * 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
@@ -86,13 +67,11 @@ public interface WriteLogEntriesPartialErrorsOrBuilder
    * 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
@@ -104,5 +83,6 @@ 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/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
similarity index 79%
rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
index 14547ef7a..1f7ab845e 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
+++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2023 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/logging/v2/logging.proto
 
 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(); @@ -44,43 +26,40 @@ 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"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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); } 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`:
@@ -101,10 +80,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * 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 @@ -113,15 +89,14 @@ 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`:
@@ -142,18 +117,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. */ @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 { @@ -164,8 +138,6 @@ public com.google.protobuf.ByteString getLogNameBytes() { 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:
@@ -177,9 +149,7 @@ public com.google.protobuf.ByteString getLogNameBytes() {
    * 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 @@ -187,8 +157,6 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Optional. A default monitored resource object that is assigned to all log
    * entries in `entries` that do not specify a value for `resource`. Example:
@@ -200,9 +168,7 @@ 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 @@ -210,8 +176,6 @@ 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:
@@ -223,8 +187,7 @@ 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() { @@ -232,34 +195,32 @@ 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 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< + 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, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * 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
@@ -270,21 +231,20 @@ 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
@@ -299,8 +259,6 @@ 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
@@ -311,19 +269,17 @@ 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
@@ -334,11 +290,11 @@ public java.util.Map getLabelsMap() {
    * 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();
     }
@@ -346,12 +302,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   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
@@ -379,17 +332,13 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 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
@@ -417,18 +366,14 @@ 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
@@ -456,17 +401,13 @@ 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
@@ -494,17 +435,13 @@ 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
@@ -532,20 +469,17 @@ 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
@@ -557,7 +491,6 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
    * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The partialSuccess. */ @java.lang.Override @@ -568,8 +501,6 @@ 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
@@ -577,7 +508,6 @@ public boolean getPartialSuccess() {
    * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The dryRun. */ @java.lang.Override @@ -586,7 +516,6 @@ public boolean getDryRun() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -598,15 +527,20 @@ public final boolean isInitialized() { } @java.lang.Override - public 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 (resource_ != null) { 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)); } @@ -629,26 +563,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, logName_); } if (resource_ != null) { - 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; @@ -658,23 +596,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -701,164 +644,164 @@ 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"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { 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.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { 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() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -883,9 +826,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 @@ -904,12 +847,9 @@ 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; } @@ -932,7 +872,9 @@ private void buildPartial0(com.google.logging.v2.WriteLogEntriesRequest result) result.logName_ = logName_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null + ? resource_ + : resourceBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.labels_ = internalGetLabels(); @@ -950,39 +892,38 @@ 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; @@ -999,7 +940,8 @@ 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()) { @@ -1019,10 +961,9 @@ 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_); } @@ -1060,61 +1001,56 @@ 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) { @@ -1124,13 +1060,10 @@ 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`:
@@ -1151,16 +1084,14 @@ 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; @@ -1169,8 +1100,6 @@ 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`:
@@ -1191,17 +1120,16 @@ 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 { @@ -1209,8 +1137,6 @@ public com.google.protobuf.ByteString getLogNameBytes() { } } /** - * - * *
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
@@ -1231,25 +1157,19 @@ public com.google.protobuf.ByteString getLogNameBytes() {
      * 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`:
@@ -1270,10 +1190,7 @@ public Builder setLogName(java.lang.String value) {
      * 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() { @@ -1283,8 +1200,6 @@ 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`:
@@ -1305,17 +1220,13 @@ 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; @@ -1325,13 +1236,8 @@ public Builder setLogNameBytes(com.google.protobuf.ByteString value) { 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:
@@ -1343,17 +1249,13 @@ public Builder setLogNameBytes(com.google.protobuf.ByteString 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]; * @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:
@@ -1365,23 +1267,17 @@ 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:
@@ -1393,8 +1289,7 @@ 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) { @@ -1410,8 +1305,6 @@ 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:
@@ -1423,10 +1316,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 { @@ -1437,8 +1330,6 @@ public Builder setResource(com.google.api.MonitoredResource.Builder builderForVa 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:
@@ -1450,14 +1341,13 @@ public Builder setResource(com.google.api.MonitoredResource.Builder builderForVa
      * 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; @@ -1470,8 +1360,6 @@ 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:
@@ -1483,8 +1371,7 @@ 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); @@ -1497,8 +1384,6 @@ 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:
@@ -1510,8 +1395,7 @@ 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; @@ -1519,8 +1403,6 @@ 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:
@@ -1532,21 +1414,17 @@ 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:
@@ -1558,39 +1436,37 @@ 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 labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1599,13 +1475,10 @@ private com.google.protobuf.MapField interna 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
@@ -1616,21 +1489,20 @@ 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
@@ -1645,8 +1517,6 @@ 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
@@ -1657,19 +1527,17 @@ 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
@@ -1680,25 +1548,23 @@ public java.util.Map getLabelsMap() {
      * 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
@@ -1708,22 +1574,23 @@ 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
@@ -1733,20 +1600,17 @@ public java.util.Map getMutableLabels() {
      *
      * 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
@@ -1756,31 +1620,27 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      *
      * 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
@@ -1808,9 +1668,7 @@ 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) { @@ -1820,8 +1678,6 @@ 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
@@ -1849,9 +1705,7 @@ 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) { @@ -1861,8 +1715,6 @@ 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
@@ -1890,9 +1742,7 @@ 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) { @@ -1902,8 +1752,6 @@ 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
@@ -1931,11 +1779,10 @@ 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(); @@ -1949,8 +1796,6 @@ public Builder setEntries(int index, 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
@@ -1978,11 +1823,10 @@ public Builder setEntries(int index, 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 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()); @@ -1993,8 +1837,6 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder buil 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
@@ -2022,9 +1864,7 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder buil
      * 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) { @@ -2040,8 +1880,6 @@ 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
@@ -2069,11 +1907,10 @@ 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(); @@ -2087,8 +1924,6 @@ public Builder addEntries(int index, 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
@@ -2116,11 +1951,10 @@ public Builder addEntries(int index, 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(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()); @@ -2131,8 +1965,6 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue 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
@@ -2160,11 +1992,10 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue
      * 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()); @@ -2175,8 +2006,6 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder buil 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
@@ -2204,15 +2033,14 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder buil
      * 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); @@ -2220,8 +2048,6 @@ 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
@@ -2249,9 +2075,7 @@ 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) { @@ -2264,8 +2088,6 @@ 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
@@ -2293,9 +2115,7 @@ 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) { @@ -2308,8 +2128,6 @@ 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
@@ -2337,16 +2155,13 @@ 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
@@ -2374,20 +2189,16 @@ public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(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.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
@@ -2415,12 +2226,10 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(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 java.util.List - getEntriesOrBuilderList() { + public java.util.List + getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { @@ -2428,8 +2237,6 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(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
@@ -2457,17 +2264,13 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(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 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
@@ -2495,17 +2298,14 @@ 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
@@ -2533,35 +2333,29 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(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 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
@@ -2573,7 +2367,6 @@ public java.util.List getEntriesBuilderL
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The partialSuccess. */ @java.lang.Override @@ -2581,8 +2374,6 @@ 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
@@ -2594,7 +2385,6 @@ public boolean getPartialSuccess() {
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The partialSuccess to set. * @return This builder for chaining. */ @@ -2606,8 +2396,6 @@ 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
@@ -2619,7 +2407,6 @@ public Builder setPartialSuccess(boolean value) {
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPartialSuccess() { @@ -2629,10 +2416,8 @@ 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
@@ -2640,7 +2425,6 @@ public Builder clearPartialSuccess() {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The dryRun. */ @java.lang.Override @@ -2648,8 +2432,6 @@ 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
@@ -2657,7 +2439,6 @@ public boolean getDryRun() {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The dryRun to set. * @return This builder for chaining. */ @@ -2669,8 +2450,6 @@ 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
@@ -2678,7 +2457,6 @@ public Builder setDryRun(boolean value) {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDryRun() { @@ -2687,9 +2465,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); } @@ -2699,12 +2477,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(); } @@ -2713,27 +2491,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; @@ -2748,4 +2526,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.WriteLogEntriesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java similarity index 85% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java index b2e3ce509..e7873f958 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/logging.proto 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`:
@@ -46,16 +28,11 @@ public interface WriteLogEntriesRequestOrBuilder
    * 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`:
@@ -76,17 +53,13 @@ public interface WriteLogEntriesRequestOrBuilder
    * 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:
@@ -98,15 +71,11 @@ public interface WriteLogEntriesRequestOrBuilder
    * 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:
@@ -118,15 +87,11 @@ public interface WriteLogEntriesRequestOrBuilder
    * 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:
@@ -138,14 +103,11 @@ public interface WriteLogEntriesRequestOrBuilder
    * 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
@@ -157,8 +119,6 @@ public interface WriteLogEntriesRequestOrBuilder
    */
   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
@@ -168,13 +128,15 @@ public interface WriteLogEntriesRequestOrBuilder
    *
    * 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
@@ -184,10 +146,9 @@ public interface WriteLogEntriesRequestOrBuilder
    *
    * 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
@@ -198,13 +159,11 @@ public interface WriteLogEntriesRequestOrBuilder
    * 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
@@ -214,11 +173,10 @@ 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
@@ -246,14 +204,11 @@ java.lang.String getLabelsOrDefault(
    * 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
@@ -281,14 +236,10 @@ java.lang.String getLabelsOrDefault(
    * 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
@@ -316,14 +267,10 @@ java.lang.String getLabelsOrDefault(
    * 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
@@ -351,14 +298,11 @@ java.lang.String getLabelsOrDefault(
    * 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
@@ -386,15 +330,12 @@ java.lang.String getLabelsOrDefault(
    * 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
@@ -406,14 +347,11 @@ java.lang.String getLabelsOrDefault(
    * 
* * 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
@@ -421,7 +359,6 @@ java.lang.String getLabelsOrDefault(
    * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The dryRun. */ boolean getDryRun(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java similarity index 62% rename from proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java index 4bc74d21e..5d51014a7 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java @@ -1,67 +1,48 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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 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; @@ -73,7 +54,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -91,13 +73,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; @@ -115,136 +96,132 @@ 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) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -252,9 +229,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 @@ -273,8 +250,7 @@ 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; } @@ -283,39 +259,38 @@ 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; @@ -350,13 +325,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -366,9 +340,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); } @@ -378,12 +352,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(); } @@ -392,27 +366,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; @@ -427,4 +401,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.WriteLogEntriesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 000000000..f034c806d --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging.proto + +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/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto similarity index 100% rename from proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto diff --git a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto similarity index 100% rename from proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto diff --git a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto similarity index 100% rename from proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto diff --git a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto similarity index 100% rename from proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto rename to owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto 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 deleted file mode 100644 index 5b45dd4c9..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -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/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 deleted file mode 100644 index c55aad33d..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_metrics.proto - -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/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 deleted file mode 100644 index 3cafd0a42..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -package com.google.logging.v2; - -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:
-   *
-   *     "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 full resource name of the view to delete:
-   *
-   *     "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/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 deleted file mode 100644 index 394edb8ba..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_metrics.proto - -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/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 deleted file mode 100644 index e8f18f0a7..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -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/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 deleted file mode 100644 index d7a241f1f..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -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/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 deleted file mode 100644 index fcd3d1088..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/log_entry.proto - -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\"\221\010\n\010LogEntry\022\026\n\010log_name\030\014 \001(\tB\004\342A\001\002\0225" - + "\n\010resource\030\010 \001(\0132\035.google.api.MonitoredR" - + "esourceB\004\342A\001\002\022-\n\rproto_payload\030\002 \001(\0132\024.g" - + "oogle.protobuf.AnyH\000\022\026\n\014text_payload\030\003 \001" - + "(\tH\000\022/\n\014json_payload\030\006 \001(\0132\027.google.prot" - + "obuf.StructH\000\0223\n\ttimestamp\030\t \001(\0132\032.googl" - + "e.protobuf.TimestampB\004\342A\001\001\022;\n\021receive_ti" - + "mestamp\030\030 \001(\0132\032.google.protobuf.Timestam" - + "pB\004\342A\001\003\0228\n\010severity\030\n \001(\0162 .google.loggi" - + "ng.type.LogSeverityB\004\342A\001\001\022\027\n\tinsert_id\030\004" - + " \001(\tB\004\342A\001\001\022<\n\014http_request\030\007 \001(\0132 .googl" - + "e.logging.type.HttpRequestB\004\342A\001\001\022=\n\006labe" - + "ls\030\013 \003(\0132\'.google.logging.v2.LogEntry.La" - + "belsEntryB\004\342A\001\001\022=\n\toperation\030\017 \001(\0132$.goo" - + "gle.logging.v2.LogEntryOperationB\004\342A\001\001\022\023" - + "\n\005trace\030\026 \001(\tB\004\342A\001\001\022\025\n\007span_id\030\033 \001(\tB\004\342A" - + "\001\001\022\033\n\rtrace_sampled\030\036 \001(\010B\004\342A\001\001\022H\n\017sourc" - + "e_location\030\027 \001(\0132).google.logging.v2.Log" - + "EntrySourceLocationB\004\342A\001\001\0220\n\005split\030# \001(\013" - + "2\033.google.logging.v2.LogSplitB\004\342A\001\001\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001:\275\001\352A\271\001\n\032logging.googleapis.com/Log\022\035p" - + "rojects/{project}/logs/{log}\022\'organizati" - + "ons/{organization}/logs/{log}\022\033folders/{" - + "folder}/logs/{log}\022,billingAccounts/{bil" - + "ling_account}/logs/{log}\032\010log_nameB\t\n\007pa" - + "yload\"f\n\021LogEntryOperation\022\020\n\002id\030\001 \001(\tB\004" - + "\342A\001\001\022\026\n\010producer\030\002 \001(\tB\004\342A\001\001\022\023\n\005first\030\003 " - + "\001(\010B\004\342A\001\001\022\022\n\004last\030\004 \001(\010B\004\342A\001\001\"X\n\026LogEntr" - + "ySourceLocation\022\022\n\004file\030\001 \001(\tB\004\342A\001\001\022\022\n\004l" - + "ine\030\002 \001(\003B\004\342A\001\001\022\026\n\010function\030\003 \001(\tB\004\342A\001\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(\005B\263\001\n\025com.google.log" - + "ging.v2B\rLogEntryProtoP\001Z5cloud.google.c" - + "om/go/logging/apiv2/loggingpb;loggingpb\370" - + "\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Cl" - + "oud\\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.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/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 deleted file mode 100644 index c27ef122c..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java +++ /dev/null @@ -1,1251 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -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\"\220\001\n\013IndexCon" - + "fig\022\030\n\nfield_path\030\001 \001(\tB\004\342A\001\002\0220\n\004type\030\002 " - + "\001(\0162\034.google.logging.v2.IndexTypeB\004\342A\001\002\022" - + "5\n\013create_time\030\003 \001(\0132\032.google.protobuf.T" - + "imestampB\004\342A\001\003\"\331\005\n\tLogBucket\022\022\n\004name\030\001 \001" - + "(\tB\004\342A\001\003\022\023\n\013description\030\003 \001(\t\0225\n\013create_" - + "time\030\004 \001(\0132\032.google.protobuf.TimestampB\004" - + "\342A\001\003\0225\n\013update_time\030\005 \001(\0132\032.google.proto" - + "buf.TimestampB\004\342A\001\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" - + "\004\342A\001\003\022\031\n\021analytics_enabled\030\016 \001(\010\022\031\n\021rest" - + "ricted_fields\030\017 \003(\t\0225\n\rindex_configs\030\021 \003" - + "(\0132\036.google.logging.v2.IndexConfig\0226\n\rcm" - + "ek_settings\030\023 \001(\0132\037.google.logging.v2.Cm" - + "ekSettings:\245\002\352A\241\002\n logging.googleapis.co" - + "m/LogBucket\0228projects/{project}/location" - + "s/{location}/buckets/{bucket}\022Borganizat" - + "ions/{organization}/locations/{location}" - + "/buckets/{bucket}\0226folders/{folder}/loca" - + "tions/{location}/buckets/{bucket}\022Gbilli" - + "ngAccounts/{billing_account}/locations/{" - + "location}/buckets/{bucket}\"\204\004\n\007LogView\022\014" - + "\n\004name\030\001 \001(\t\022\023\n\013description\030\003 \001(\t\0225\n\013cre" - + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" - + "mpB\004\342A\001\003\0225\n\013update_time\030\005 \001(\0132\032.google.p" - + "rotobuf.TimestampB\004\342A\001\003\022\016\n\006filter\030\007 \001(\t:" - + "\327\002\352A\323\002\n\036logging.googleapis.com/LogView\022E" - + "projects/{project}/locations/{location}/" - + "buckets/{bucket}/views/{view}\022Oorganizat" - + "ions/{organization}/locations/{location}" - + "/buckets/{bucket}/views/{view}\022Cfolders/" - + "{folder}/locations/{location}/buckets/{b" - + "ucket}/views/{view}\022TbillingAccounts/{bi" - + "lling_account}/locations/{location}/buck" - + "ets/{bucket}/views/{view}\"\220\006\n\007LogSink\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\002\022\037\n\013destination\030\003 \001(\tB\n" - + "\342A\001\002\372A\003\n\001*\022\024\n\006filter\030\005 \001(\tB\004\342A\001\001\022\031\n\013desc" - + "ription\030\022 \001(\tB\004\342A\001\001\022\026\n\010disabled\030\023 \001(\010B\004\342" - + "A\001\001\0229\n\nexclusions\030\020 \003(\0132\037.google.logging" - + ".v2.LogExclusionB\004\342A\001\001\022K\n\025output_version" - + "_format\030\006 \001(\0162(.google.logging.v2.LogSin" - + "k.VersionFormatB\002\030\001\022\035\n\017writer_identity\030\010" - + " \001(\tB\004\342A\001\003\022\036\n\020include_children\030\t \001(\010B\004\342A" - + "\001\001\022D\n\020bigquery_options\030\014 \001(\0132\".google.lo" - + "gging.v2.BigQueryOptionsB\004\342A\001\001H\000\0225\n\013crea" - + "te_time\030\r \001(\0132\032.google.protobuf.Timestam" - + "pB\004\342A\001\003\0225\n\013update_time\030\016 \001(\0132\032.google.pr" - + "otobuf.TimestampB\004\342A\001\003\"?\n\rVersionFormat\022" - + "\036\n\032VERSION_FORMAT_UNSPECIFIED\020\000\022\006\n\002V2\020\001\022" - + "\006\n\002V1\020\002:\277\001\352A\273\001\n\036logging.googleapis.com/L" - + "ogSink\022\037projects/{project}/sinks/{sink}\022" - + ")organizations/{organization}/sinks/{sin" - + "k}\022\035folders/{folder}/sinks/{sink}\022.billi" - + "ngAccounts/{billing_account}/sinks/{sink" - + "}B\t\n\007options\"+\n\017BigQueryDataset\022\030\n\ndatas" - + "et_id\030\001 \001(\tB\004\342A\001\003\"\267\004\n\004Link\022\014\n\004name\030\001 \001(\t" - + "\022\023\n\013description\030\002 \001(\t\0225\n\013create_time\030\003 \001" - + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022@\n\017" - + "lifecycle_state\030\004 \001(\0162!.google.logging.v" - + "2.LifecycleStateB\004\342A\001\003\022<\n\020bigquery_datas" - + "et\030\005 \001(\0132\".google.logging.v2.BigQueryDat" - + "aset:\324\002\352A\320\002\n\033logging.googleapis.com/Link" - + "\022Eprojects/{project}/locations/{location" - + "}/buckets/{bucket}/links/{link}\022Oorganiz" - + "ations/{organization}/locations/{locatio" - + "n}/buckets/{bucket}/links/{link}\022Cfolder" - + "s/{folder}/locations/{location}/buckets/" - + "{bucket}/links/{link}\022TbillingAccounts/{" - + "billing_account}/locations/{location}/bu" - + "ckets/{bucket}/links/{link}\"i\n\017BigQueryO" - + "ptions\022$\n\026use_partitioned_tables\030\001 \001(\010B\004" - + "\342A\001\001\0220\n\"uses_timestamp_column_partitioni" - + "ng\030\003 \001(\010B\004\342A\001\003\"\202\001\n\022ListBucketsRequest\0229\n" - + "\006parent\030\001 \001(\tB)\342A\001\002\372A\"\022 logging.googleap" - + "is.com/LogBucket\022\030\n\npage_token\030\002 \001(\tB\004\342A" - + "\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"]\n\023ListBucke" - + "tsResponse\022-\n\007buckets\030\001 \003(\0132\034.google.log" - + "ging.v2.LogBucket\022\027\n\017next_page_token\030\002 \001" - + "(\t\"\235\001\n\023CreateBucketRequest\0229\n\006parent\030\001 \001" - + "(\tB)\342A\001\002\372A\"\022 logging.googleapis.com/LogB" - + "ucket\022\027\n\tbucket_id\030\002 \001(\tB\004\342A\001\002\0222\n\006bucket" - + "\030\003 \001(\0132\034.google.logging.v2.LogBucketB\004\342A" - + "\001\002\"\271\001\n\023UpdateBucketRequest\0227\n\004name\030\001 \001(\t" - + "B)\342A\001\002\372A\"\n logging.googleapis.com/LogBuc" - + "ket\0222\n\006bucket\030\002 \001(\0132\034.google.logging.v2." - + "LogBucketB\004\342A\001\002\0225\n\013update_mask\030\004 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\004\342A\001\002\"K\n\020GetBuc" - + "ketRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n loggi" - + "ng.googleapis.com/LogBucket\"N\n\023DeleteBuc" - + "ketRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n loggi" - + "ng.googleapis.com/LogBucket\"P\n\025UndeleteB" - + "ucketRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n log" - + "ging.googleapis.com/LogBucket\"[\n\020ListVie" - + "wsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\030\n\npage_" - + "token\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A" - + "\001\001\"W\n\021ListViewsResponse\022)\n\005views\030\001 \003(\0132\032" - + ".google.logging.v2.LogView\022\027\n\017next_page_" - + "token\030\002 \001(\t\"p\n\021CreateViewRequest\022\024\n\006pare" - + "nt\030\001 \001(\tB\004\342A\001\002\022\025\n\007view_id\030\002 \001(\tB\004\342A\001\002\022.\n" - + "\004view\030\003 \001(\0132\032.google.logging.v2.LogViewB" - + "\004\342A\001\002\"\216\001\n\021UpdateViewRequest\022\022\n\004name\030\001 \001(" - + "\tB\004\342A\001\002\022.\n\004view\030\002 \001(\0132\032.google.logging.v" - + "2.LogViewB\004\342A\001\002\0225\n\013update_mask\030\004 \001(\0132\032.g" - + "oogle.protobuf.FieldMaskB\004\342A\001\001\"G\n\016GetVie" - + "wRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036logging" - + ".googleapis.com/LogView\"J\n\021DeleteViewReq" - + "uest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036logging.goo" - + "gleapis.com/LogView\"~\n\020ListSinksRequest\022" - + "7\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036logging.google" - + "apis.com/LogSink\022\030\n\npage_token\030\002 \001(\tB\004\342A" - + "\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"W\n\021ListSinks" - + "Response\022)\n\005sinks\030\001 \003(\0132\032.google.logging" - + ".v2.LogSink\022\027\n\017next_page_token\030\002 \001(\t\"L\n\016" - + "GetSinkRequest\022:\n\tsink_name\030\001 \001(\tB\'\342A\001\002\372" - + "A \n\036logging.googleapis.com/LogSink\"\242\001\n\021C" - + "reateSinkRequest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A" - + " \022\036logging.googleapis.com/LogSink\022.\n\004sin" - + "k\030\002 \001(\0132\032.google.logging.v2.LogSinkB\004\342A\001" - + "\002\022$\n\026unique_writer_identity\030\003 \001(\010B\004\342A\001\001\"" - + "\334\001\n\021UpdateSinkRequest\022:\n\tsink_name\030\001 \001(\t" - + "B\'\342A\001\002\372A \n\036logging.googleapis.com/LogSin" - + "k\022.\n\004sink\030\002 \001(\0132\032.google.logging.v2.LogS" - + "inkB\004\342A\001\002\022$\n\026unique_writer_identity\030\003 \001(" - + "\010B\004\342A\001\001\0225\n\013update_mask\030\004 \001(\0132\032.google.pr" - + "otobuf.FieldMaskB\004\342A\001\001\"O\n\021DeleteSinkRequ" - + "est\022:\n\tsink_name\030\001 \001(\tB\'\342A\001\002\372A \n\036logging" - + ".googleapis.com/LogSink\"\215\001\n\021CreateLinkRe" - + "quest\0224\n\006parent\030\001 \001(\tB$\342A\001\002\372A\035\022\033logging." - + "googleapis.com/Link\022+\n\004link\030\002 \001(\0132\027.goog" - + "le.logging.v2.LinkB\004\342A\001\002\022\025\n\007link_id\030\003 \001(" - + "\tB\004\342A\001\002\"G\n\021DeleteLinkRequest\0222\n\004name\030\001 \001" - + "(\tB$\342A\001\002\372A\035\n\033logging.googleapis.com/Link" - + "\"{\n\020ListLinksRequest\0224\n\006parent\030\001 \001(\tB$\342A" - + "\001\002\372A\035\022\033logging.googleapis.com/Link\022\030\n\npa" - + "ge_token\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B" - + "\004\342A\001\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\"D\n\016GetLinkRequest\0222\n\004name\030\001 " - + "\001(\tB$\342A\001\002\372A\035\n\033logging.googleapis.com/Lin" - + "k\"\310\003\n\014LogExclusion\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022\031" - + "\n\013description\030\002 \001(\tB\004\342A\001\001\022\024\n\006filter\030\003 \001(" - + "\tB\004\342A\001\002\022\026\n\010disabled\030\004 \001(\010B\004\342A\001\001\0225\n\013creat" - + "e_time\030\005 \001(\0132\032.google.protobuf.Timestamp" - + "B\004\342A\001\003\0225\n\013update_time\030\006 \001(\0132\032.google.pro" - + "tobuf.TimestampB\004\342A\001\003:\354\001\352A\350\001\n#logging.go" - + "ogleapis.com/LogExclusion\022)projects/{pro" - + "ject}/exclusions/{exclusion}\0223organizati" - + "ons/{organization}/exclusions/{exclusion" - + "}\022\'folders/{folder}/exclusions/{exclusio" - + "n}\0228billingAccounts/{billing_account}/ex" - + "clusions/{exclusion}\"\210\001\n\025ListExclusionsR" - + "equest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\022#logging" - + ".googleapis.com/LogExclusion\022\030\n\npage_tok" - + "en\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"" - + "f\n\026ListExclusionsResponse\0223\n\nexclusions\030" - + "\001 \003(\0132\037.google.logging.v2.LogExclusion\022\027" - + "\n\017next_page_token\030\002 \001(\t\"Q\n\023GetExclusionR" - + "equest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.g" - + "oogleapis.com/LogExclusion\"\220\001\n\026CreateExc" - + "lusionRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\022#" - + "logging.googleapis.com/LogExclusion\0228\n\te" - + "xclusion\030\002 \001(\0132\037.google.logging.v2.LogEx" - + "clusionB\004\342A\001\002\"\305\001\n\026UpdateExclusionRequest" - + "\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.googlea" - + "pis.com/LogExclusion\0228\n\texclusion\030\002 \001(\0132" - + "\037.google.logging.v2.LogExclusionB\004\342A\001\002\0225" - + "\n\013update_mask\030\003 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\004\342A\001\002\"T\n\026DeleteExclusionRequest\022" - + ":\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.googleap" - + "is.com/LogExclusion\"T\n\026GetCmekSettingsRe" - + "quest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.go" - + "ogleapis.com/CmekSettings\"\244\001\n\031UpdateCmek" - + "SettingsRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022<\n\rc" - + "mek_settings\030\002 \001(\0132\037.google.logging.v2.C" - + "mekSettingsB\004\342A\001\002\0225\n\013update_mask\030\003 \001(\0132\032" - + ".google.protobuf.FieldMaskB\004\342A\001\001\"\277\002\n\014Cme" - + "kSettings\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014kms_key" - + "_name\030\002 \001(\t\022\034\n\024kms_key_version_name\030\004 \001(" - + "\t\022 \n\022service_account_id\030\003 \001(\tB\004\342A\001\003:\304\001\352A" - + "\300\001\n#logging.googleapis.com/CmekSettings\022" - + "\037projects/{project}/cmekSettings\022)organi" - + "zations/{organization}/cmekSettings\022\035fol" - + "ders/{folder}/cmekSettings\022.billingAccou" - + "nts/{billing_account}/cmekSettings\"L\n\022Ge" - + "tSettingsRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n" - + "\037logging.googleapis.com/Settings\"\227\001\n\025Upd" - + "ateSettingsRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0223" - + "\n\010settings\030\002 \001(\0132\033.google.logging.v2.Set" - + "tingsB\004\342A\001\002\0225\n\013update_mask\030\003 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\004\342A\001\001\"\327\002\n\010Settings\022" - + "\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\032\n\014kms_key_name\030\002 \001(" - + "\tB\004\342A\001\001\022$\n\026kms_service_account_id\030\003 \001(\tB" - + "\004\342A\001\003\022\036\n\020storage_location\030\004 \001(\tB\004\342A\001\001\022\"\n" - + "\024disable_default_sink\030\005 \001(\010B\004\342A\001\001:\260\001\352A\254\001" - + "\n\037logging.googleapis.com/Settings\022\033proje" - + "cts/{project}/settings\022%organizations/{o" - + "rganization}/settings\022\031folders/{folder}/" - + "settings\022*billingAccounts/{billing_accou" - + "nt}/settings\"\\\n\025CopyLogEntriesRequest\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\002\022\024\n\006filter\030\003 \001(\tB\004\342A\001\001\022" - + "\031\n\013destination\030\004 \001(\tB\004\342A\001\002\"\256\002\n\026CopyLogEn" - + "triesMetadata\022.\n\nstart_time\030\001 \001(\0132\032.goog" - + "le.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132" - + "\032.google.protobuf.Timestamp\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.CopyLogEntrie" - + "sRequest\022\020\n\010progress\030\006 \001(\005\022\027\n\017writer_ide" - + "ntity\030\007 \001(\t\":\n\026CopyLogEntriesResponse\022 \n" - + "\030log_entries_copied_count\030\001 \001(\003\"\275\002\n\016Buck" - + "etMetadata\022.\n\nstart_time\030\001 \001(\0132\032.google." - + "protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\0220\n\005state\030\003 \001(\0162" - + "!.google.logging.v2.OperationState\022G\n\025cr" - + "eate_bucket_request\030\004 \001(\0132&.google.loggi" - + "ng.v2.CreateBucketRequestH\000\022G\n\025update_bu" - + "cket_request\030\005 \001(\0132&.google.logging.v2.U" - + "pdateBucketRequestH\000B\t\n\007request\"\263\002\n\014Link" - + "Metadata\022.\n\nstart_time\030\001 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\0220\n\005state\030\003 \001(\0162!." - + "google.logging.v2.OperationState\022C\n\023crea" - + "te_link_request\030\004 \001(\0132$.google.logging.v" - + "2.CreateLinkRequestH\000\022C\n\023delete_link_req" - + "uest\030\005 \001(\0132$.google.logging.v2.DeleteLin" - + "kRequestH\000B\t\n\007request\"1\n\020LocationMetadat" - + "a\022\035\n\025log_analytics_enabled\030\001 \001(\010*\364\001\n\016Ope" - + "rationState\022\037\n\033OPERATION_STATE_UNSPECIFI" - + "ED\020\000\022\035\n\031OPERATION_STATE_SCHEDULED\020\001\022+\n\'O" - + "PERATION_STATE_WAITING_FOR_PERMISSIONS\020\002" - + "\022\033\n\027OPERATION_STATE_RUNNING\020\003\022\035\n\031OPERATI" - + "ON_STATE_SUCCEEDED\020\004\022\032\n\026OPERATION_STATE_" - + "FAILED\020\005\022\035\n\031OPERATION_STATE_CANCELLED\020\006*" - + "{\n\016LifecycleState\022\037\n\033LIFECYCLE_STATE_UNS" - + "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\024\n\020DELETE_REQUEST" - + "ED\020\002\022\014\n\010UPDATING\020\003\022\014\n\010CREATING\020\004\022\n\n\006FAIL" - + "ED\020\005*V\n\tIndexType\022\032\n\026INDEX_TYPE_UNSPECIF" - + "IED\020\000\022\025\n\021INDEX_TYPE_STRING\020\001\022\026\n\022INDEX_TY" - + "PE_INTEGER\020\0022\237Y\n\017ConfigServiceV2\022\334\002\n\013Lis" - + "tBuckets\022%.google.logging.v2.ListBuckets" - + "Request\032&.google.logging.v2.ListBucketsR" - + "esponse\"\375\001\332A\006parent\202\323\344\223\002\355\001\022$/v2/{parent=" - + "*/*/locations/*}/bucketsZ-\022+/v2/{parent=" - + "projects/*/locations/*}/bucketsZ2\0220/v2/{" - + "parent=organizations/*/locations/*}/buck" - + "etsZ,\022*/v2/{parent=folders/*/locations/*" - + "}/bucketsZ4\0222/v2/{parent=billingAccounts" - + "/*/locations/*}/buckets\022\305\002\n\tGetBucket\022#." - + "google.logging.v2.GetBucketRequest\032\034.goo" - + "gle.logging.v2.LogBucket\"\364\001\202\323\344\223\002\355\001\022$/v2/" - + "{name=*/*/locations/*/buckets/*}Z-\022+/v2/" - + "{name=projects/*/locations/*/buckets/*}Z" - + "2\0220/v2/{name=organizations/*/locations/*" - + "/buckets/*}Z,\022*/v2/{name=folders/*/locat" - + "ions/*/buckets/*}Z4\0222/v2/{name=billingAc" - + "counts/*/locations/*/buckets/*}\022\323\003\n\021Crea" - + "teBucketAsync\022&.google.logging.v2.Create" - + "BucketRequest\032\035.google.longrunning.Opera" - + "tion\"\366\002\312A\033\n\tLogBucket\022\016BucketMetadata\202\323\344" - + "\223\002\321\002\"0/v2/{parent=*/*/locations/*}/bucke" - + "ts:createAsync:\006bucketZA\"7/v2/{parent=pr" - + "ojects/*/locations/*}/buckets:createAsyn" - + "c:\006bucketZF\"/v2/{pare" - + "nt=billingAccounts/*/locations/*}/bucket" - + "s:createAsync:\006bucket\022\323\003\n\021UpdateBucketAs" - + "ync\022&.google.logging.v2.UpdateBucketRequ" - + "est\032\035.google.longrunning.Operation\"\366\002\312A\033" - + "\n\tLogBucket\022\016BucketMetadata\202\323\344\223\002\321\002\"0/v2/" - + "{name=*/*/locations/*/buckets/*}:updateA" - + "sync:\006bucketZA\"7/v2/{name=projects/*/loc" - + "ations/*/buckets/*}:updateAsync:\006bucketZ" - + "F\"/v2/{name=billingAc" - + "counts/*/locations/*/buckets/*}:updateAs" - + "ync:\006bucket\022\363\002\n\014CreateBucket\022&.google.lo" - + "gging.v2.CreateBucketRequest\032\034.google.lo" - + "gging.v2.LogBucket\"\234\002\202\323\344\223\002\225\002\"$/v2/{paren" - + "t=*/*/locations/*}/buckets:\006bucketZ5\"+/v" - + "2/{parent=projects/*/locations/*}/bucket" - + "s:\006bucketZ:\"0/v2/{parent=organizations/*" - + "/locations/*}/buckets:\006bucketZ4\"*/v2/{pa" - + "rent=folders/*/locations/*}/buckets:\006buc" - + "ketZ<\"2/v2/{parent=billingAccounts/*/loc" - + "ations/*}/buckets:\006bucket\022\363\002\n\014UpdateBuck" - + "et\022&.google.logging.v2.UpdateBucketReque" - + "st\032\034.google.logging.v2.LogBucket\"\234\002\202\323\344\223\002" - + "\225\0022$/v2/{name=*/*/locations/*/buckets/*}" - + ":\006bucketZ52+/v2/{name=projects/*/locatio" - + "ns/*/buckets/*}:\006bucketZ:20/v2/{name=org" - + "anizations/*/locations/*/buckets/*}:\006buc" - + "ketZ42*/v2/{name=folders/*/locations/*/b" - + "uckets/*}:\006bucketZ<22/v2/{name=billingAc" - + "counts/*/locations/*/buckets/*}:\006bucket\022" - + "\305\002\n\014DeleteBucket\022&.google.logging.v2.Del" - + "eteBucketRequest\032\026.google.protobuf.Empty" - + "\"\364\001\202\323\344\223\002\355\001*$/v2/{name=*/*/locations/*/bu" - + "ckets/*}Z-*+/v2/{name=projects/*/locatio" - + "ns/*/buckets/*}Z2*0/v2/{name=organizatio" - + "ns/*/locations/*/buckets/*}Z,**/v2/{name" - + "=folders/*/locations/*/buckets/*}Z4*2/v2" - + "/{name=billingAccounts/*/locations/*/buc" - + "kets/*}\022\205\003\n\016UndeleteBucket\022(.google.logg" - + "ing.v2.UndeleteBucketRequest\032\026.google.pr" - + "otobuf.Empty\"\260\002\202\323\344\223\002\251\002\"-/v2/{name=*/*/lo" - + "cations/*/buckets/*}:undelete:\001*Z9\"4/v2/" - + "{name=projects/*/locations/*/buckets/*}:" - + "undelete:\001*Z>\"9/v2/{name=organizations/*" - + "/locations/*/buckets/*}:undelete:\001*Z8\"3/" - + "v2/{name=folders/*/locations/*/buckets/*" - + "}:undelete:\001*Z@\";/v2/{name=billingAccoun" - + "ts/*/locations/*/buckets/*}:undelete:\001*\022" - + "\376\002\n\tListViews\022#.google.logging.v2.ListVi" - + "ewsRequest\032$.google.logging.v2.ListViews" - + "Response\"\245\002\332A\006parent\202\323\344\223\002\225\002\022,/v2/{parent" - + "=*/*/locations/*/buckets/*}/viewsZ5\0223/v2" - + "/{parent=projects/*/locations/*/buckets/" - + "*}/viewsZ:\0228/v2/{parent=organizations/*/" - + "locations/*/buckets/*}/viewsZ4\0222/v2/{par" - + "ent=folders/*/locations/*/buckets/*}/vie" - + "wsZ<\022:/v2/{parent=billingAccounts/*/loca" - + "tions/*/buckets/*}/views\022\347\002\n\007GetView\022!.g" - + "oogle.logging.v2.GetViewRequest\032\032.google" - + ".logging.v2.LogView\"\234\002\202\323\344\223\002\225\002\022,/v2/{name" - + "=*/*/locations/*/buckets/*/views/*}Z5\0223/" - + "v2/{name=projects/*/locations/*/buckets/" - + "*/views/*}Z:\0228/v2/{name=organizations/*/" - + "locations/*/buckets/*/views/*}Z4\0222/v2/{n" - + "ame=folders/*/locations/*/buckets/*/view" - + "s/*}Z<\022:/v2/{name=billingAccounts/*/loca" - + "tions/*/buckets/*/views/*}\022\213\003\n\nCreateVie" - + "w\022$.google.logging.v2.CreateViewRequest\032" - + "\032.google.logging.v2.LogView\"\272\002\202\323\344\223\002\263\002\",/" - + "v2/{parent=*/*/locations/*/buckets/*}/vi" - + "ews:\004viewZ;\"3/v2/{parent=projects/*/loca" - + "tions/*/buckets/*}/views:\004viewZ@\"8/v2/{p" - + "arent=organizations/*/locations/*/bucket" - + "s/*}/views:\004viewZ:\"2/v2/{parent=folders/" - + "*/locations/*/buckets/*}/views:\004viewZB\":" - + "/v2/{parent=billingAccounts/*/locations/" - + "*/buckets/*}/views:\004view\022\213\003\n\nUpdateView\022" - + "$.google.logging.v2.UpdateViewRequest\032\032." - + "google.logging.v2.LogView\"\272\002\202\323\344\223\002\263\0022,/v2" - + "/{name=*/*/locations/*/buckets/*/views/*" - + "}:\004viewZ;23/v2/{name=projects/*/location" - + "s/*/buckets/*/views/*}:\004viewZ@28/v2/{nam" - + "e=organizations/*/locations/*/buckets/*/" - + "views/*}:\004viewZ:22/v2/{name=folders/*/lo" - + "cations/*/buckets/*/views/*}:\004viewZB2:/v" - + "2/{name=billingAccounts/*/locations/*/bu" - + "ckets/*/views/*}:\004view\022\351\002\n\nDeleteView\022$." - + "google.logging.v2.DeleteViewRequest\032\026.go" - + "ogle.protobuf.Empty\"\234\002\202\323\344\223\002\225\002*,/v2/{name" - + "=*/*/locations/*/buckets/*/views/*}Z5*3/" - + "v2/{name=projects/*/locations/*/buckets/" - + "*/views/*}Z:*8/v2/{name=organizations/*/" - + "locations/*/buckets/*/views/*}Z4*2/v2/{n" - + "ame=folders/*/locations/*/buckets/*/view" - + "s/*}Z<*:/v2/{name=billingAccounts/*/loca" - + "tions/*/buckets/*/views/*}\022\220\002\n\tListSinks" - + "\022#.google.logging.v2.ListSinksRequest\032$." - + "google.logging.v2.ListSinksResponse\"\267\001\332A" - + "\006parent\202\323\344\223\002\247\001\022\026/v2/{parent=*/*}/sinksZ\037" - + "\022\035/v2/{parent=projects/*}/sinksZ$\022\"/v2/{" - + "parent=organizations/*}/sinksZ\036\022\034/v2/{pa" - + "rent=folders/*}/sinksZ&\022$/v2/{parent=bil" - + "lingAccounts/*}/sinks\022\236\002\n\007GetSink\022!.goog" - + "le.logging.v2.GetSinkRequest\032\032.google.lo" - + "gging.v2.LogSink\"\323\001\332A\tsink_name\202\323\344\223\002\300\001\022\033" - + "/v2/{sink_name=*/*/sinks/*}Z$\022\"/v2/{sink" - + "_name=projects/*/sinks/*}Z)\022\'/v2/{sink_n" - + "ame=organizations/*/sinks/*}Z#\022!/v2/{sin" - + "k_name=folders/*/sinks/*}Z+\022)/v2/{sink_n" - + "ame=billingAccounts/*/sinks/*}\022\253\002\n\nCreat" - + "eSink\022$.google.logging.v2.CreateSinkRequ" - + "est\032\032.google.logging.v2.LogSink\"\332\001\332A\013par" - + "ent,sink\202\323\344\223\002\305\001\"\026/v2/{parent=*/*}/sinks:" - + "\004sinkZ%\"\035/v2/{parent=projects/*}/sinks:\004" - + "sinkZ*\"\"/v2/{parent=organizations/*}/sin" - + "ks:\004sinkZ$\"\034/v2/{parent=folders/*}/sinks" - + ":\004sinkZ,\"$/v2/{parent=billingAccounts/*}" - + "/sinks:\004sink\022\237\004\n\nUpdateSink\022$.google.log" - + "ging.v2.UpdateSinkRequest\032\032.google.loggi" - + "ng.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/*}:\004sinkZ*\032\"/v2/{sink_na" - + "me=projects/*/sinks/*}:\004sinkZ/\032\'/v2/{sin" - + "k_name=organizations/*/sinks/*}:\004sinkZ)\032", - "!/v2/{sink_name=folders/*/sinks/*}:\004sink" - + "Z1\032)/v2/{sink_name=billingAccounts/*/sin" - + "ks/*}:\004sinkZ*2\"/v2/{sink_name=projects/*" - + "/sinks/*}:\004sinkZ/2\'/v2/{sink_name=organi" - + "zations/*/sinks/*}:\004sinkZ)2!/v2/{sink_na" - + "me=folders/*/sinks/*}:\004sinkZ12)/v2/{sink" - + "_name=billingAccounts/*/sinks/*}:\004sink\022\240" - + "\002\n\nDeleteSink\022$.google.logging.v2.Delete" - + "SinkRequest\032\026.google.protobuf.Empty\"\323\001\332A" - + "\tsink_name\202\323\344\223\002\300\001*\033/v2/{sink_name=*/*/si" - + "nks/*}Z$*\"/v2/{sink_name=projects/*/sink" - + "s/*}Z)*\'/v2/{sink_name=organizations/*/s" - + "inks/*}Z#*!/v2/{sink_name=folders/*/sink" - + "s/*}Z+*)/v2/{sink_name=billingAccounts/*" - + "/sinks/*}\022\273\003\n\nCreateLink\022$.google.loggin" - + "g.v2.CreateLinkRequest\032\035.google.longrunn" - + "ing.Operation\"\347\002\312A\024\n\004Link\022\014LinkMetadata\332" - + "A\023parent,link,link_id\202\323\344\223\002\263\002\",/v2/{paren" - + "t=*/*/locations/*/buckets/*}/links:\004link" - + "Z;\"3/v2/{parent=projects/*/locations/*/b" - + "uckets/*}/links:\004linkZ@\"8/v2/{parent=org" - + "anizations/*/locations/*/buckets/*}/link" - + "s:\004linkZ:\"2/v2/{parent=folders/*/locatio" - + "ns/*/buckets/*}/links:\004linkZB\":/v2/{pare" - + "nt=billingAccounts/*/locations/*/buckets" - + "/*}/links:\004link\022\237\003\n\nDeleteLink\022$.google." - + "logging.v2.DeleteLinkRequest\032\035.google.lo" - + "ngrunning.Operation\"\313\002\312A%\n\025google.protob" - + "uf.Empty\022\014LinkMetadata\332A\004name\202\323\344\223\002\225\002*,/v" - + "2/{name=*/*/locations/*/buckets/*/links/" - + "*}Z5*3/v2/{name=projects/*/locations/*/b" - + "uckets/*/links/*}Z:*8/v2/{name=organizat" - + "ions/*/locations/*/buckets/*/links/*}Z4*" - + "2/v2/{name=folders/*/locations/*/buckets" - + "/*/links/*}Z<*:/v2/{name=billingAccounts" - + "/*/locations/*/buckets/*/links/*}\022\376\002\n\tLi" - + "stLinks\022#.google.logging.v2.ListLinksReq" - + "uest\032$.google.logging.v2.ListLinksRespon" - + "se\"\245\002\332A\006parent\202\323\344\223\002\225\002\022,/v2/{parent=*/*/l" - + "ocations/*/buckets/*}/linksZ5\0223/v2/{pare" - + "nt=projects/*/locations/*/buckets/*}/lin" - + "ksZ:\0228/v2/{parent=organizations/*/locati" - + "ons/*/buckets/*}/linksZ4\0222/v2/{parent=fo" - + "lders/*/locations/*/buckets/*}/linksZ<\022:" - + "/v2/{parent=billingAccounts/*/locations/" - + "*/buckets/*}/links\022\353\002\n\007GetLink\022!.google." - + "logging.v2.GetLinkRequest\032\027.google.loggi" - + "ng.v2.Link\"\243\002\332A\004name\202\323\344\223\002\225\002\022,/v2/{name=*" - + "/*/locations/*/buckets/*/links/*}Z5\0223/v2" - + "/{name=projects/*/locations/*/buckets/*/" - + "links/*}Z:\0228/v2/{name=organizations/*/lo" - + "cations/*/buckets/*/links/*}Z4\0222/v2/{nam" - + "e=folders/*/locations/*/buckets/*/links/" - + "*}Z<\022:/v2/{name=billingAccounts/*/locati" - + "ons/*/buckets/*/links/*}\022\270\002\n\016ListExclusi" - + "ons\022(.google.logging.v2.ListExclusionsRe" - + "quest\032).google.logging.v2.ListExclusions" - + "Response\"\320\001\332A\006parent\202\323\344\223\002\300\001\022\033/v2/{parent" - + "=*/*}/exclusionsZ$\022\"/v2/{parent=projects" - + "/*}/exclusionsZ)\022\'/v2/{parent=organizati" - + "ons/*}/exclusionsZ#\022!/v2/{parent=folders" - + "/*}/exclusionsZ+\022)/v2/{parent=billingAcc" - + "ounts/*}/exclusions\022\250\002\n\014GetExclusion\022&.g" - + "oogle.logging.v2.GetExclusionRequest\032\037.g" - + "oogle.logging.v2.LogExclusion\"\316\001\332A\004name\202" - + "\323\344\223\002\300\001\022\033/v2/{name=*/*/exclusions/*}Z$\022\"/" - + "v2/{name=projects/*/exclusions/*}Z)\022\'/v2" - + "/{name=organizations/*/exclusions/*}Z#\022!" - + "/v2/{name=folders/*/exclusions/*}Z+\022)/v2" - + "/{name=billingAccounts/*/exclusions/*}\022\361" - + "\002\n\017CreateExclusion\022).google.logging.v2.C" - + "reateExclusionRequest\032\037.google.logging.v" - + "2.LogExclusion\"\221\002\332A\020parent,exclusion\202\323\344\223" - + "\002\367\001\"\033/v2/{parent=*/*}/exclusions:\texclus" - + "ionZ/\"\"/v2/{parent=projects/*}/exclusion" - + "s:\texclusionZ4\"\'/v2/{parent=organization" - + "s/*}/exclusions:\texclusionZ.\"!/v2/{paren" - + "t=folders/*}/exclusions:\texclusionZ6\")/v" - + "2/{parent=billingAccounts/*}/exclusions:" - + "\texclusion\022\373\002\n\017UpdateExclusion\022).google." - + "logging.v2.UpdateExclusionRequest\032\037.goog" - + "le.logging.v2.LogExclusion\"\233\002\332A\032name,exc" - + "lusion,update_mask\202\323\344\223\002\367\0012\033/v2/{name=*/*" - + "/exclusions/*}:\texclusionZ/2\"/v2/{name=p" - + "rojects/*/exclusions/*}:\texclusionZ42\'/v" - + "2/{name=organizations/*/exclusions/*}:\te" - + "xclusionZ.2!/v2/{name=folders/*/exclusio" - + "ns/*}:\texclusionZ62)/v2/{name=billingAcc" - + "ounts/*/exclusions/*}:\texclusion\022\245\002\n\017Del" - + "eteExclusion\022).google.logging.v2.DeleteE" - + "xclusionRequest\032\026.google.protobuf.Empty\"" - + "\316\001\332A\004name\202\323\344\223\002\300\001*\033/v2/{name=*/*/exclusio" - + "ns/*}Z$*\"/v2/{name=projects/*/exclusions" - + "/*}Z)*\'/v2/{name=organizations/*/exclusi" - + "ons/*}Z#*!/v2/{name=folders/*/exclusions" - + "/*}Z+*)/v2/{name=billingAccounts/*/exclu" - + "sions/*}\022\247\002\n\017GetCmekSettings\022).google.lo" - + "gging.v2.GetCmekSettingsRequest\032\037.google" - + ".logging.v2.CmekSettings\"\307\001\202\323\344\223\002\300\001\022\033/v2/" - + "{name=*/*}/cmekSettingsZ$\022\"/v2/{name=pro" - + "jects/*}/cmekSettingsZ)\022\'/v2/{name=organ" - + "izations/*}/cmekSettingsZ#\022!/v2/{name=fo" - + "lders/*}/cmekSettingsZ+\022)/v2/{name=billi" - + "ngAccounts/*}/cmekSettings\022\321\001\n\022UpdateCme" - + "kSettings\022,.google.logging.v2.UpdateCmek" - + "SettingsRequest\032\037.google.logging.v2.Cmek" - + "Settings\"l\202\323\344\223\002f2\033/v2/{name=*/*}/cmekSet" - + "tings:\rcmek_settingsZ82\'/v2/{name=organi" - + "zations/*}/cmekSettings:\rcmek_settings\022\216" - + "\002\n\013GetSettings\022%.google.logging.v2.GetSe" - + "ttingsRequest\032\033.google.logging.v2.Settin" - + "gs\"\272\001\332A\004name\202\323\344\223\002\254\001\022\027/v2/{name=*/*}/sett" - + "ingsZ \022\036/v2/{name=projects/*}/settingsZ%" - + "\022#/v2/{name=organizations/*}/settingsZ\037\022" - + "\035/v2/{name=folders/*}/settingsZ\'\022%/v2/{n" - + "ame=billingAccounts/*}/settings\022\366\001\n\016Upda" - + "teSettings\022(.google.logging.v2.UpdateSet" - + "tingsRequest\032\033.google.logging.v2.Setting" - + "s\"\234\001\332A\024settings,update_mask\202\323\344\223\002\1772\027/v2/{" - + "name=*/*}/settings:\010settingsZ/2#/v2/{nam" - + "e=organizations/*}/settings:\010settingsZ)2" - + "\035/v2/{name=folders/*}/settings:\010settings" - + "\022\251\001\n\016CopyLogEntries\022(.google.logging.v2." - + "CopyLogEntriesRequest\032\035.google.longrunni" - + "ng.Operation\"N\312A0\n\026CopyLogEntriesRespons" - + "e\022\026CopyLogEntriesMetadata\202\323\344\223\002\025\"\020/v2/ent" - + "ries:copy:\001*\032\337\001\312A\026logging.googleapis.com" - + "\322A\302\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.readB\326" - + "\003\n\025com.google.logging.v2B\022LoggingConfigP" - + "rotoP\001Z5cloud.google.com/go/logging/apiv" - + "2/loggingpb;loggingpb\370\001\001\252\002\027Google.Cloud." - + "Logging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032G" - + "oogle::Cloud::Logging::V2\352A`\n+logging.go" - + "ogleapis.com/OrganizationLocation\0221organ" - + "izations/{organization}/locations/{locat" - + "ion}\352AN\n%logging.googleapis.com/FolderLo" - + "cation\022%folders/{folder}/locations/{loca" - + "tion}\352Ag\n-logging.googleapis.com/Billing" - + "AccountLocation\0226billingAccounts/{billin" - + "g_account}/locations/{location}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 deleted file mode 100644 index af431d22b..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_metrics.proto - -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\"\310\005\n\tLogMetric\022\022\n\004name\030\001 \001(" - + "\tB\004\342A\001\002\022\031\n\013description\030\002 \001(\tB\004\342A\001\001\022\024\n\006fi" - + "lter\030\003 \001(\tB\004\342A\001\002\022\031\n\013bucket_name\030\r \001(\tB\004\342" - + "A\001\001\022\026\n\010disabled\030\014 \001(\010B\004\342A\001\001\022=\n\021metric_de" - + "scriptor\030\005 \001(\0132\034.google.api.MetricDescri" - + "ptorB\004\342A\001\001\022\035\n\017value_extractor\030\006 \001(\tB\004\342A\001" - + "\001\022Q\n\020label_extractors\030\007 \003(\01321.google.log" - + "ging.v2.LogMetric.LabelExtractorsEntryB\004" - + "\342A\001\001\022D\n\016bucket_options\030\010 \001(\0132&.google.ap" - + "i.Distribution.BucketOptionsB\004\342A\001\001\0225\n\013cr" - + "eate_time\030\t \001(\0132\032.google.protobuf.Timest" - + "ampB\004\342A\001\003\0225\n\013update_time\030\n \001(\0132\032.google." - + "protobuf.TimestampB\004\342A\001\003\022<\n\007version\030\004 \001(" - + "\0162\'.google.logging.v2.LogMetric.ApiVersi" - + "onB\002\030\001\0326\n\024LabelExtractorsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\034\n\nApiVersion\022\006\n\002" - + "V2\020\000\022\006\n\002V1\020\001:J\352AG\n logging.googleapis.co" - + "m/LogMetric\022#projects/{project}/metrics/" - + "{metric}\"\220\001\n\025ListLogMetricsRequest\022D\n\006pa" - + "rent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanage" - + "r.googleapis.com/Project\022\030\n\npage_token\030\002" - + " \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"`\n\026L" - + "istLogMetricsResponse\022-\n\007metrics\030\001 \003(\0132\034" - + ".google.logging.v2.LogMetric\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"U\n\023GetLogMetricRequest\022>\n\013" - + "metric_name\030\001 \001(\tB)\342A\001\002\372A\"\n logging.goog" - + "leapis.com/LogMetric\"\207\001\n\026CreateLogMetric" - + "Request\0229\n\006parent\030\001 \001(\tB)\342A\001\002\372A\"\022 loggin" - + "g.googleapis.com/LogMetric\0222\n\006metric\030\002 \001" - + "(\0132\034.google.logging.v2.LogMetricB\004\342A\001\002\"\214" - + "\001\n\026UpdateLogMetricRequest\022>\n\013metric_name" - + "\030\001 \001(\tB)\342A\001\002\372A\"\n logging.googleapis.com/" - + "LogMetric\0222\n\006metric\030\002 \001(\0132\034.google.loggi" - + "ng.v2.LogMetricB\004\342A\001\002\"X\n\026DeleteLogMetric" - + "Request\022>\n\013metric_name\030\001 \001(\tB)\342A\001\002\372A\"\n l" - + "ogging.googleapis.com/LogMetric2\256\010\n\020Metr" - + "icsServiceV2\022\227\001\n\016ListLogMetrics\022(.google" - + ".logging.v2.ListLogMetricsRequest\032).goog" - + "le.logging.v2.ListLogMetricsResponse\"0\332A" - + "\006parent\202\323\344\223\002!\022\037/v2/{parent=projects/*}/m" - + "etrics\022\222\001\n\014GetLogMetric\022&.google.logging" - + ".v2.GetLogMetricRequest\032\034.google.logging" - + ".v2.LogMetric\"<\332A\013metric_name\202\323\344\223\002(\022&/v2" - + "/{metric_name=projects/*/metrics/*}\022\233\001\n\017" - + "CreateLogMetric\022).google.logging.v2.Crea" - + "teLogMetricRequest\032\034.google.logging.v2.L" - + "ogMetric\"?\332A\rparent,metric\202\323\344\223\002)\"\037/v2/{p" - + "arent=projects/*}/metrics:\006metric\022\247\001\n\017Up" - + "dateLogMetric\022).google.logging.v2.Update" - + "LogMetricRequest\032\034.google.logging.v2.Log" - + "Metric\"K\332A\022metric_name,metric\202\323\344\223\0020\032&/v2" - + "/{metric_name=projects/*/metrics/*}:\006met" - + "ric\022\222\001\n\017DeleteLogMetric\022).google.logging" - + ".v2.DeleteLogMetricRequest\032\026.google.prot" - + "obuf.Empty\"<\332A\013metric_name\202\323\344\223\002(*&/v2/{m" - + "etric_name=projects/*/metrics/*}\032\215\002\312A\026lo" - + "gging.googleapis.com\322A\360\001https://www.goog" - + "leapis.com/auth/cloud-platform,https://w" - + "ww.googleapis.com/auth/cloud-platform.re" - + "ad-only,https://www.googleapis.com/auth/" - + "logging.admin,https://www.googleapis.com" - + "/auth/logging.read,https://www.googleapi" - + "s.com/auth/logging.writeB\271\001\n\025com.google." - + "logging.v2B\023LoggingMetricsProtoP\001Z5cloud" - + ".google.com/go/logging/apiv2/loggingpb;l" - + "oggingpb\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027" - + "Google\\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 deleted file mode 100644 index 6f72cb9a1..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java +++ /dev/null @@ -1,362 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging.proto - -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\"I\n\020DeleteLogRequest\0225\n\010log_name\030\001 " - + "\001(\tB#\342A\001\002\372A\034\n\032logging.googleapis.com/Log" - + "\"\354\002\n\026WriteLogEntriesRequest\0225\n\010log_name\030" - + "\001 \001(\tB#\342A\001\001\372A\034\n\032logging.googleapis.com/L" - + "og\0225\n\010resource\030\002 \001(\0132\035.google.api.Monito" - + "redResourceB\004\342A\001\001\022K\n\006labels\030\003 \003(\01325.goog" - + "le.logging.v2.WriteLogEntriesRequest.Lab" - + "elsEntryB\004\342A\001\001\0222\n\007entries\030\004 \003(\0132\033.google" - + ".logging.v2.LogEntryB\004\342A\001\002\022\035\n\017partial_su" - + "ccess\030\005 \001(\010B\004\342A\001\001\022\025\n\007dry_run\030\006 \001(\010B\004\342A\001\001" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\"\031\n\027WriteLogEntriesResponse\"\310\001\n\034W" - + "riteLogEntriesPartialErrors\022]\n\020log_entry" - + "_errors\030\001 \003(\0132C.google.logging.v2.WriteL" - + "ogEntriesPartialErrors.LogEntryErrorsEnt" - + "ry\032I\n\023LogEntryErrorsEntry\022\013\n\003key\030\001 \001(\005\022!" - + "\n\005value\030\002 \001(\0132\022.google.rpc.Status:\0028\001\"\265\001" - + "\n\025ListLogEntriesRequest\022;\n\016resource_name" - + "s\030\010 \003(\tB#\342A\001\002\372A\034\022\032logging.googleapis.com" - + "/Log\022\024\n\006filter\030\002 \001(\tB\004\342A\001\001\022\026\n\010order_by\030\003" - + " \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\004 \001(\005B\004\342A\001\001\022\030\n\np" - + "age_token\030\005 \001(\tB\004\342A\001\001\"_\n\026ListLogEntriesR" - + "esponse\022,\n\007entries\030\001 \003(\0132\033.google.loggin" - + "g.v2.LogEntry\022\027\n\017next_page_token\030\002 \001(\t\"\\" - + "\n\'ListMonitoredResourceDescriptorsReques" - + "t\022\027\n\tpage_size\030\001 \001(\005B\004\342A\001\001\022\030\n\npage_token" - + "\030\002 \001(\tB\004\342A\001\001\"\212\001\n(ListMonitoredResourceDe" - + "scriptorsResponse\022E\n\024resource_descriptor" - + "s\030\001 \003(\0132\'.google.api.MonitoredResourceDe" - + "scriptor\022\027\n\017next_page_token\030\002 \001(\t\"\266\001\n\017Li" - + "stLogsRequest\0223\n\006parent\030\001 \001(\tB#\342A\001\002\372A\034\022\032" - + "logging.googleapis.com/Log\022;\n\016resource_n" - + "ames\030\010 \003(\tB#\342A\001\001\372A\034\022\032logging.googleapis." - + "com/Log\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" - + "_token\030\003 \001(\tB\004\342A\001\001\">\n\020ListLogsResponse\022\021" - + "\n\tlog_names\030\003 \003(\t\022\027\n\017next_page_token\030\002 \001" - + "(\t\"\203\001\n\025TailLogEntriesRequest\022\034\n\016resource" - + "_names\030\001 \003(\tB\004\342A\001\002\022\024\n\006filter\030\002 \001(\tB\004\342A\001\001" - + "\0226\n\rbuffer_window\030\003 \001(\0132\031.google.protobu" - + "f.DurationB\004\342A\001\001\"\337\002\n\026TailLogEntriesRespo" - + "nse\022,\n\007entries\030\001 \003(\0132\033.google.logging.v2" - + ".LogEntry\022S\n\020suppression_info\030\002 \003(\01329.go" - + "ogle.logging.v2.TailLogEntriesResponse.S" - + "uppressionInfo\032\301\001\n\017SuppressionInfo\022P\n\006re" - + "ason\030\001 \001(\0162@.google.logging.v2.TailLogEn" - + "triesResponse.SuppressionInfo.Reason\022\030\n\020" - + "suppressed_count\030\002 \001(\005\"B\n\006Reason\022\026\n\022REAS" - + "ON_UNSPECIFIED\020\000\022\016\n\nRATE_LIMIT\020\001\022\020\n\014NOT_" - + "CONSUMED\020\0022\351\r\n\020LoggingServiceV2\022\223\002\n\tDele" - + "teLog\022#.google.logging.v2.DeleteLogReque" - + "st\032\026.google.protobuf.Empty\"\310\001\332A\010log_name" - + "\202\323\344\223\002\266\001* /v2/{log_name=projects/*/logs/*" - + "}Z\033*\031/v2/{log_name=*/*/logs/*}Z\'*%/v2/{l" - + "og_name=organizations/*/logs/*}Z!*\037/v2/{" - + "log_name=folders/*/logs/*}Z)*\'/v2/{log_n" - + "ame=billingAccounts/*/logs/*}\022\251\001\n\017WriteL" - + "ogEntries\022).google.logging.v2.WriteLogEn" - + "triesRequest\032*.google.logging.v2.WriteLo" - + "gEntriesResponse\"?\332A log_name,resource,l" - + "abels,entries\202\323\344\223\002\026\"\021/v2/entries:write:\001" - + "*\022\243\001\n\016ListLogEntries\022(.google.logging.v2" - + ".ListLogEntriesRequest\032).google.logging." - + "v2.ListLogEntriesResponse\"<\332A\036resource_n" - + "ames,filter,order_by\202\323\344\223\002\025\"\020/v2/entries:" - + "list:\001*\022\305\001\n ListMonitoredResourceDescrip" - + "tors\022:.google.logging.v2.ListMonitoredRe" - + "sourceDescriptorsRequest\032;.google.loggin" - + "g.v2.ListMonitoredResourceDescriptorsRes" - + "ponse\"(\202\323\344\223\002\"\022 /v2/monitoredResourceDesc" - + "riptors\022\213\004\n\010ListLogs\022\".google.logging.v2" - + ".ListLogsRequest\032#.google.logging.v2.Lis" - + "tLogsResponse\"\265\003\332A\006parent\202\323\344\223\002\245\003\022\025/v2/{p" - + "arent=*/*}/logsZ\036\022\034/v2/{parent=projects/" - + "*}/logsZ#\022!/v2/{parent=organizations/*}/" - + "logsZ\035\022\033/v2/{parent=folders/*}/logsZ%\022#/" - + "v2/{parent=billingAccounts/*}/logsZ<\022:/v" - + "2/{parent=projects/*/locations/*/buckets" - + "/*/views/*}/logsZA\022?/v2/{parent=organiza" - + "tions/*/locations/*/buckets/*/views/*}/l" - + "ogsZ;\0229/v2/{parent=folders/*/locations/*" - + "/buckets/*/views/*}/logsZC\022A/v2/{parent=" - + "billingAccounts/*/locations/*/buckets/*/" - + "views/*}/logs\022\206\001\n\016TailLogEntries\022(.googl" - + "e.logging.v2.TailLogEntriesRequest\032).goo" - + "gle.logging.v2.TailLogEntriesResponse\"\033\202" - + "\323\344\223\002\025\"\020/v2/entries:tail:\001*(\0010\001\032\215\002\312A\026logg" - + "ing.googleapis.com\322A\360\001https://www.google" - + "apis.com/auth/cloud-platform,https://www" - + ".googleapis.com/auth/cloud-platform.read" - + "-only,https://www.googleapis.com/auth/lo" - + "gging.admin,https://www.googleapis.com/a" - + "uth/logging.read,https://www.googleapis." - + "com/auth/logging.writeB\262\001\n\025com.google.lo" - + "gging.v2B\014LoggingProtoP\001Z5cloud.google.c" - + "om/go/logging/apiv2/loggingpb;loggingpb\370" - + "\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Cl" - + "oud\\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.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/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 deleted file mode 100644 index 2bc288fa4..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging.proto - -package com.google.logging.v2; - -public interface WriteLogEntriesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.logging.v2.WriteLogEntriesResponse) - com.google.protobuf.MessageOrBuilder {} From db7a8def4cf543c12849b361e708f8a5d6d90849 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 24 Jan 2024 21:20:50 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../google/cloud/logging/v2/ConfigClient.java | 316 +- .../cloud/logging/v2/LoggingClient.java | 62 +- .../cloud/logging/v2/MetricsClient.java | 54 +- .../v2/stub/ConfigServiceV2StubSettings.java | 19 +- .../v2/stub/LoggingServiceV2StubSettings.java | 19 +- .../v2/stub/MetricsServiceV2StubSettings.java | 19 +- .../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 | 630 -- .../cloud/logging/v2/LoggingClient.java | 1536 ----- .../cloud/logging/v2/LoggingSettings.java | 273 - .../cloud/logging/v2/MetricsClient.java | 1003 --- .../cloud/logging/v2/MetricsSettings.java | 240 - .../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 | 1606 ----- .../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 | 773 --- .../logging/v2/stub/MetricsServiceV2Stub.java | 69 - .../v2/stub/MetricsServiceV2StubSettings.java | 490 -- .../reflect-config.json | 2981 --------- .../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 | 19 - .../v2/DeleteLogMetricRequestOrBuilder.java | 33 - .../v2/DeleteViewRequestOrBuilder.java | 41 - .../v2/GetLogMetricRequestOrBuilder.java | 33 - .../logging/v2/GetViewRequestOrBuilder.java | 41 - .../logging/v2/LocationMetadataOrBuilder.java | 20 - .../com/google/logging/v2/LogEntryProto.java | 157 - .../google/logging/v2/LoggingConfigProto.java | 1157 ---- .../logging/v2/LoggingMetricsProto.java | 224 - .../com/google/logging/v2/LoggingProto.java | 333 - .../v2/WriteLogEntriesResponseOrBuilder.java | 9 - .../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 | 674 +- .../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 | 690 ++- .../v2/CopyLogEntriesMetadataOrBuilder.java | 63 +- .../logging/v2/CopyLogEntriesRequest.java | 456 +- .../v2/CopyLogEntriesRequestOrBuilder.java | 45 +- .../logging/v2/CopyLogEntriesResponse.java | 277 +- .../v2/CopyLogEntriesResponseOrBuilder.java | 38 + .../logging/v2/CreateBucketRequest.java | 522 +- .../v2/CreateBucketRequestOrBuilder.java | 52 +- .../logging/v2/CreateExclusionRequest.java | 482 +- .../v2/CreateExclusionRequestOrBuilder.java | 52 +- .../google/logging/v2/CreateLinkRequest.java | 491 +- .../v2/CreateLinkRequestOrBuilder.java | 52 +- .../logging/v2/CreateLogMetricRequest.java | 450 +- .../v2/CreateLogMetricRequestOrBuilder.java | 43 +- .../google/logging/v2/CreateSinkRequest.java | 454 +- .../v2/CreateSinkRequestOrBuilder.java | 46 +- .../google/logging/v2/CreateViewRequest.java | 464 +- .../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 | 58 + .../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 | 66 + .../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 | 58 + .../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 | 66 + .../com/google/logging/v2/IndexConfig.java | 483 +- .../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 | 684 +- .../com/google/logging/v2/LinkMetadata.java | 674 +- .../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 | 39 + .../com/google/logging/v2/LocationName.java | 0 .../java/com/google/logging/v2/LogBucket.java | 1185 ++-- .../com/google/logging/v2/LogBucketName.java | 0 .../google/logging/v2/LogBucketOrBuilder.java | 137 +- .../java/com/google/logging/v2/LogEntry.java | 2142 ++++--- .../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 | 751 ++- .../google/logging/v2/LogExclusionName.java | 0 .../logging/v2/LogExclusionOrBuilder.java | 82 +- .../java/com/google/logging/v2/LogMetric.java | 1610 +++-- .../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 | 1560 +++-- .../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 | 711 ++- .../com/google/logging/v2/LogViewName.java | 0 .../google/logging/v2/LogViewOrBuilder.java | 79 +- .../google/logging/v2/LoggingConfigProto.java | 1251 ++++ .../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 | 554 +- .../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 | 575 +- .../v2/UpdateBucketRequestOrBuilder.java | 60 +- .../logging/v2/UpdateCmekSettingsRequest.java | 586 +- .../UpdateCmekSettingsRequestOrBuilder.java | 64 +- .../logging/v2/UpdateExclusionRequest.java | 607 +- .../v2/UpdateExclusionRequestOrBuilder.java | 69 +- .../logging/v2/UpdateLogMetricRequest.java | 450 +- .../v2/UpdateLogMetricRequestOrBuilder.java | 43 +- .../logging/v2/UpdateSettingsRequest.java | 556 +- .../v2/UpdateSettingsRequestOrBuilder.java | 61 +- .../google/logging/v2/UpdateSinkRequest.java | 579 +- .../v2/UpdateSinkRequestOrBuilder.java | 63 +- .../google/logging/v2/UpdateViewRequest.java | 517 +- .../v2/UpdateViewRequestOrBuilder.java | 52 +- .../v2/WriteLogEntriesPartialErrors.java | 444 +- ...WriteLogEntriesPartialErrorsOrBuilder.java | 48 +- .../logging/v2/WriteLogEntriesRequest.java | 1040 ++-- .../v2/WriteLogEntriesRequestOrBuilder.java | 127 +- .../logging/v2/WriteLogEntriesResponse.java | 238 +- .../v2/WriteLogEntriesResponseOrBuilder.java | 24 + .../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 225 files changed, 33069 insertions(+), 43856 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/DeleteViewRequestOrBuilder.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 (69%) 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 (68%) 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 (72%) 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 (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java (86%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java (72%) 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 (69%) 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 (64%) 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 (70%) 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 (66%) 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 (73%) 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 (58%) 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 (57%) 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%) create mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java 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 (58%) 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 (55%) 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 (68%) 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 (66%) 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 (68%) 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 (65%) 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 (66%) 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 (74%) 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 (68%) 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 (84%) 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 (71%) 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 (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java (75%) 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 (74%) 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 (73%) 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 (76%) 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 (73%) 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 (69%) 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/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java index ac66c69f7..9f0de332d 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java @@ -125,520 +125,520 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * * - * + * * * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * - * + * * * * * - * + * * * * - * + * * * * diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java index 37f122f9b..48c133832 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java @@ -77,114 +77,114 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * *
MethodsMethods
MethodDescriptionMethod Variants
ListBuckets

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) + *
  • 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) + *
  • 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() + *
  • listBucketsPagedCallable() + *

  • listBucketsCallable() *

*
GetBucket

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) + *
  • 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() + *
  • getBucketCallable() *

*
CreateBucketAsync

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) + *
  • 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() + *
  • createBucketAsyncOperationCallable() + *

  • createBucketAsyncCallable() *

*
UpdateBucketAsync

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) + *
  • 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() + *
  • updateBucketAsyncOperationCallable() + *

  • updateBucketAsyncCallable() *

*
CreateBucket

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) + *
  • 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() + *
  • createBucketCallable() *

*
UpdateBucket

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) + *
  • 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() + *
  • updateBucketCallable() *

*
DeleteBucket

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) + *
  • 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() + *
  • deleteBucketCallable() *

*
UndeleteBucket

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) + *
  • 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() + *
  • undeleteBucketCallable() *

*
ListViews

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) + *
  • 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) + *
  • 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() + *
  • listViewsPagedCallable() + *

  • listViewsCallable() *

*
GetView

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) + *
  • 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() + *
  • getViewCallable() *

*
CreateView

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) + *
  • 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() + *
  • createViewCallable() *

*
UpdateView

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) + *
  • 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() + *
  • updateViewCallable() *

*
DeleteView

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) + *
  • 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() + *
  • deleteViewCallable() *

*
ListSinks

ListSinks

Lists sinks.

*

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

*
    - *
  • listSinks(ListSinksRequest request) + *
  • 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) + *
  • 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() + *
  • listSinksPagedCallable() + *

  • listSinksCallable() *

*
GetSink

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) + *
  • 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) + *
  • 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() + *
  • getSinkCallable() *

*
CreateSink

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) + *
  • 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) + *
  • 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() + *
  • createSinkCallable() *

*
UpdateSink

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) + *
  • 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) + *
  • 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() + *
  • updateSinkCallable() *

*
DeleteSink

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) + *
  • 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) + *
  • 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() + *
  • deleteSinkCallable() *

*
CreateLink

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) + *
  • 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) + *
  • 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() + *
  • createLinkOperationCallable() + *

  • createLinkCallable() *

*
DeleteLink

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) + *
  • 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) + *
  • 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() + *
  • deleteLinkOperationCallable() + *

  • deleteLinkCallable() *

*
ListLinks

ListLinks

Lists links.

*

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

*
    - *
  • listLinks(ListLinksRequest request) + *
  • 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) + *
  • 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() + *
  • listLinksPagedCallable() + *

  • listLinksCallable() *

*
GetLink

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) + *
  • 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) + *
  • 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() + *
  • getLinkCallable() *

*
ListExclusions

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) + *
  • 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) + *
  • 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() + *
  • listExclusionsPagedCallable() + *

  • listExclusionsCallable() *

*
GetExclusion

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) + *
  • 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) + *
  • 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() + *
  • getExclusionCallable() *

*
CreateExclusion

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) + *
  • 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) + *
  • 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() + *
  • createExclusionCallable() *

*
UpdateExclusion

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) + *
  • 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) + *
  • 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() + *
  • updateExclusionCallable() *

*
DeleteExclusion

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) + *
  • 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) + *
  • 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() + *
  • deleteExclusionCallable() *

*
GetCmekSettings

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) + *
  • 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() + *
  • getCmekSettingsCallable() *

*
UpdateCmekSettings

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. @@ -646,37 +646,37 @@ *

*

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

*
    - *
  • updateCmekSettings(UpdateCmekSettingsRequest request) + *
  • 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() + *
  • updateCmekSettingsCallable() *

*
GetSettings

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) + *
  • 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) + *
  • 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() + *
  • getSettingsCallable() *

*
UpdateSettings

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. @@ -684,30 +684,30 @@ *

*

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

*
    - *
  • updateSettings(UpdateSettingsRequest request) + *
  • 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) + *
  • 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() + *
  • updateSettingsCallable() *

*
CopyLogEntries

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) + *
  • 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() + *
  • copyLogEntriesOperationCallable() + *

  • copyLogEntriesCallable() *

*
- * + * * * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java index a018294f0..c5e4ffe2e 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java @@ -65,105 +65,105 @@ * threads. In the example above, try-with-resources is used, which automatically calls close(). * *
MethodsMethods
MethodDescriptionMethod Variants
DeleteLog

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) + *
  • 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) + *
  • 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() + *
  • deleteLogCallable() *

*
WriteLogEntries

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) + *
  • 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) + *
  • 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() + *
  • writeLogEntriesCallable() *

*
ListLogEntries

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) + *
  • 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) + *
  • 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() + *
  • listLogEntriesPagedCallable() + *

  • listLogEntriesCallable() *

*
ListMonitoredResourceDescriptors

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) + *
  • 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() + *
  • listMonitoredResourceDescriptorsPagedCallable() + *

  • listMonitoredResourceDescriptorsCallable() *

*
ListLogs

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) + *
  • 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) + *
  • 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() + *
  • listLogsPagedCallable() + *

  • listLogsCallable() *

*
TailLogEntries

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() + *
  • tailLogEntriesCallable() *

*
- * + * * * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * * - * + * * * * diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java index f596da26a..df6bdaee3 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java @@ -679,6 +679,15 @@ public ConfigServiceV2Stub createStub() throws IOException { "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() { @@ -1066,7 +1075,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -1581,6 +1589,15 @@ public UnaryCallSettings.Builder copyLogEntrie 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/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java index 15344c200..e96353717 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java @@ -438,6 +438,15 @@ public LoggingServiceV2Stub createStub() throws IOException { "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() { @@ -642,7 +651,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -748,6 +756,15 @@ public UnaryCallSettings.Builder deleteLogSettings() { 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/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java index 05f29f3fb..e7eefab52 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java @@ -206,6 +206,15 @@ public MetricsServiceV2Stub createStub() throws IOException { "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() { @@ -387,7 +396,6 @@ private static Builder createDefault() { builder.setTransportChannelProvider(defaultTransportChannelProvider()); builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); builder.setSwitchToMtlsEndpointAllowed(true); @@ -465,6 +473,15 @@ public UnaryCallSettings.Builder deleteLogMetricS 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/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 9f0de332d..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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(). - * - *

MethodsMethods
MethodDescriptionMethod Variants
ListLogMetrics

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) + *
  • 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) + *
  • 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() + *
  • listLogMetricsPagedCallable() + *

  • listLogMetricsCallable() *

*
GetLogMetric

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) + *
  • 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) + *
  • 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() + *
  • getLogMetricCallable() *

*
CreateLogMetric

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) + *
  • 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) + *
  • 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() + *
  • createLogMetricCallable() *

*
UpdateLogMetric

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) + *
  • 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) + *
  • 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() + *
  • updateLogMetricCallable() *

*
DeleteLogMetric

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) + *
  • 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) + *
  • 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() + *
  • deleteLogMetricCallable() *

*
- * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - *
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 e569d3c16..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java +++ /dev/null @@ -1,630 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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.core.BetaApi; -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(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - 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 48c133832..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 1576cad2f..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java +++ /dev/null @@ -1,273 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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.core.BetaApi; -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(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - 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 c5e4ffe2e..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 603508979..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -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.core.BetaApi; -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(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - 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 4f6420980..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 b14a8c3f9..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 df6bdaee3..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java +++ /dev/null @@ -1,1606 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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.core.BetaApi; -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(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - 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. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - 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. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - 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. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - 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. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - 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. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - 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 3087b1086..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 71e273bc4..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 aa0d7a48d..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 e3d33f31d..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 4057830b0..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 19ac83ffd..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 0598eed81..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 e96353717..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java +++ /dev/null @@ -1,773 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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.core.BetaApi; -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(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - 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 be664c8fe..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 e7eefab52..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java +++ /dev/null @@ -1,490 +0,0 @@ -/* - * Copyright 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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.core.BetaApi; -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(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - 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 6627c3cf1..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,2981 +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$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$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$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 fb3327152..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 736ef717b..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 36e69467f..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 19151b235..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 4466aca29..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 b178291ec..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 2d98bf7ed..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 b500421ac..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 417c754fb..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 2023 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 bc2ac8bbd..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -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 d7d5170ff..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_metrics.proto - -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/DeleteViewRequestOrBuilder.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java deleted file mode 100644 index f12761bdb..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -package com.google.logging.v2; - -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:
-   *
-   *     "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 full resource name of the view to delete:
-   *
-   *     "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/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 8299e1eba..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_metrics.proto - -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 b0c657e0c..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -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 5a8b0ca6d..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -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 714a3bd32..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 - -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\"\221\010\n\010LogEntry\022\026\n\010log_name\030\014 \001(\tB\004\342A\001\002\0225" + - "\n\010resource\030\010 \001(\0132\035.google.api.MonitoredR" + - "esourceB\004\342A\001\002\022-\n\rproto_payload\030\002 \001(\0132\024.g" + - "oogle.protobuf.AnyH\000\022\026\n\014text_payload\030\003 \001" + - "(\tH\000\022/\n\014json_payload\030\006 \001(\0132\027.google.prot" + - "obuf.StructH\000\0223\n\ttimestamp\030\t \001(\0132\032.googl" + - "e.protobuf.TimestampB\004\342A\001\001\022;\n\021receive_ti" + - "mestamp\030\030 \001(\0132\032.google.protobuf.Timestam" + - "pB\004\342A\001\003\0228\n\010severity\030\n \001(\0162 .google.loggi" + - "ng.type.LogSeverityB\004\342A\001\001\022\027\n\tinsert_id\030\004" + - " \001(\tB\004\342A\001\001\022<\n\014http_request\030\007 \001(\0132 .googl" + - "e.logging.type.HttpRequestB\004\342A\001\001\022=\n\006labe" + - "ls\030\013 \003(\0132\'.google.logging.v2.LogEntry.La" + - "belsEntryB\004\342A\001\001\022=\n\toperation\030\017 \001(\0132$.goo" + - "gle.logging.v2.LogEntryOperationB\004\342A\001\001\022\023" + - "\n\005trace\030\026 \001(\tB\004\342A\001\001\022\025\n\007span_id\030\033 \001(\tB\004\342A" + - "\001\001\022\033\n\rtrace_sampled\030\036 \001(\010B\004\342A\001\001\022H\n\017sourc" + - "e_location\030\027 \001(\0132).google.logging.v2.Log" + - "EntrySourceLocationB\004\342A\001\001\0220\n\005split\030# \001(\013" + - "2\033.google.logging.v2.LogSplitB\004\342A\001\001\032-\n\013L" + - "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + - "8\001:\275\001\352A\271\001\n\032logging.googleapis.com/Log\022\035p" + - "rojects/{project}/logs/{log}\022\'organizati" + - "ons/{organization}/logs/{log}\022\033folders/{" + - "folder}/logs/{log}\022,billingAccounts/{bil" + - "ling_account}/logs/{log}\032\010log_nameB\t\n\007pa" + - "yload\"f\n\021LogEntryOperation\022\020\n\002id\030\001 \001(\tB\004" + - "\342A\001\001\022\026\n\010producer\030\002 \001(\tB\004\342A\001\001\022\023\n\005first\030\003 " + - "\001(\010B\004\342A\001\001\022\022\n\004last\030\004 \001(\010B\004\342A\001\001\"X\n\026LogEntr" + - "ySourceLocation\022\022\n\004file\030\001 \001(\tB\004\342A\001\001\022\022\n\004l" + - "ine\030\002 \001(\003B\004\342A\001\001\022\026\n\010function\030\003 \001(\tB\004\342A\001\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(\005B\263\001\n\025com.google.log" + - "ging.v2B\rLogEntryProtoP\001Z5cloud.google.c" + - "om/go/logging/apiv2/loggingpb;loggingpb\370" + - "\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Cl" + - "oud\\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.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 cc12843be..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java +++ /dev/null @@ -1,1157 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging_config.proto - -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\"\220\001\n\013IndexCon" + - "fig\022\030\n\nfield_path\030\001 \001(\tB\004\342A\001\002\0220\n\004type\030\002 " + - "\001(\0162\034.google.logging.v2.IndexTypeB\004\342A\001\002\022" + - "5\n\013create_time\030\003 \001(\0132\032.google.protobuf.T" + - "imestampB\004\342A\001\003\"\331\005\n\tLogBucket\022\022\n\004name\030\001 \001" + - "(\tB\004\342A\001\003\022\023\n\013description\030\003 \001(\t\0225\n\013create_" + - "time\030\004 \001(\0132\032.google.protobuf.TimestampB\004" + - "\342A\001\003\0225\n\013update_time\030\005 \001(\0132\032.google.proto" + - "buf.TimestampB\004\342A\001\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" + - "\004\342A\001\003\022\031\n\021analytics_enabled\030\016 \001(\010\022\031\n\021rest" + - "ricted_fields\030\017 \003(\t\0225\n\rindex_configs\030\021 \003" + - "(\0132\036.google.logging.v2.IndexConfig\0226\n\rcm" + - "ek_settings\030\023 \001(\0132\037.google.logging.v2.Cm" + - "ekSettings:\245\002\352A\241\002\n logging.googleapis.co" + - "m/LogBucket\0228projects/{project}/location" + - "s/{location}/buckets/{bucket}\022Borganizat" + - "ions/{organization}/locations/{location}" + - "/buckets/{bucket}\0226folders/{folder}/loca" + - "tions/{location}/buckets/{bucket}\022Gbilli" + - "ngAccounts/{billing_account}/locations/{" + - "location}/buckets/{bucket}\"\204\004\n\007LogView\022\014" + - "\n\004name\030\001 \001(\t\022\023\n\013description\030\003 \001(\t\0225\n\013cre" + - "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" + - "mpB\004\342A\001\003\0225\n\013update_time\030\005 \001(\0132\032.google.p" + - "rotobuf.TimestampB\004\342A\001\003\022\016\n\006filter\030\007 \001(\t:" + - "\327\002\352A\323\002\n\036logging.googleapis.com/LogView\022E" + - "projects/{project}/locations/{location}/" + - "buckets/{bucket}/views/{view}\022Oorganizat" + - "ions/{organization}/locations/{location}" + - "/buckets/{bucket}/views/{view}\022Cfolders/" + - "{folder}/locations/{location}/buckets/{b" + - "ucket}/views/{view}\022TbillingAccounts/{bi" + - "lling_account}/locations/{location}/buck" + - "ets/{bucket}/views/{view}\"\220\006\n\007LogSink\022\022\n" + - "\004name\030\001 \001(\tB\004\342A\001\002\022\037\n\013destination\030\003 \001(\tB\n" + - "\342A\001\002\372A\003\n\001*\022\024\n\006filter\030\005 \001(\tB\004\342A\001\001\022\031\n\013desc" + - "ription\030\022 \001(\tB\004\342A\001\001\022\026\n\010disabled\030\023 \001(\010B\004\342" + - "A\001\001\0229\n\nexclusions\030\020 \003(\0132\037.google.logging" + - ".v2.LogExclusionB\004\342A\001\001\022K\n\025output_version" + - "_format\030\006 \001(\0162(.google.logging.v2.LogSin" + - "k.VersionFormatB\002\030\001\022\035\n\017writer_identity\030\010" + - " \001(\tB\004\342A\001\003\022\036\n\020include_children\030\t \001(\010B\004\342A" + - "\001\001\022D\n\020bigquery_options\030\014 \001(\0132\".google.lo" + - "gging.v2.BigQueryOptionsB\004\342A\001\001H\000\0225\n\013crea" + - "te_time\030\r \001(\0132\032.google.protobuf.Timestam" + - "pB\004\342A\001\003\0225\n\013update_time\030\016 \001(\0132\032.google.pr" + - "otobuf.TimestampB\004\342A\001\003\"?\n\rVersionFormat\022" + - "\036\n\032VERSION_FORMAT_UNSPECIFIED\020\000\022\006\n\002V2\020\001\022" + - "\006\n\002V1\020\002:\277\001\352A\273\001\n\036logging.googleapis.com/L" + - "ogSink\022\037projects/{project}/sinks/{sink}\022" + - ")organizations/{organization}/sinks/{sin" + - "k}\022\035folders/{folder}/sinks/{sink}\022.billi" + - "ngAccounts/{billing_account}/sinks/{sink" + - "}B\t\n\007options\"+\n\017BigQueryDataset\022\030\n\ndatas" + - "et_id\030\001 \001(\tB\004\342A\001\003\"\267\004\n\004Link\022\014\n\004name\030\001 \001(\t" + - "\022\023\n\013description\030\002 \001(\t\0225\n\013create_time\030\003 \001" + - "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022@\n\017" + - "lifecycle_state\030\004 \001(\0162!.google.logging.v" + - "2.LifecycleStateB\004\342A\001\003\022<\n\020bigquery_datas" + - "et\030\005 \001(\0132\".google.logging.v2.BigQueryDat" + - "aset:\324\002\352A\320\002\n\033logging.googleapis.com/Link" + - "\022Eprojects/{project}/locations/{location" + - "}/buckets/{bucket}/links/{link}\022Oorganiz" + - "ations/{organization}/locations/{locatio" + - "n}/buckets/{bucket}/links/{link}\022Cfolder" + - "s/{folder}/locations/{location}/buckets/" + - "{bucket}/links/{link}\022TbillingAccounts/{" + - "billing_account}/locations/{location}/bu" + - "ckets/{bucket}/links/{link}\"i\n\017BigQueryO" + - "ptions\022$\n\026use_partitioned_tables\030\001 \001(\010B\004" + - "\342A\001\001\0220\n\"uses_timestamp_column_partitioni" + - "ng\030\003 \001(\010B\004\342A\001\003\"\202\001\n\022ListBucketsRequest\0229\n" + - "\006parent\030\001 \001(\tB)\342A\001\002\372A\"\022 logging.googleap" + - "is.com/LogBucket\022\030\n\npage_token\030\002 \001(\tB\004\342A" + - "\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"]\n\023ListBucke" + - "tsResponse\022-\n\007buckets\030\001 \003(\0132\034.google.log" + - "ging.v2.LogBucket\022\027\n\017next_page_token\030\002 \001" + - "(\t\"\235\001\n\023CreateBucketRequest\0229\n\006parent\030\001 \001" + - "(\tB)\342A\001\002\372A\"\022 logging.googleapis.com/LogB" + - "ucket\022\027\n\tbucket_id\030\002 \001(\tB\004\342A\001\002\0222\n\006bucket" + - "\030\003 \001(\0132\034.google.logging.v2.LogBucketB\004\342A" + - "\001\002\"\271\001\n\023UpdateBucketRequest\0227\n\004name\030\001 \001(\t" + - "B)\342A\001\002\372A\"\n logging.googleapis.com/LogBuc" + - "ket\0222\n\006bucket\030\002 \001(\0132\034.google.logging.v2." + - "LogBucketB\004\342A\001\002\0225\n\013update_mask\030\004 \001(\0132\032.g" + - "oogle.protobuf.FieldMaskB\004\342A\001\002\"K\n\020GetBuc" + - "ketRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n loggi" + - "ng.googleapis.com/LogBucket\"N\n\023DeleteBuc" + - "ketRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n loggi" + - "ng.googleapis.com/LogBucket\"P\n\025UndeleteB" + - "ucketRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n log" + - "ging.googleapis.com/LogBucket\"[\n\020ListVie" + - "wsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\030\n\npage_" + - "token\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A" + - "\001\001\"W\n\021ListViewsResponse\022)\n\005views\030\001 \003(\0132\032" + - ".google.logging.v2.LogView\022\027\n\017next_page_" + - "token\030\002 \001(\t\"p\n\021CreateViewRequest\022\024\n\006pare" + - "nt\030\001 \001(\tB\004\342A\001\002\022\025\n\007view_id\030\002 \001(\tB\004\342A\001\002\022.\n" + - "\004view\030\003 \001(\0132\032.google.logging.v2.LogViewB" + - "\004\342A\001\002\"\216\001\n\021UpdateViewRequest\022\022\n\004name\030\001 \001(" + - "\tB\004\342A\001\002\022.\n\004view\030\002 \001(\0132\032.google.logging.v" + - "2.LogViewB\004\342A\001\002\0225\n\013update_mask\030\004 \001(\0132\032.g" + - "oogle.protobuf.FieldMaskB\004\342A\001\001\"G\n\016GetVie" + - "wRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036logging" + - ".googleapis.com/LogView\"J\n\021DeleteViewReq" + - "uest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036logging.goo" + - "gleapis.com/LogView\"~\n\020ListSinksRequest\022" + - "7\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036logging.google" + - "apis.com/LogSink\022\030\n\npage_token\030\002 \001(\tB\004\342A" + - "\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"W\n\021ListSinks" + - "Response\022)\n\005sinks\030\001 \003(\0132\032.google.logging" + - ".v2.LogSink\022\027\n\017next_page_token\030\002 \001(\t\"L\n\016" + - "GetSinkRequest\022:\n\tsink_name\030\001 \001(\tB\'\342A\001\002\372" + - "A \n\036logging.googleapis.com/LogSink\"\242\001\n\021C" + - "reateSinkRequest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A" + - " \022\036logging.googleapis.com/LogSink\022.\n\004sin" + - "k\030\002 \001(\0132\032.google.logging.v2.LogSinkB\004\342A\001" + - "\002\022$\n\026unique_writer_identity\030\003 \001(\010B\004\342A\001\001\"" + - "\334\001\n\021UpdateSinkRequest\022:\n\tsink_name\030\001 \001(\t" + - "B\'\342A\001\002\372A \n\036logging.googleapis.com/LogSin" + - "k\022.\n\004sink\030\002 \001(\0132\032.google.logging.v2.LogS" + - "inkB\004\342A\001\002\022$\n\026unique_writer_identity\030\003 \001(" + - "\010B\004\342A\001\001\0225\n\013update_mask\030\004 \001(\0132\032.google.pr" + - "otobuf.FieldMaskB\004\342A\001\001\"O\n\021DeleteSinkRequ" + - "est\022:\n\tsink_name\030\001 \001(\tB\'\342A\001\002\372A \n\036logging" + - ".googleapis.com/LogSink\"\215\001\n\021CreateLinkRe" + - "quest\0224\n\006parent\030\001 \001(\tB$\342A\001\002\372A\035\022\033logging." + - "googleapis.com/Link\022+\n\004link\030\002 \001(\0132\027.goog" + - "le.logging.v2.LinkB\004\342A\001\002\022\025\n\007link_id\030\003 \001(" + - "\tB\004\342A\001\002\"G\n\021DeleteLinkRequest\0222\n\004name\030\001 \001" + - "(\tB$\342A\001\002\372A\035\n\033logging.googleapis.com/Link" + - "\"{\n\020ListLinksRequest\0224\n\006parent\030\001 \001(\tB$\342A" + - "\001\002\372A\035\022\033logging.googleapis.com/Link\022\030\n\npa" + - "ge_token\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B" + - "\004\342A\001\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\"D\n\016GetLinkRequest\0222\n\004name\030\001 " + - "\001(\tB$\342A\001\002\372A\035\n\033logging.googleapis.com/Lin" + - "k\"\310\003\n\014LogExclusion\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022\031" + - "\n\013description\030\002 \001(\tB\004\342A\001\001\022\024\n\006filter\030\003 \001(" + - "\tB\004\342A\001\002\022\026\n\010disabled\030\004 \001(\010B\004\342A\001\001\0225\n\013creat" + - "e_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + - "B\004\342A\001\003\0225\n\013update_time\030\006 \001(\0132\032.google.pro" + - "tobuf.TimestampB\004\342A\001\003:\354\001\352A\350\001\n#logging.go" + - "ogleapis.com/LogExclusion\022)projects/{pro" + - "ject}/exclusions/{exclusion}\0223organizati" + - "ons/{organization}/exclusions/{exclusion" + - "}\022\'folders/{folder}/exclusions/{exclusio" + - "n}\0228billingAccounts/{billing_account}/ex" + - "clusions/{exclusion}\"\210\001\n\025ListExclusionsR" + - "equest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\022#logging" + - ".googleapis.com/LogExclusion\022\030\n\npage_tok" + - "en\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"" + - "f\n\026ListExclusionsResponse\0223\n\nexclusions\030" + - "\001 \003(\0132\037.google.logging.v2.LogExclusion\022\027" + - "\n\017next_page_token\030\002 \001(\t\"Q\n\023GetExclusionR" + - "equest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.g" + - "oogleapis.com/LogExclusion\"\220\001\n\026CreateExc" + - "lusionRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\022#" + - "logging.googleapis.com/LogExclusion\0228\n\te" + - "xclusion\030\002 \001(\0132\037.google.logging.v2.LogEx" + - "clusionB\004\342A\001\002\"\305\001\n\026UpdateExclusionRequest" + - "\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.googlea" + - "pis.com/LogExclusion\0228\n\texclusion\030\002 \001(\0132" + - "\037.google.logging.v2.LogExclusionB\004\342A\001\002\0225" + - "\n\013update_mask\030\003 \001(\0132\032.google.protobuf.Fi" + - "eldMaskB\004\342A\001\002\"T\n\026DeleteExclusionRequest\022" + - ":\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.googleap" + - "is.com/LogExclusion\"T\n\026GetCmekSettingsRe" + - "quest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.go" + - "ogleapis.com/CmekSettings\"\244\001\n\031UpdateCmek" + - "SettingsRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022<\n\rc" + - "mek_settings\030\002 \001(\0132\037.google.logging.v2.C" + - "mekSettingsB\004\342A\001\002\0225\n\013update_mask\030\003 \001(\0132\032" + - ".google.protobuf.FieldMaskB\004\342A\001\001\"\277\002\n\014Cme" + - "kSettings\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014kms_key" + - "_name\030\002 \001(\t\022\034\n\024kms_key_version_name\030\004 \001(" + - "\t\022 \n\022service_account_id\030\003 \001(\tB\004\342A\001\003:\304\001\352A" + - "\300\001\n#logging.googleapis.com/CmekSettings\022" + - "\037projects/{project}/cmekSettings\022)organi" + - "zations/{organization}/cmekSettings\022\035fol" + - "ders/{folder}/cmekSettings\022.billingAccou" + - "nts/{billing_account}/cmekSettings\"L\n\022Ge" + - "tSettingsRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n" + - "\037logging.googleapis.com/Settings\"\227\001\n\025Upd" + - "ateSettingsRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0223" + - "\n\010settings\030\002 \001(\0132\033.google.logging.v2.Set" + - "tingsB\004\342A\001\002\0225\n\013update_mask\030\003 \001(\0132\032.googl" + - "e.protobuf.FieldMaskB\004\342A\001\001\"\327\002\n\010Settings\022" + - "\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\032\n\014kms_key_name\030\002 \001(" + - "\tB\004\342A\001\001\022$\n\026kms_service_account_id\030\003 \001(\tB" + - "\004\342A\001\003\022\036\n\020storage_location\030\004 \001(\tB\004\342A\001\001\022\"\n" + - "\024disable_default_sink\030\005 \001(\010B\004\342A\001\001:\260\001\352A\254\001" + - "\n\037logging.googleapis.com/Settings\022\033proje" + - "cts/{project}/settings\022%organizations/{o" + - "rganization}/settings\022\031folders/{folder}/" + - "settings\022*billingAccounts/{billing_accou" + - "nt}/settings\"\\\n\025CopyLogEntriesRequest\022\022\n" + - "\004name\030\001 \001(\tB\004\342A\001\002\022\024\n\006filter\030\003 \001(\tB\004\342A\001\001\022" + - "\031\n\013destination\030\004 \001(\tB\004\342A\001\002\"\256\002\n\026CopyLogEn" + - "triesMetadata\022.\n\nstart_time\030\001 \001(\0132\032.goog" + - "le.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132" + - "\032.google.protobuf.Timestamp\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.CopyLogEntrie" + - "sRequest\022\020\n\010progress\030\006 \001(\005\022\027\n\017writer_ide" + - "ntity\030\007 \001(\t\":\n\026CopyLogEntriesResponse\022 \n" + - "\030log_entries_copied_count\030\001 \001(\003\"\275\002\n\016Buck" + - "etMetadata\022.\n\nstart_time\030\001 \001(\0132\032.google." + - "protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.g" + - "oogle.protobuf.Timestamp\0220\n\005state\030\003 \001(\0162" + - "!.google.logging.v2.OperationState\022G\n\025cr" + - "eate_bucket_request\030\004 \001(\0132&.google.loggi" + - "ng.v2.CreateBucketRequestH\000\022G\n\025update_bu" + - "cket_request\030\005 \001(\0132&.google.logging.v2.U" + - "pdateBucketRequestH\000B\t\n\007request\"\263\002\n\014Link" + - "Metadata\022.\n\nstart_time\030\001 \001(\0132\032.google.pr" + - "otobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.goo" + - "gle.protobuf.Timestamp\0220\n\005state\030\003 \001(\0162!." + - "google.logging.v2.OperationState\022C\n\023crea" + - "te_link_request\030\004 \001(\0132$.google.logging.v" + - "2.CreateLinkRequestH\000\022C\n\023delete_link_req" + - "uest\030\005 \001(\0132$.google.logging.v2.DeleteLin" + - "kRequestH\000B\t\n\007request\"1\n\020LocationMetadat" + - "a\022\035\n\025log_analytics_enabled\030\001 \001(\010*\364\001\n\016Ope" + - "rationState\022\037\n\033OPERATION_STATE_UNSPECIFI" + - "ED\020\000\022\035\n\031OPERATION_STATE_SCHEDULED\020\001\022+\n\'O" + - "PERATION_STATE_WAITING_FOR_PERMISSIONS\020\002" + - "\022\033\n\027OPERATION_STATE_RUNNING\020\003\022\035\n\031OPERATI" + - "ON_STATE_SUCCEEDED\020\004\022\032\n\026OPERATION_STATE_" + - "FAILED\020\005\022\035\n\031OPERATION_STATE_CANCELLED\020\006*" + - "{\n\016LifecycleState\022\037\n\033LIFECYCLE_STATE_UNS" + - "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\024\n\020DELETE_REQUEST" + - "ED\020\002\022\014\n\010UPDATING\020\003\022\014\n\010CREATING\020\004\022\n\n\006FAIL" + - "ED\020\005*V\n\tIndexType\022\032\n\026INDEX_TYPE_UNSPECIF" + - "IED\020\000\022\025\n\021INDEX_TYPE_STRING\020\001\022\026\n\022INDEX_TY" + - "PE_INTEGER\020\0022\237Y\n\017ConfigServiceV2\022\334\002\n\013Lis" + - "tBuckets\022%.google.logging.v2.ListBuckets" + - "Request\032&.google.logging.v2.ListBucketsR" + - "esponse\"\375\001\332A\006parent\202\323\344\223\002\355\001\022$/v2/{parent=" + - "*/*/locations/*}/bucketsZ-\022+/v2/{parent=" + - "projects/*/locations/*}/bucketsZ2\0220/v2/{" + - "parent=organizations/*/locations/*}/buck" + - "etsZ,\022*/v2/{parent=folders/*/locations/*" + - "}/bucketsZ4\0222/v2/{parent=billingAccounts" + - "/*/locations/*}/buckets\022\305\002\n\tGetBucket\022#." + - "google.logging.v2.GetBucketRequest\032\034.goo" + - "gle.logging.v2.LogBucket\"\364\001\202\323\344\223\002\355\001\022$/v2/" + - "{name=*/*/locations/*/buckets/*}Z-\022+/v2/" + - "{name=projects/*/locations/*/buckets/*}Z" + - "2\0220/v2/{name=organizations/*/locations/*" + - "/buckets/*}Z,\022*/v2/{name=folders/*/locat" + - "ions/*/buckets/*}Z4\0222/v2/{name=billingAc" + - "counts/*/locations/*/buckets/*}\022\323\003\n\021Crea" + - "teBucketAsync\022&.google.logging.v2.Create" + - "BucketRequest\032\035.google.longrunning.Opera" + - "tion\"\366\002\312A\033\n\tLogBucket\022\016BucketMetadata\202\323\344" + - "\223\002\321\002\"0/v2/{parent=*/*/locations/*}/bucke" + - "ts:createAsync:\006bucketZA\"7/v2/{parent=pr" + - "ojects/*/locations/*}/buckets:createAsyn" + - "c:\006bucketZF\"/v2/{pare" + - "nt=billingAccounts/*/locations/*}/bucket" + - "s:createAsync:\006bucket\022\323\003\n\021UpdateBucketAs" + - "ync\022&.google.logging.v2.UpdateBucketRequ" + - "est\032\035.google.longrunning.Operation\"\366\002\312A\033" + - "\n\tLogBucket\022\016BucketMetadata\202\323\344\223\002\321\002\"0/v2/" + - "{name=*/*/locations/*/buckets/*}:updateA" + - "sync:\006bucketZA\"7/v2/{name=projects/*/loc" + - "ations/*/buckets/*}:updateAsync:\006bucketZ" + - "F\"/v2/{name=billingAc" + - "counts/*/locations/*/buckets/*}:updateAs" + - "ync:\006bucket\022\363\002\n\014CreateBucket\022&.google.lo" + - "gging.v2.CreateBucketRequest\032\034.google.lo" + - "gging.v2.LogBucket\"\234\002\202\323\344\223\002\225\002\"$/v2/{paren" + - "t=*/*/locations/*}/buckets:\006bucketZ5\"+/v" + - "2/{parent=projects/*/locations/*}/bucket" + - "s:\006bucketZ:\"0/v2/{parent=organizations/*" + - "/locations/*}/buckets:\006bucketZ4\"*/v2/{pa" + - "rent=folders/*/locations/*}/buckets:\006buc" + - "ketZ<\"2/v2/{parent=billingAccounts/*/loc" + - "ations/*}/buckets:\006bucket\022\363\002\n\014UpdateBuck" + - "et\022&.google.logging.v2.UpdateBucketReque" + - "st\032\034.google.logging.v2.LogBucket\"\234\002\202\323\344\223\002" + - "\225\0022$/v2/{name=*/*/locations/*/buckets/*}" + - ":\006bucketZ52+/v2/{name=projects/*/locatio" + - "ns/*/buckets/*}:\006bucketZ:20/v2/{name=org" + - "anizations/*/locations/*/buckets/*}:\006buc" + - "ketZ42*/v2/{name=folders/*/locations/*/b" + - "uckets/*}:\006bucketZ<22/v2/{name=billingAc" + - "counts/*/locations/*/buckets/*}:\006bucket\022" + - "\305\002\n\014DeleteBucket\022&.google.logging.v2.Del" + - "eteBucketRequest\032\026.google.protobuf.Empty" + - "\"\364\001\202\323\344\223\002\355\001*$/v2/{name=*/*/locations/*/bu" + - "ckets/*}Z-*+/v2/{name=projects/*/locatio" + - "ns/*/buckets/*}Z2*0/v2/{name=organizatio" + - "ns/*/locations/*/buckets/*}Z,**/v2/{name" + - "=folders/*/locations/*/buckets/*}Z4*2/v2" + - "/{name=billingAccounts/*/locations/*/buc" + - "kets/*}\022\205\003\n\016UndeleteBucket\022(.google.logg" + - "ing.v2.UndeleteBucketRequest\032\026.google.pr" + - "otobuf.Empty\"\260\002\202\323\344\223\002\251\002\"-/v2/{name=*/*/lo" + - "cations/*/buckets/*}:undelete:\001*Z9\"4/v2/" + - "{name=projects/*/locations/*/buckets/*}:" + - "undelete:\001*Z>\"9/v2/{name=organizations/*" + - "/locations/*/buckets/*}:undelete:\001*Z8\"3/" + - "v2/{name=folders/*/locations/*/buckets/*" + - "}:undelete:\001*Z@\";/v2/{name=billingAccoun" + - "ts/*/locations/*/buckets/*}:undelete:\001*\022" + - "\376\002\n\tListViews\022#.google.logging.v2.ListVi" + - "ewsRequest\032$.google.logging.v2.ListViews" + - "Response\"\245\002\332A\006parent\202\323\344\223\002\225\002\022,/v2/{parent" + - "=*/*/locations/*/buckets/*}/viewsZ5\0223/v2" + - "/{parent=projects/*/locations/*/buckets/" + - "*}/viewsZ:\0228/v2/{parent=organizations/*/" + - "locations/*/buckets/*}/viewsZ4\0222/v2/{par" + - "ent=folders/*/locations/*/buckets/*}/vie" + - "wsZ<\022:/v2/{parent=billingAccounts/*/loca" + - "tions/*/buckets/*}/views\022\347\002\n\007GetView\022!.g" + - "oogle.logging.v2.GetViewRequest\032\032.google" + - ".logging.v2.LogView\"\234\002\202\323\344\223\002\225\002\022,/v2/{name" + - "=*/*/locations/*/buckets/*/views/*}Z5\0223/" + - "v2/{name=projects/*/locations/*/buckets/" + - "*/views/*}Z:\0228/v2/{name=organizations/*/" + - "locations/*/buckets/*/views/*}Z4\0222/v2/{n" + - "ame=folders/*/locations/*/buckets/*/view" + - "s/*}Z<\022:/v2/{name=billingAccounts/*/loca" + - "tions/*/buckets/*/views/*}\022\213\003\n\nCreateVie" + - "w\022$.google.logging.v2.CreateViewRequest\032" + - "\032.google.logging.v2.LogView\"\272\002\202\323\344\223\002\263\002\",/" + - "v2/{parent=*/*/locations/*/buckets/*}/vi" + - "ews:\004viewZ;\"3/v2/{parent=projects/*/loca" + - "tions/*/buckets/*}/views:\004viewZ@\"8/v2/{p" + - "arent=organizations/*/locations/*/bucket" + - "s/*}/views:\004viewZ:\"2/v2/{parent=folders/" + - "*/locations/*/buckets/*}/views:\004viewZB\":" + - "/v2/{parent=billingAccounts/*/locations/" + - "*/buckets/*}/views:\004view\022\213\003\n\nUpdateView\022" + - "$.google.logging.v2.UpdateViewRequest\032\032." + - "google.logging.v2.LogView\"\272\002\202\323\344\223\002\263\0022,/v2" + - "/{name=*/*/locations/*/buckets/*/views/*" + - "}:\004viewZ;23/v2/{name=projects/*/location" + - "s/*/buckets/*/views/*}:\004viewZ@28/v2/{nam" + - "e=organizations/*/locations/*/buckets/*/" + - "views/*}:\004viewZ:22/v2/{name=folders/*/lo" + - "cations/*/buckets/*/views/*}:\004viewZB2:/v" + - "2/{name=billingAccounts/*/locations/*/bu" + - "ckets/*/views/*}:\004view\022\351\002\n\nDeleteView\022$." + - "google.logging.v2.DeleteViewRequest\032\026.go" + - "ogle.protobuf.Empty\"\234\002\202\323\344\223\002\225\002*,/v2/{name" + - "=*/*/locations/*/buckets/*/views/*}Z5*3/" + - "v2/{name=projects/*/locations/*/buckets/" + - "*/views/*}Z:*8/v2/{name=organizations/*/" + - "locations/*/buckets/*/views/*}Z4*2/v2/{n" + - "ame=folders/*/locations/*/buckets/*/view" + - "s/*}Z<*:/v2/{name=billingAccounts/*/loca" + - "tions/*/buckets/*/views/*}\022\220\002\n\tListSinks" + - "\022#.google.logging.v2.ListSinksRequest\032$." + - "google.logging.v2.ListSinksResponse\"\267\001\332A" + - "\006parent\202\323\344\223\002\247\001\022\026/v2/{parent=*/*}/sinksZ\037" + - "\022\035/v2/{parent=projects/*}/sinksZ$\022\"/v2/{" + - "parent=organizations/*}/sinksZ\036\022\034/v2/{pa" + - "rent=folders/*}/sinksZ&\022$/v2/{parent=bil" + - "lingAccounts/*}/sinks\022\236\002\n\007GetSink\022!.goog" + - "le.logging.v2.GetSinkRequest\032\032.google.lo" + - "gging.v2.LogSink\"\323\001\332A\tsink_name\202\323\344\223\002\300\001\022\033" + - "/v2/{sink_name=*/*/sinks/*}Z$\022\"/v2/{sink" + - "_name=projects/*/sinks/*}Z)\022\'/v2/{sink_n" + - "ame=organizations/*/sinks/*}Z#\022!/v2/{sin" + - "k_name=folders/*/sinks/*}Z+\022)/v2/{sink_n" + - "ame=billingAccounts/*/sinks/*}\022\253\002\n\nCreat" + - "eSink\022$.google.logging.v2.CreateSinkRequ" + - "est\032\032.google.logging.v2.LogSink\"\332\001\332A\013par" + - "ent,sink\202\323\344\223\002\305\001\"\026/v2/{parent=*/*}/sinks:" + - "\004sinkZ%\"\035/v2/{parent=projects/*}/sinks:\004" + - "sinkZ*\"\"/v2/{parent=organizations/*}/sin" + - "ks:\004sinkZ$\"\034/v2/{parent=folders/*}/sinks" + - ":\004sinkZ,\"$/v2/{parent=billingAccounts/*}" + - "/sinks:\004sink\022\237\004\n\nUpdateSink\022$.google.log" + - "ging.v2.UpdateSinkRequest\032\032.google.loggi" + - "ng.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/*}:\004sinkZ*\032\"/v2/{sink_na" + - "me=projects/*/sinks/*}:\004sinkZ/\032\'/v2/{sin" + - "k_name=organizations/*/sinks/*}:\004sinkZ)\032", - "!/v2/{sink_name=folders/*/sinks/*}:\004sink" + - "Z1\032)/v2/{sink_name=billingAccounts/*/sin" + - "ks/*}:\004sinkZ*2\"/v2/{sink_name=projects/*" + - "/sinks/*}:\004sinkZ/2\'/v2/{sink_name=organi" + - "zations/*/sinks/*}:\004sinkZ)2!/v2/{sink_na" + - "me=folders/*/sinks/*}:\004sinkZ12)/v2/{sink" + - "_name=billingAccounts/*/sinks/*}:\004sink\022\240" + - "\002\n\nDeleteSink\022$.google.logging.v2.Delete" + - "SinkRequest\032\026.google.protobuf.Empty\"\323\001\332A" + - "\tsink_name\202\323\344\223\002\300\001*\033/v2/{sink_name=*/*/si" + - "nks/*}Z$*\"/v2/{sink_name=projects/*/sink" + - "s/*}Z)*\'/v2/{sink_name=organizations/*/s" + - "inks/*}Z#*!/v2/{sink_name=folders/*/sink" + - "s/*}Z+*)/v2/{sink_name=billingAccounts/*" + - "/sinks/*}\022\273\003\n\nCreateLink\022$.google.loggin" + - "g.v2.CreateLinkRequest\032\035.google.longrunn" + - "ing.Operation\"\347\002\312A\024\n\004Link\022\014LinkMetadata\332" + - "A\023parent,link,link_id\202\323\344\223\002\263\002\",/v2/{paren" + - "t=*/*/locations/*/buckets/*}/links:\004link" + - "Z;\"3/v2/{parent=projects/*/locations/*/b" + - "uckets/*}/links:\004linkZ@\"8/v2/{parent=org" + - "anizations/*/locations/*/buckets/*}/link" + - "s:\004linkZ:\"2/v2/{parent=folders/*/locatio" + - "ns/*/buckets/*}/links:\004linkZB\":/v2/{pare" + - "nt=billingAccounts/*/locations/*/buckets" + - "/*}/links:\004link\022\237\003\n\nDeleteLink\022$.google." + - "logging.v2.DeleteLinkRequest\032\035.google.lo" + - "ngrunning.Operation\"\313\002\312A%\n\025google.protob" + - "uf.Empty\022\014LinkMetadata\332A\004name\202\323\344\223\002\225\002*,/v" + - "2/{name=*/*/locations/*/buckets/*/links/" + - "*}Z5*3/v2/{name=projects/*/locations/*/b" + - "uckets/*/links/*}Z:*8/v2/{name=organizat" + - "ions/*/locations/*/buckets/*/links/*}Z4*" + - "2/v2/{name=folders/*/locations/*/buckets" + - "/*/links/*}Z<*:/v2/{name=billingAccounts" + - "/*/locations/*/buckets/*/links/*}\022\376\002\n\tLi" + - "stLinks\022#.google.logging.v2.ListLinksReq" + - "uest\032$.google.logging.v2.ListLinksRespon" + - "se\"\245\002\332A\006parent\202\323\344\223\002\225\002\022,/v2/{parent=*/*/l" + - "ocations/*/buckets/*}/linksZ5\0223/v2/{pare" + - "nt=projects/*/locations/*/buckets/*}/lin" + - "ksZ:\0228/v2/{parent=organizations/*/locati" + - "ons/*/buckets/*}/linksZ4\0222/v2/{parent=fo" + - "lders/*/locations/*/buckets/*}/linksZ<\022:" + - "/v2/{parent=billingAccounts/*/locations/" + - "*/buckets/*}/links\022\353\002\n\007GetLink\022!.google." + - "logging.v2.GetLinkRequest\032\027.google.loggi" + - "ng.v2.Link\"\243\002\332A\004name\202\323\344\223\002\225\002\022,/v2/{name=*" + - "/*/locations/*/buckets/*/links/*}Z5\0223/v2" + - "/{name=projects/*/locations/*/buckets/*/" + - "links/*}Z:\0228/v2/{name=organizations/*/lo" + - "cations/*/buckets/*/links/*}Z4\0222/v2/{nam" + - "e=folders/*/locations/*/buckets/*/links/" + - "*}Z<\022:/v2/{name=billingAccounts/*/locati" + - "ons/*/buckets/*/links/*}\022\270\002\n\016ListExclusi" + - "ons\022(.google.logging.v2.ListExclusionsRe" + - "quest\032).google.logging.v2.ListExclusions" + - "Response\"\320\001\332A\006parent\202\323\344\223\002\300\001\022\033/v2/{parent" + - "=*/*}/exclusionsZ$\022\"/v2/{parent=projects" + - "/*}/exclusionsZ)\022\'/v2/{parent=organizati" + - "ons/*}/exclusionsZ#\022!/v2/{parent=folders" + - "/*}/exclusionsZ+\022)/v2/{parent=billingAcc" + - "ounts/*}/exclusions\022\250\002\n\014GetExclusion\022&.g" + - "oogle.logging.v2.GetExclusionRequest\032\037.g" + - "oogle.logging.v2.LogExclusion\"\316\001\332A\004name\202" + - "\323\344\223\002\300\001\022\033/v2/{name=*/*/exclusions/*}Z$\022\"/" + - "v2/{name=projects/*/exclusions/*}Z)\022\'/v2" + - "/{name=organizations/*/exclusions/*}Z#\022!" + - "/v2/{name=folders/*/exclusions/*}Z+\022)/v2" + - "/{name=billingAccounts/*/exclusions/*}\022\361" + - "\002\n\017CreateExclusion\022).google.logging.v2.C" + - "reateExclusionRequest\032\037.google.logging.v" + - "2.LogExclusion\"\221\002\332A\020parent,exclusion\202\323\344\223" + - "\002\367\001\"\033/v2/{parent=*/*}/exclusions:\texclus" + - "ionZ/\"\"/v2/{parent=projects/*}/exclusion" + - "s:\texclusionZ4\"\'/v2/{parent=organization" + - "s/*}/exclusions:\texclusionZ.\"!/v2/{paren" + - "t=folders/*}/exclusions:\texclusionZ6\")/v" + - "2/{parent=billingAccounts/*}/exclusions:" + - "\texclusion\022\373\002\n\017UpdateExclusion\022).google." + - "logging.v2.UpdateExclusionRequest\032\037.goog" + - "le.logging.v2.LogExclusion\"\233\002\332A\032name,exc" + - "lusion,update_mask\202\323\344\223\002\367\0012\033/v2/{name=*/*" + - "/exclusions/*}:\texclusionZ/2\"/v2/{name=p" + - "rojects/*/exclusions/*}:\texclusionZ42\'/v" + - "2/{name=organizations/*/exclusions/*}:\te" + - "xclusionZ.2!/v2/{name=folders/*/exclusio" + - "ns/*}:\texclusionZ62)/v2/{name=billingAcc" + - "ounts/*/exclusions/*}:\texclusion\022\245\002\n\017Del" + - "eteExclusion\022).google.logging.v2.DeleteE" + - "xclusionRequest\032\026.google.protobuf.Empty\"" + - "\316\001\332A\004name\202\323\344\223\002\300\001*\033/v2/{name=*/*/exclusio" + - "ns/*}Z$*\"/v2/{name=projects/*/exclusions" + - "/*}Z)*\'/v2/{name=organizations/*/exclusi" + - "ons/*}Z#*!/v2/{name=folders/*/exclusions" + - "/*}Z+*)/v2/{name=billingAccounts/*/exclu" + - "sions/*}\022\247\002\n\017GetCmekSettings\022).google.lo" + - "gging.v2.GetCmekSettingsRequest\032\037.google" + - ".logging.v2.CmekSettings\"\307\001\202\323\344\223\002\300\001\022\033/v2/" + - "{name=*/*}/cmekSettingsZ$\022\"/v2/{name=pro" + - "jects/*}/cmekSettingsZ)\022\'/v2/{name=organ" + - "izations/*}/cmekSettingsZ#\022!/v2/{name=fo" + - "lders/*}/cmekSettingsZ+\022)/v2/{name=billi" + - "ngAccounts/*}/cmekSettings\022\321\001\n\022UpdateCme" + - "kSettings\022,.google.logging.v2.UpdateCmek" + - "SettingsRequest\032\037.google.logging.v2.Cmek" + - "Settings\"l\202\323\344\223\002f2\033/v2/{name=*/*}/cmekSet" + - "tings:\rcmek_settingsZ82\'/v2/{name=organi" + - "zations/*}/cmekSettings:\rcmek_settings\022\216" + - "\002\n\013GetSettings\022%.google.logging.v2.GetSe" + - "ttingsRequest\032\033.google.logging.v2.Settin" + - "gs\"\272\001\332A\004name\202\323\344\223\002\254\001\022\027/v2/{name=*/*}/sett" + - "ingsZ \022\036/v2/{name=projects/*}/settingsZ%" + - "\022#/v2/{name=organizations/*}/settingsZ\037\022" + - "\035/v2/{name=folders/*}/settingsZ\'\022%/v2/{n" + - "ame=billingAccounts/*}/settings\022\366\001\n\016Upda" + - "teSettings\022(.google.logging.v2.UpdateSet" + - "tingsRequest\032\033.google.logging.v2.Setting" + - "s\"\234\001\332A\024settings,update_mask\202\323\344\223\002\1772\027/v2/{" + - "name=*/*}/settings:\010settingsZ/2#/v2/{nam" + - "e=organizations/*}/settings:\010settingsZ)2" + - "\035/v2/{name=folders/*}/settings:\010settings" + - "\022\251\001\n\016CopyLogEntries\022(.google.logging.v2." + - "CopyLogEntriesRequest\032\035.google.longrunni" + - "ng.Operation\"N\312A0\n\026CopyLogEntriesRespons" + - "e\022\026CopyLogEntriesMetadata\202\323\344\223\002\025\"\020/v2/ent" + - "ries:copy:\001*\032\337\001\312A\026logging.googleapis.com" + - "\322A\302\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.readB\326" + - "\003\n\025com.google.logging.v2B\022LoggingConfigP" + - "rotoP\001Z5cloud.google.com/go/logging/apiv" + - "2/loggingpb;loggingpb\370\001\001\252\002\027Google.Cloud." + - "Logging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032G" + - "oogle::Cloud::Logging::V2\352A`\n+logging.go" + - "ogleapis.com/OrganizationLocation\0221organ" + - "izations/{organization}/locations/{locat" + - "ion}\352AN\n%logging.googleapis.com/FolderLo" + - "cation\022%folders/{folder}/locations/{loca" + - "tion}\352Ag\n-logging.googleapis.com/Billing" + - "AccountLocation\0226billingAccounts/{billin" + - "g_account}/locations/{location}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 a066df222..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 - -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\"\310\005\n\tLogMetric\022\022\n\004name\030\001 \001(" + - "\tB\004\342A\001\002\022\031\n\013description\030\002 \001(\tB\004\342A\001\001\022\024\n\006fi" + - "lter\030\003 \001(\tB\004\342A\001\002\022\031\n\013bucket_name\030\r \001(\tB\004\342" + - "A\001\001\022\026\n\010disabled\030\014 \001(\010B\004\342A\001\001\022=\n\021metric_de" + - "scriptor\030\005 \001(\0132\034.google.api.MetricDescri" + - "ptorB\004\342A\001\001\022\035\n\017value_extractor\030\006 \001(\tB\004\342A\001" + - "\001\022Q\n\020label_extractors\030\007 \003(\01321.google.log" + - "ging.v2.LogMetric.LabelExtractorsEntryB\004" + - "\342A\001\001\022D\n\016bucket_options\030\010 \001(\0132&.google.ap" + - "i.Distribution.BucketOptionsB\004\342A\001\001\0225\n\013cr" + - "eate_time\030\t \001(\0132\032.google.protobuf.Timest" + - "ampB\004\342A\001\003\0225\n\013update_time\030\n \001(\0132\032.google." + - "protobuf.TimestampB\004\342A\001\003\022<\n\007version\030\004 \001(" + - "\0162\'.google.logging.v2.LogMetric.ApiVersi" + - "onB\002\030\001\0326\n\024LabelExtractorsEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\034\n\nApiVersion\022\006\n\002" + - "V2\020\000\022\006\n\002V1\020\001:J\352AG\n logging.googleapis.co" + - "m/LogMetric\022#projects/{project}/metrics/" + - "{metric}\"\220\001\n\025ListLogMetricsRequest\022D\n\006pa" + - "rent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanage" + - "r.googleapis.com/Project\022\030\n\npage_token\030\002" + - " \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"`\n\026L" + - "istLogMetricsResponse\022-\n\007metrics\030\001 \003(\0132\034" + - ".google.logging.v2.LogMetric\022\027\n\017next_pag" + - "e_token\030\002 \001(\t\"U\n\023GetLogMetricRequest\022>\n\013" + - "metric_name\030\001 \001(\tB)\342A\001\002\372A\"\n logging.goog" + - "leapis.com/LogMetric\"\207\001\n\026CreateLogMetric" + - "Request\0229\n\006parent\030\001 \001(\tB)\342A\001\002\372A\"\022 loggin" + - "g.googleapis.com/LogMetric\0222\n\006metric\030\002 \001" + - "(\0132\034.google.logging.v2.LogMetricB\004\342A\001\002\"\214" + - "\001\n\026UpdateLogMetricRequest\022>\n\013metric_name" + - "\030\001 \001(\tB)\342A\001\002\372A\"\n logging.googleapis.com/" + - "LogMetric\0222\n\006metric\030\002 \001(\0132\034.google.loggi" + - "ng.v2.LogMetricB\004\342A\001\002\"X\n\026DeleteLogMetric" + - "Request\022>\n\013metric_name\030\001 \001(\tB)\342A\001\002\372A\"\n l" + - "ogging.googleapis.com/LogMetric2\256\010\n\020Metr" + - "icsServiceV2\022\227\001\n\016ListLogMetrics\022(.google" + - ".logging.v2.ListLogMetricsRequest\032).goog" + - "le.logging.v2.ListLogMetricsResponse\"0\332A" + - "\006parent\202\323\344\223\002!\022\037/v2/{parent=projects/*}/m" + - "etrics\022\222\001\n\014GetLogMetric\022&.google.logging" + - ".v2.GetLogMetricRequest\032\034.google.logging" + - ".v2.LogMetric\"<\332A\013metric_name\202\323\344\223\002(\022&/v2" + - "/{metric_name=projects/*/metrics/*}\022\233\001\n\017" + - "CreateLogMetric\022).google.logging.v2.Crea" + - "teLogMetricRequest\032\034.google.logging.v2.L" + - "ogMetric\"?\332A\rparent,metric\202\323\344\223\002)\"\037/v2/{p" + - "arent=projects/*}/metrics:\006metric\022\247\001\n\017Up" + - "dateLogMetric\022).google.logging.v2.Update" + - "LogMetricRequest\032\034.google.logging.v2.Log" + - "Metric\"K\332A\022metric_name,metric\202\323\344\223\0020\032&/v2" + - "/{metric_name=projects/*/metrics/*}:\006met" + - "ric\022\222\001\n\017DeleteLogMetric\022).google.logging" + - ".v2.DeleteLogMetricRequest\032\026.google.prot" + - "obuf.Empty\"<\332A\013metric_name\202\323\344\223\002(*&/v2/{m" + - "etric_name=projects/*/metrics/*}\032\215\002\312A\026lo" + - "gging.googleapis.com\322A\360\001https://www.goog" + - "leapis.com/auth/cloud-platform,https://w" + - "ww.googleapis.com/auth/cloud-platform.re" + - "ad-only,https://www.googleapis.com/auth/" + - "logging.admin,https://www.googleapis.com" + - "/auth/logging.read,https://www.googleapi" + - "s.com/auth/logging.writeB\271\001\n\025com.google." + - "logging.v2B\023LoggingMetricsProtoP\001Z5cloud" + - ".google.com/go/logging/apiv2/loggingpb;l" + - "oggingpb\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027" + - "Google\\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 48907c34e..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 - -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\"I\n\020DeleteLogRequest\0225\n\010log_name\030\001 " + - "\001(\tB#\342A\001\002\372A\034\n\032logging.googleapis.com/Log" + - "\"\354\002\n\026WriteLogEntriesRequest\0225\n\010log_name\030" + - "\001 \001(\tB#\342A\001\001\372A\034\n\032logging.googleapis.com/L" + - "og\0225\n\010resource\030\002 \001(\0132\035.google.api.Monito" + - "redResourceB\004\342A\001\001\022K\n\006labels\030\003 \003(\01325.goog" + - "le.logging.v2.WriteLogEntriesRequest.Lab" + - "elsEntryB\004\342A\001\001\0222\n\007entries\030\004 \003(\0132\033.google" + - ".logging.v2.LogEntryB\004\342A\001\002\022\035\n\017partial_su" + - "ccess\030\005 \001(\010B\004\342A\001\001\022\025\n\007dry_run\030\006 \001(\010B\004\342A\001\001" + - "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001\"\031\n\027WriteLogEntriesResponse\"\310\001\n\034W" + - "riteLogEntriesPartialErrors\022]\n\020log_entry" + - "_errors\030\001 \003(\0132C.google.logging.v2.WriteL" + - "ogEntriesPartialErrors.LogEntryErrorsEnt" + - "ry\032I\n\023LogEntryErrorsEntry\022\013\n\003key\030\001 \001(\005\022!" + - "\n\005value\030\002 \001(\0132\022.google.rpc.Status:\0028\001\"\265\001" + - "\n\025ListLogEntriesRequest\022;\n\016resource_name" + - "s\030\010 \003(\tB#\342A\001\002\372A\034\022\032logging.googleapis.com" + - "/Log\022\024\n\006filter\030\002 \001(\tB\004\342A\001\001\022\026\n\010order_by\030\003" + - " \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\004 \001(\005B\004\342A\001\001\022\030\n\np" + - "age_token\030\005 \001(\tB\004\342A\001\001\"_\n\026ListLogEntriesR" + - "esponse\022,\n\007entries\030\001 \003(\0132\033.google.loggin" + - "g.v2.LogEntry\022\027\n\017next_page_token\030\002 \001(\t\"\\" + - "\n\'ListMonitoredResourceDescriptorsReques" + - "t\022\027\n\tpage_size\030\001 \001(\005B\004\342A\001\001\022\030\n\npage_token" + - "\030\002 \001(\tB\004\342A\001\001\"\212\001\n(ListMonitoredResourceDe" + - "scriptorsResponse\022E\n\024resource_descriptor" + - "s\030\001 \003(\0132\'.google.api.MonitoredResourceDe" + - "scriptor\022\027\n\017next_page_token\030\002 \001(\t\"\266\001\n\017Li" + - "stLogsRequest\0223\n\006parent\030\001 \001(\tB#\342A\001\002\372A\034\022\032" + - "logging.googleapis.com/Log\022;\n\016resource_n" + - "ames\030\010 \003(\tB#\342A\001\001\372A\034\022\032logging.googleapis." + - "com/Log\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + - "_token\030\003 \001(\tB\004\342A\001\001\">\n\020ListLogsResponse\022\021" + - "\n\tlog_names\030\003 \003(\t\022\027\n\017next_page_token\030\002 \001" + - "(\t\"\203\001\n\025TailLogEntriesRequest\022\034\n\016resource" + - "_names\030\001 \003(\tB\004\342A\001\002\022\024\n\006filter\030\002 \001(\tB\004\342A\001\001" + - "\0226\n\rbuffer_window\030\003 \001(\0132\031.google.protobu" + - "f.DurationB\004\342A\001\001\"\337\002\n\026TailLogEntriesRespo" + - "nse\022,\n\007entries\030\001 \003(\0132\033.google.logging.v2" + - ".LogEntry\022S\n\020suppression_info\030\002 \003(\01329.go" + - "ogle.logging.v2.TailLogEntriesResponse.S" + - "uppressionInfo\032\301\001\n\017SuppressionInfo\022P\n\006re" + - "ason\030\001 \001(\0162@.google.logging.v2.TailLogEn" + - "triesResponse.SuppressionInfo.Reason\022\030\n\020" + - "suppressed_count\030\002 \001(\005\"B\n\006Reason\022\026\n\022REAS" + - "ON_UNSPECIFIED\020\000\022\016\n\nRATE_LIMIT\020\001\022\020\n\014NOT_" + - "CONSUMED\020\0022\351\r\n\020LoggingServiceV2\022\223\002\n\tDele" + - "teLog\022#.google.logging.v2.DeleteLogReque" + - "st\032\026.google.protobuf.Empty\"\310\001\332A\010log_name" + - "\202\323\344\223\002\266\001* /v2/{log_name=projects/*/logs/*" + - "}Z\033*\031/v2/{log_name=*/*/logs/*}Z\'*%/v2/{l" + - "og_name=organizations/*/logs/*}Z!*\037/v2/{" + - "log_name=folders/*/logs/*}Z)*\'/v2/{log_n" + - "ame=billingAccounts/*/logs/*}\022\251\001\n\017WriteL" + - "ogEntries\022).google.logging.v2.WriteLogEn" + - "triesRequest\032*.google.logging.v2.WriteLo" + - "gEntriesResponse\"?\332A log_name,resource,l" + - "abels,entries\202\323\344\223\002\026\"\021/v2/entries:write:\001" + - "*\022\243\001\n\016ListLogEntries\022(.google.logging.v2" + - ".ListLogEntriesRequest\032).google.logging." + - "v2.ListLogEntriesResponse\"<\332A\036resource_n" + - "ames,filter,order_by\202\323\344\223\002\025\"\020/v2/entries:" + - "list:\001*\022\305\001\n ListMonitoredResourceDescrip" + - "tors\022:.google.logging.v2.ListMonitoredRe" + - "sourceDescriptorsRequest\032;.google.loggin" + - "g.v2.ListMonitoredResourceDescriptorsRes" + - "ponse\"(\202\323\344\223\002\"\022 /v2/monitoredResourceDesc" + - "riptors\022\213\004\n\010ListLogs\022\".google.logging.v2" + - ".ListLogsRequest\032#.google.logging.v2.Lis" + - "tLogsResponse\"\265\003\332A\006parent\202\323\344\223\002\245\003\022\025/v2/{p" + - "arent=*/*}/logsZ\036\022\034/v2/{parent=projects/" + - "*}/logsZ#\022!/v2/{parent=organizations/*}/" + - "logsZ\035\022\033/v2/{parent=folders/*}/logsZ%\022#/" + - "v2/{parent=billingAccounts/*}/logsZ<\022:/v" + - "2/{parent=projects/*/locations/*/buckets" + - "/*/views/*}/logsZA\022?/v2/{parent=organiza" + - "tions/*/locations/*/buckets/*/views/*}/l" + - "ogsZ;\0229/v2/{parent=folders/*/locations/*" + - "/buckets/*/views/*}/logsZC\022A/v2/{parent=" + - "billingAccounts/*/locations/*/buckets/*/" + - "views/*}/logs\022\206\001\n\016TailLogEntries\022(.googl" + - "e.logging.v2.TailLogEntriesRequest\032).goo" + - "gle.logging.v2.TailLogEntriesResponse\"\033\202" + - "\323\344\223\002\025\"\020/v2/entries:tail:\001*(\0010\001\032\215\002\312A\026logg" + - "ing.googleapis.com\322A\360\001https://www.google" + - "apis.com/auth/cloud-platform,https://www" + - ".googleapis.com/auth/cloud-platform.read" + - "-only,https://www.googleapis.com/auth/lo" + - "gging.admin,https://www.googleapis.com/a" + - "uth/logging.read,https://www.googleapis." + - "com/auth/logging.writeB\262\001\n\025com.google.lo" + - "gging.v2B\014LoggingProtoP\001Z5cloud.google.c" + - "om/go/logging/apiv2/loggingpb;loggingpb\370" + - "\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Cl" + - "oud\\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.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 f034c806d..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/logging/v2/logging.proto - -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 69% 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 df7c377ad..80d749ba3 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -58,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The datasetId. */ @java.lang.Override @@ -66,14 +89,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
@@ -85,16 +109,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 { @@ -103,6 +126,7 @@ public java.lang.String getDatasetId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -114,8 +138,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); } @@ -139,15 +162,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; } @@ -166,132 +188,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(); @@ -301,9 +326,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 @@ -322,8 +347,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; } @@ -339,38 +367,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; @@ -410,17 +439,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) { @@ -430,10 +461,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
@@ -445,13 +479,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; @@ -460,6 +494,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
@@ -471,15 +507,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 { @@ -487,6 +522,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
@@ -498,18 +535,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
@@ -521,6 +562,7 @@ public Builder setDatasetId(
      * 
* * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDatasetId() { @@ -530,6 +572,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
@@ -541,21 +585,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); } @@ -565,12 +611,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(); } @@ -579,27 +625,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; @@ -614,6 +660,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 282beac64..a8663b770 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -19,10 +37,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
@@ -34,8 +55,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 071befe4b..99d7a8248 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,50 +1,70 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -57,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The usePartitionedTables. */ @java.lang.Override @@ -67,6 +88,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.
@@ -77,7 +100,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 @@ -86,6 +111,7 @@ public boolean getUsesTimestampColumnPartitioning() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +123,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_); } @@ -115,12 +140,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; @@ -130,17 +155,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; } @@ -153,142 +177,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(); @@ -299,9 +326,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 @@ -320,8 +347,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; } @@ -340,38 +370,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; @@ -412,22 +443,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) { @@ -437,10 +471,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
@@ -453,6 +490,7 @@ public Builder mergeFrom(
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The usePartitionedTables. */ @java.lang.Override @@ -460,6 +498,8 @@ public boolean getUsePartitionedTables() { return usePartitionedTables_; } /** + * + * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -472,6 +512,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. */ @@ -483,6 +524,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
@@ -495,6 +538,7 @@ public Builder setUsePartitionedTables(boolean value) {
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUsePartitionedTables() { @@ -504,8 +548,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.
@@ -516,7 +562,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 @@ -524,6 +573,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.
@@ -534,7 +585,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. */ @@ -546,6 +600,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.
@@ -556,7 +612,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() { @@ -565,9 +624,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); } @@ -577,12 +636,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(); } @@ -591,27 +650,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; @@ -626,6 +685,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 68% 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 743b341c5..8b5c9bfcf 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -20,11 +38,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.
@@ -35,7 +56,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 72% 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 0b7efd507..2a113d601 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,58 +1,81 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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 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; } @@ -68,31 +91,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 @@ -100,11 +129,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -112,6 +144,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The create time of an operation.
    * 
@@ -126,11 +160,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 @@ -138,11 +175,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -150,6 +190,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The end time of an operation.
    * 
@@ -164,36 +206,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 @@ -201,21 +255,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.
    * 
@@ -225,18 +284,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 @@ -244,21 +306,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.
    * 
@@ -268,12 +335,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; @@ -285,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 (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -312,24 +379,23 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } 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; @@ -339,7 +405,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); @@ -348,24 +414,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: @@ -408,132 +470,135 @@ 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() - 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(); @@ -561,9 +626,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 @@ -583,7 +648,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; @@ -592,14 +659,10 @@ public com.google.logging.v2.BucketMetadata buildPartial() { private void buildPartial0(com.google.logging.v2.BucketMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.state_ = state_; @@ -609,12 +672,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(); } } @@ -623,38 +684,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; @@ -673,17 +735,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(); @@ -711,45 +776,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) { @@ -759,12 +824,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() { @@ -778,24 +843,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() { @@ -806,6 +880,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The create time of an operation.
      * 
@@ -826,14 +902,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 { @@ -844,6 +921,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -852,9 +931,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; @@ -867,6 +946,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -884,6 +965,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -896,6 +979,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The create time of an operation.
      * 
@@ -906,11 +991,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.
      * 
@@ -918,14 +1004,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_; @@ -933,24 +1022,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() { @@ -961,6 +1059,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The end time of an operation.
      * 
@@ -981,14 +1081,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 { @@ -999,6 +1100,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1007,9 +1110,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; @@ -1022,6 +1125,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1039,6 +1144,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1051,6 +1158,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The end time of an operation.
      * 
@@ -1061,11 +1170,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.
      * 
@@ -1073,14 +1183,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_; @@ -1088,22 +1201,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. */ @@ -1114,24 +1234,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. */ @@ -1145,11 +1272,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() { @@ -1160,13 +1290,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 @@ -1174,11 +1310,14 @@ public boolean hasCreateBucketRequest() { return requestCase_ == 4; } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
* * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + * * @return The createBucketRequest. */ @java.lang.Override @@ -1196,6 +1335,8 @@ public com.google.logging.v2.CreateBucketRequest getCreateBucketRequest() { } } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1216,6 +1357,8 @@ public Builder setCreateBucketRequest(com.google.logging.v2.CreateBucketRequest return this; } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1234,6 +1377,8 @@ public Builder setCreateBucketRequest( return this; } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1242,10 +1387,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; } @@ -1261,6 +1409,8 @@ public Builder mergeCreateBucketRequest(com.google.logging.v2.CreateBucketReques return this; } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1284,6 +1434,8 @@ public Builder clearCreateBucketRequest() { return this; } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1294,6 +1446,8 @@ public com.google.logging.v2.CreateBucketRequest.Builder getCreateBucketRequestB return getCreateBucketRequestFieldBuilder().getBuilder(); } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1312,6 +1466,8 @@ public com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequest } } /** + * + * *
      * LongRunningCreateBucket RPC request.
      * 
@@ -1319,14 +1475,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()); @@ -1338,13 +1499,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 @@ -1352,11 +1519,14 @@ public boolean hasUpdateBucketRequest() { return requestCase_ == 5; } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
* * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + * * @return The updateBucketRequest. */ @java.lang.Override @@ -1374,6 +1544,8 @@ public com.google.logging.v2.UpdateBucketRequest getUpdateBucketRequest() { } } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1394,6 +1566,8 @@ public Builder setUpdateBucketRequest(com.google.logging.v2.UpdateBucketRequest return this; } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1412,6 +1586,8 @@ public Builder setUpdateBucketRequest( return this; } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1420,10 +1596,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; } @@ -1439,6 +1618,8 @@ public Builder mergeUpdateBucketRequest(com.google.logging.v2.UpdateBucketReques return this; } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1462,6 +1643,8 @@ public Builder clearUpdateBucketRequest() { return this; } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1472,6 +1655,8 @@ public com.google.logging.v2.UpdateBucketRequest.Builder getUpdateBucketRequestB return getUpdateBucketRequestFieldBuilder().getBuilder(); } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1490,6 +1675,8 @@ public com.google.logging.v2.UpdateBucketRequestOrBuilder getUpdateBucketRequest } } /** + * + * *
      * LongRunningUpdateBucket RPC request.
      * 
@@ -1497,14 +1684,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()); @@ -1514,9 +1706,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); } @@ -1526,12 +1718,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(); } @@ -1540,27 +1732,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; @@ -1575,6 +1767,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 247133574..efb1b1017 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,31 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    * 
@@ -35,24 +59,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.
    * 
@@ -62,43 +94,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.
    * 
@@ -108,24 +154,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 457cd55ec..b5d14a117 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,9 +1,26 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 package com.google.logging.v2; /** + * + * *
  * Describes the customer-managed encryption key (CMEK) settings associated with
  * a project, folder, organization, billing account, or flexible resource.
@@ -19,15 +36,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_ = "";
@@ -37,33 +55,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 @@ -72,29 +95,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 { @@ -103,9 +126,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.
    *
@@ -138,6 +164,7 @@ public java.lang.String getName() {
    * 
* * string kms_key_name = 2; + * * @return The kmsKeyName. */ @java.lang.Override @@ -146,14 +173,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.
    *
@@ -186,16 +214,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 { @@ -204,9 +231,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.
    *
@@ -228,6 +258,7 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_key_version_name = 4; + * * @return The kmsKeyVersionName. */ @java.lang.Override @@ -236,14 +267,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.
    *
@@ -265,16 +297,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 { @@ -283,9 +314,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.
@@ -302,6 +336,7 @@ public java.lang.String getKmsKeyVersionName() {
    * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ @java.lang.Override @@ -310,14 +345,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.
@@ -334,16 +370,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 { @@ -352,6 +387,7 @@ public java.lang.String getServiceAccountId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,8 +399,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_); } @@ -406,21 +441,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; } @@ -445,99 +476,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.
@@ -553,33 +588,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();
@@ -592,9 +626,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
@@ -614,7 +648,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;
     }
@@ -639,38 +675,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;
@@ -725,32 +762,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) {
@@ -760,22 +802,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; @@ -784,20 +829,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 { @@ -805,28 +851,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() { @@ -836,17 +889,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; @@ -856,6 +913,8 @@ public Builder setNameBytes( private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -888,13 +947,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; @@ -903,6 +962,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -935,15 +996,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 { @@ -951,6 +1011,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -983,18 +1045,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.
      *
@@ -1027,6 +1093,7 @@ public Builder setKmsKeyName(
      * 
* * string kms_key_name = 2; + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -1036,6 +1103,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * The resource name for the configured Cloud KMS key.
      *
@@ -1068,12 +1137,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; @@ -1083,6 +1154,8 @@ public Builder setKmsKeyNameBytes( private java.lang.Object kmsKeyVersionName_ = ""; /** + * + * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1104,13 +1177,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; @@ -1119,6 +1192,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1140,15 +1215,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 { @@ -1156,6 +1230,8 @@ public java.lang.String getKmsKeyVersionName() { } } /** + * + * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1177,18 +1253,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.
      *
@@ -1210,6 +1290,7 @@ public Builder setKmsKeyVersionName(
      * 
* * string kms_key_version_name = 4; + * * @return This builder for chaining. */ public Builder clearKmsKeyVersionName() { @@ -1219,6 +1300,8 @@ public Builder clearKmsKeyVersionName() { return this; } /** + * + * *
      * The CryptoKeyVersion resource name for the configured Cloud KMS key.
      *
@@ -1240,12 +1323,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; @@ -1255,6 +1340,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.
@@ -1271,13 +1358,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; @@ -1286,6 +1373,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.
@@ -1302,15 +1391,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 { @@ -1318,6 +1406,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.
@@ -1334,18 +1424,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.
@@ -1362,6 +1456,7 @@ public Builder setServiceAccountId(
      * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearServiceAccountId() { @@ -1371,6 +1466,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.
@@ -1387,21 +1484,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); } @@ -1411,12 +1510,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(); } @@ -1425,27 +1524,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; @@ -1460,6 +1559,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 71% 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 09a410fb9..c9c78694e 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 @@ -63,7 +63,7 @@ private CmekSettingsName(Builder builder) { pathTemplate = PROJECT; } - private CmekSettingsName(OrganizationBuilder builder) { + private CmekSettingsName(OrganizationCmekSettingsBuilder builder) { organization = Preconditions.checkNotNull(builder.getOrganization()); project = null; folder = null; @@ -71,7 +71,7 @@ private CmekSettingsName(OrganizationBuilder builder) { pathTemplate = ORGANIZATION; } - private CmekSettingsName(FolderBuilder builder) { + private CmekSettingsName(FolderCmekSettingsBuilder builder) { folder = Preconditions.checkNotNull(builder.getFolder()); project = null; organization = null; @@ -79,7 +79,7 @@ private CmekSettingsName(FolderBuilder builder) { pathTemplate = FOLDER; } - private CmekSettingsName(BillingAccountBuilder builder) { + private CmekSettingsName(BillingAccountCmekSettingsBuilder builder) { billingAccount = Preconditions.checkNotNull(builder.getBillingAccount()); project = null; organization = null; @@ -112,19 +112,25 @@ public static Builder newProjectBuilder() { return new Builder(); } + /** @deprecated Please use {@link #newProjectBuilder()} instead */ + @Deprecated + public static Builder newProjectCmekSettingsBuilder() { + return new Builder(); + } + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static OrganizationBuilder newOrganizationBuilder() { - return new OrganizationBuilder(); + public static OrganizationCmekSettingsBuilder newOrganizationCmekSettingsBuilder() { + return new OrganizationCmekSettingsBuilder(); } @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static FolderBuilder newFolderBuilder() { - return new FolderBuilder(); + public static FolderCmekSettingsBuilder newFolderCmekSettingsBuilder() { + return new FolderCmekSettingsBuilder(); } @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - public static BillingAccountBuilder newBillingAccountBuilder() { - return new BillingAccountBuilder(); + public static BillingAccountCmekSettingsBuilder newBillingAccountCmekSettingsBuilder() { + return new BillingAccountCmekSettingsBuilder(); } public Builder toBuilder() { @@ -140,19 +146,43 @@ 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(); + } + @BetaApi("The static create methods are not stable yet and may be changed in the future.") 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(); } @BetaApi("The static create methods are not stable yet and may be changed in the future.") 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(); } @BetaApi("The static create methods are not stable yet and may be changed in the future.") 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) { @@ -164,19 +194,49 @@ 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(); + } + @BetaApi("The static format methods are not stable yet and may be changed in the future.") 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(); } @BetaApi("The static format methods are not stable yet and may be changed in the future.") 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(); } @BetaApi("The static format methods are not stable yet and may be changed in the future.") 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) { @@ -185,16 +245,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"); } @@ -320,16 +380,16 @@ public CmekSettingsName build() { /** Builder for organizations/{organization}/cmekSettings. */ @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - 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; } @@ -341,16 +401,16 @@ public CmekSettingsName build() { /** Builder for folders/{folder}/cmekSettings. */ @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - 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; } @@ -362,16 +422,16 @@ public CmekSettingsName build() { /** Builder for billingAccounts/{billing_account}/cmekSettings. */ @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") - 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 86% 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 40f490845..ecf740c4a 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,33 +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 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.
    *
@@ -60,10 +83,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.
    *
@@ -96,12 +122,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.
    *
@@ -123,10 +151,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.
    *
@@ -148,12 +179,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.
@@ -170,10 +203,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.
@@ -190,8 +226,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 72% 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 08bba272f..26f1c73fa 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,24 +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 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_ = ""; @@ -26,32 +44,36 @@ 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); } 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 @@ -59,11 +81,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * The create time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -71,6 +96,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The create time of an operation.
    * 
@@ -85,11 +112,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 @@ -97,11 +127,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -109,6 +142,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The end time of an operation.
    * 
@@ -123,37 +158,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 @@ -164,11 +211,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 @@ -176,18 +226,25 @@ public boolean hasRequest() { return request_ != null; } /** + * + * *
    * 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.
    * 
@@ -196,17 +253,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 @@ -215,9 +277,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.
@@ -229,6 +294,7 @@ public int getProgress() {
    * 
* * string writer_identity = 7; + * * @return The writerIdentity. */ @java.lang.Override @@ -237,14 +303,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.
@@ -256,16 +323,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 { @@ -274,6 +340,7 @@ public java.lang.String getWriterIdentity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -285,8 +352,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -318,28 +384,22 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } 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 (request_ != null) { - 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_); @@ -352,35 +412,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; } @@ -403,8 +458,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(); @@ -418,132 +472,136 @@ 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() - 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(); @@ -571,9 +629,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 @@ -592,8 +650,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; } @@ -601,14 +662,10 @@ public com.google.logging.v2.CopyLogEntriesMetadata buildPartial() { private void buildPartial0(com.google.logging.v2.CopyLogEntriesMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.state_ = state_; @@ -617,9 +674,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(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.progress_ = progress_; @@ -633,38 +688,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; @@ -722,53 +778,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) { @@ -778,28 +836,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() { @@ -810,6 +878,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The create time of an operation.
      * 
@@ -830,14 +900,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 { @@ -848,6 +919,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -856,9 +929,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; @@ -871,6 +944,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -888,6 +963,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -900,6 +977,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The create time of an operation.
      * 
@@ -910,11 +989,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.
      * 
@@ -922,14 +1002,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_; @@ -937,24 +1020,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() { @@ -965,6 +1057,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The end time of an operation.
      * 
@@ -985,14 +1079,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 { @@ -1003,6 +1098,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1011,9 +1108,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; @@ -1026,6 +1123,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1043,6 +1142,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1055,6 +1156,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The end time of an operation.
      * 
@@ -1065,11 +1168,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.
      * 
@@ -1077,14 +1181,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_; @@ -1092,22 +1199,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. */ @@ -1118,24 +1232,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. */ @@ -1149,11 +1270,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() { @@ -1163,13 +1287,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 @@ -1177,11 +1304,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. */ @@ -1193,11 +1323,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() { @@ -1209,34 +1342,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.
      * 
@@ -1257,14 +1403,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 { @@ -1275,6 +1422,8 @@ public Builder setRequest( return this; } /** + * + * *
      * CopyLogEntries RPC request.
      * 
@@ -1283,9 +1432,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; @@ -1298,6 +1447,8 @@ public Builder mergeRequest(com.google.logging.v2.CopyLogEntriesRequest value) { return this; } /** + * + * *
      * CopyLogEntries RPC request.
      * 
@@ -1315,6 +1466,8 @@ public Builder clearRequest() { return this; } /** + * + * *
      * CopyLogEntries RPC request.
      * 
@@ -1327,6 +1480,8 @@ public com.google.logging.v2.CopyLogEntriesRequest.Builder getRequestBuilder() { return getRequestFieldBuilder().getBuilder(); } /** + * + * *
      * CopyLogEntries RPC request.
      * 
@@ -1337,11 +1492,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.
      * 
@@ -1349,26 +1507,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 @@ -1376,11 +1540,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. */ @@ -1392,11 +1559,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() { @@ -1408,6 +1578,8 @@ public Builder clearProgress() { private java.lang.Object writerIdentity_ = ""; /** + * + * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1419,13 +1591,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; @@ -1434,6 +1606,8 @@ public java.lang.String getWriterIdentity() { } } /** + * + * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1445,15 +1619,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 { @@ -1461,6 +1634,8 @@ public java.lang.String getWriterIdentity() { } } /** + * + * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1472,18 +1647,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.
@@ -1495,6 +1674,7 @@ public Builder setWriterIdentity(
      * 
* * string writer_identity = 7; + * * @return This builder for chaining. */ public Builder clearWriterIdentity() { @@ -1504,6 +1684,8 @@ public Builder clearWriterIdentity() { return this; } /** + * + * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1515,21 +1697,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); } @@ -1539,12 +1723,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(); } @@ -1553,27 +1737,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; @@ -1588,6 +1772,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 5e9f1d4ba..9ab1d744a 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,31 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    * 
@@ -35,24 +59,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.
    * 
@@ -62,53 +94,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.
    * 
@@ -118,16 +167,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.
@@ -139,10 +193,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.
@@ -154,8 +211,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 43809b38b..c78d5a651 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,24 +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 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_ = ""; @@ -27,28 +45,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.
    *
@@ -58,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -66,14 +89,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Log bucket from which to copy log entries.
    *
@@ -83,16 +107,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 { @@ -101,15 +124,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 @@ -118,30 +145,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 { @@ -150,14 +177,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 @@ -166,29 +197,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 { @@ -197,6 +228,7 @@ public java.lang.String getDestination() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +240,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_); } @@ -245,19 +276,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; } @@ -280,132 +309,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(); @@ -417,9 +450,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 @@ -438,8 +471,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; } @@ -461,38 +497,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; @@ -542,27 +579,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) { @@ -572,10 +613,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -585,13 +629,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; @@ -600,6 +644,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -609,15 +655,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 { @@ -625,6 +670,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -634,18 +681,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.
      *
@@ -655,6 +706,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -664,6 +716,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Log bucket from which to copy log entries.
      *
@@ -673,12 +727,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; @@ -688,19 +744,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; @@ -709,21 +767,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 { @@ -731,30 +790,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() { @@ -764,18 +830,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; @@ -785,18 +855,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; @@ -805,20 +877,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 { @@ -826,28 +899,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() { @@ -857,26 +937,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); } @@ -886,12 +970,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(); } @@ -900,27 +984,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; @@ -935,6 +1019,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 a4859acbd..57270a66c 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -17,10 +35,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.
    *
@@ -30,50 +51,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 d43b25602..0c25e492b 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,55 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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 @@ -58,6 +79,7 @@ public long getLogEntriesCopiedCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -69,8 +91,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_); } @@ -84,8 +105,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; @@ -95,15 +115,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; } @@ -116,139 +136,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(); @@ -258,9 +281,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 @@ -279,8 +302,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; } @@ -296,38 +322,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; @@ -365,17 +392,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) { @@ -385,15 +414,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 @@ -401,11 +434,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. */ @@ -417,11 +453,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() { @@ -430,9 +469,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); } @@ -442,12 +481,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(); } @@ -456,27 +495,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; @@ -491,6 +530,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..7282a902a --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 + +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 69% 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 13d664efe..9822409ac 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,24 +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 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_ = ""; @@ -26,28 +44,32 @@ 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); } 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:
    *
@@ -58,7 +80,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 @@ -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 resource in which to create the log bucket:
    *
@@ -85,17 +111,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 { @@ -104,9 +131,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,
@@ -114,6 +144,7 @@ public java.lang.String getParent() {
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucketId. */ @java.lang.Override @@ -122,14 +153,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,
@@ -137,16 +169,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 { @@ -157,6 +188,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
@@ -164,6 +197,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 @@ -171,6 +205,8 @@ public boolean hasBucket() { return bucket_ != null; } /** + * + * *
    * 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
@@ -178,6 +214,7 @@ public boolean hasBucket() {
    * 
* * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucket. */ @java.lang.Override @@ -185,6 +222,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
@@ -199,6 +238,7 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -210,8 +250,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_);
     }
@@ -237,8 +276,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bucketId_);
     }
     if (bucket_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getBucket());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBucket());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -248,21 +286,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;
@@ -288,132 +324,136 @@ 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() - 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(); @@ -429,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_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 @@ -450,8 +490,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; } @@ -465,9 +508,7 @@ private void buildPartial0(com.google.logging.v2.CreateBucketRequest result) { result.bucketId_ = bucketId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.bucket_ = bucketBuilder_ == null - ? bucket_ - : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); } } @@ -475,38 +516,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; @@ -554,29 +596,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) { @@ -586,10 +630,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:
      *
@@ -600,14 +647,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; @@ -616,6 +665,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource in which to create the log bucket:
      *
@@ -626,16 +677,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 { @@ -643,6 +695,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource in which to create the log bucket:
      *
@@ -653,19 +707,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:
      *
@@ -676,7 +736,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() { @@ -686,6 +749,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource in which to create the log bucket:
      *
@@ -696,13 +761,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; @@ -712,6 +781,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,
@@ -719,13 +790,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; @@ -734,6 +805,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,
@@ -741,15 +814,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 { @@ -757,6 +829,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,
@@ -764,18 +838,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,
@@ -783,6 +861,7 @@ public Builder setBucketId(
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearBucketId() { @@ -792,6 +871,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,
@@ -799,12 +880,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; @@ -814,28 +897,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() { @@ -846,13 +940,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) { @@ -868,16 +965,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 { @@ -888,19 +987,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; @@ -913,13 +1015,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); @@ -932,13 +1037,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; @@ -946,47 +1054,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); } @@ -996,12 +1112,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(); } @@ -1010,27 +1126,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; @@ -1045,6 +1161,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 47b8f90a1..64db91786 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -18,11 +36,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:
    *
@@ -33,13 +56,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,
@@ -47,10 +74,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,
@@ -58,12 +88,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
@@ -71,10 +103,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
@@ -82,10 +117,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 64%
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 0e42b77c7..985401045 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,52 +1,74 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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
 
 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); } 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:
    *
@@ -61,7 +83,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 @@ -70,14 +95,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource in which to create the exclusion:
    *
@@ -92,17 +118,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 { @@ -113,12 +140,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 @@ -126,32 +157,44 @@ public boolean hasExclusion() { return exclusion_ != null; } /** + * + * *
    * 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; @@ -163,8 +206,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -184,8 +226,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (exclusion_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExclusion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -195,19 +236,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; @@ -231,132 +271,136 @@ 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() - 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(); @@ -371,9 +415,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 @@ -392,8 +436,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; } @@ -404,9 +451,7 @@ private void buildPartial0(com.google.logging.v2.CreateExclusionRequest result) result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.exclusion_ = exclusionBuilder_ == null - ? exclusion_ - : exclusionBuilder_.build(); + result.exclusion_ = exclusionBuilder_ == null ? exclusion_ : exclusionBuilder_.build(); } } @@ -414,38 +459,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; @@ -488,24 +534,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) { @@ -515,10 +562,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:
      *
@@ -533,14 +583,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; @@ -549,6 +601,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -563,16 +617,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 { @@ -580,6 +635,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -594,19 +651,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:
      *
@@ -621,7 +684,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() { @@ -631,6 +697,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource in which to create the exclusion:
      *
@@ -645,13 +713,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; @@ -661,42 +733,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) { @@ -712,15 +803,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 { @@ -731,18 +825,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; @@ -755,12 +853,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); @@ -773,12 +875,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; @@ -786,45 +892,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); } @@ -834,12 +952,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(); } @@ -848,27 +966,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; @@ -883,6 +1001,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 fdbb64f04..700c2af3b 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -22,11 +40,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:
    *
@@ -41,39 +64,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 70% 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 7d714b77a..e02e18b5a 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,24 +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 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_ = ""; @@ -26,28 +44,32 @@ 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); } 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.
    *
@@ -57,7 +79,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 @@ -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 full resource name of the bucket to create a link for.
    *
@@ -83,17 +109,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 { @@ -104,11 +131,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 @@ -116,11 +146,14 @@ public boolean hasLink() { return link_ != null; } /** + * + * *
    * Required. The new link.
    * 
* * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The link. */ @java.lang.Override @@ -128,6 +161,8 @@ public com.google.logging.v2.Link getLink() { return link_ == null ? com.google.logging.v2.Link.getDefaultInstance() : link_; } /** + * + * *
    * Required. The new link.
    * 
@@ -140,9 +175,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
@@ -150,6 +188,7 @@ public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() {
    * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The linkId. */ @java.lang.Override @@ -158,14 +197,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
@@ -173,16 +213,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 { @@ -191,6 +230,7 @@ public java.lang.String getLinkId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,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_); } @@ -226,8 +265,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (link_ != null) { - 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_); @@ -240,22 +278,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; } @@ -280,132 +315,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +460,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 @@ -442,8 +481,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; } @@ -454,9 +496,7 @@ private void buildPartial0(com.google.logging.v2.CreateLinkRequest result) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.link_ = linkBuilder_ == null - ? link_ - : linkBuilder_.build(); + result.link_ = linkBuilder_ == null ? link_ : linkBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.linkId_ = linkId_; @@ -467,38 +507,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; @@ -546,29 +587,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) { @@ -578,10 +621,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.
      *
@@ -591,14 +637,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; @@ -607,6 +655,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -616,16 +666,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 { @@ -633,6 +684,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -642,19 +695,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.
      *
@@ -664,7 +723,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() { @@ -674,6 +736,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The full resource name of the bucket to create a link for.
      *
@@ -683,13 +747,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; @@ -699,24 +767,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() { @@ -727,6 +804,8 @@ public com.google.logging.v2.Link getLink() { } } /** + * + * *
      * Required. The new link.
      * 
@@ -747,14 +826,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 { @@ -765,6 +845,8 @@ public Builder setLink( return this; } /** + * + * *
      * Required. The new link.
      * 
@@ -773,9 +855,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; @@ -788,6 +870,8 @@ public Builder mergeLink(com.google.logging.v2.Link value) { return this; } /** + * + * *
      * Required. The new link.
      * 
@@ -805,6 +889,8 @@ public Builder clearLink() { return this; } /** + * + * *
      * Required. The new link.
      * 
@@ -817,6 +903,8 @@ public com.google.logging.v2.Link.Builder getLinkBuilder() { return getLinkFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The new link.
      * 
@@ -827,11 +915,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.
      * 
@@ -839,14 +928,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_; @@ -854,6 +945,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
@@ -861,13 +954,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; @@ -876,6 +969,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
@@ -883,15 +978,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 { @@ -899,6 +993,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
@@ -906,18 +1002,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
@@ -925,6 +1025,7 @@ public Builder setLinkId(
      * 
* * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLinkId() { @@ -934,6 +1035,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
@@ -941,21 +1044,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); } @@ -965,12 +1070,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(); } @@ -979,27 +1084,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; @@ -1014,6 +1119,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 7eadea562..4accbc25f 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -17,11 +35,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.
    *
@@ -31,31 +54,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.
    * 
@@ -65,6 +98,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
@@ -72,10 +107,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
@@ -83,8 +121,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 66% 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 73452b726..6ac8a2897 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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); } 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:
    *
@@ -55,7 +77,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 @@ -64,14 +89,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource name of the project in which to create the metric:
    *
@@ -80,17 +106,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 { @@ -101,12 +128,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 @@ -114,12 +144,15 @@ public boolean hasMetric() { return metric_ != null; } /** + * + * *
    * 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 @@ -127,6 +160,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.
@@ -140,6 +175,7 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -151,8 +187,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_);
     }
@@ -172,8 +207,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
     }
     if (metric_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getMetric());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetric());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -183,19 +217,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;
@@ -219,132 +252,136 @@ 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() - 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(); @@ -359,9 +396,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 @@ -380,8 +417,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; } @@ -392,9 +432,7 @@ private void buildPartial0(com.google.logging.v2.CreateLogMetricRequest result) result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.metric_ = metricBuilder_ == null - ? metric_ - : metricBuilder_.build(); + result.metric_ = metricBuilder_ == null ? metric_ : metricBuilder_.build(); } } @@ -402,38 +440,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; @@ -476,24 +515,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) { @@ -503,10 +543,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:
      *
@@ -515,14 +558,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; @@ -531,6 +576,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -539,16 +586,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 { @@ -556,6 +604,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -564,19 +614,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:
      *
@@ -585,7 +641,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() { @@ -595,6 +654,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource name of the project in which to create the metric:
      *
@@ -603,13 +664,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; @@ -619,26 +684,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() { @@ -649,12 +725,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) { @@ -670,15 +749,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 { @@ -689,18 +770,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; @@ -713,12 +797,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); @@ -731,12 +818,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; @@ -744,45 +834,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); } @@ -792,12 +890,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(); } @@ -806,27 +904,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; @@ -841,6 +939,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 30d602882..cf151e260 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -16,11 +34,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:
    *
@@ -29,33 +52,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 29c83ca0f..2b6781c1c 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,52 +1,74 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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
 
 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); } 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:
    *
@@ -61,7 +83,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 @@ -70,14 +95,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource in which to create the sink:
    *
@@ -92,17 +118,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 { @@ -113,12 +140,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 @@ -126,12 +156,15 @@ public boolean hasSink() { return sink_ != null; } /** + * + * *
    * 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 @@ -139,6 +172,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.
@@ -154,6 +189,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
@@ -170,6 +207,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -178,6 +216,7 @@ public boolean getUniqueWriterIdentity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +228,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -213,12 +251,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (sink_ != null) { - 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; @@ -228,22 +264,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -262,139 +295,142 @@ 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() - 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(); @@ -410,9 +446,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 @@ -431,8 +467,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; } @@ -443,9 +482,7 @@ private void buildPartial0(com.google.logging.v2.CreateSinkRequest result) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.sink_ = sinkBuilder_ == null - ? sink_ - : sinkBuilder_.build(); + result.sink_ = sinkBuilder_ == null ? sink_ : sinkBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.uniqueWriterIdentity_ = uniqueWriterIdentity_; @@ -456,38 +493,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; @@ -533,29 +571,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) { @@ -565,10 +605,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource in which to create the sink:
      *
@@ -583,14 +626,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; @@ -599,6 +644,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource in which to create the sink:
      *
@@ -613,16 +660,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 { @@ -630,6 +678,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource in which to create the sink:
      *
@@ -644,19 +694,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:
      *
@@ -671,7 +727,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() { @@ -681,6 +740,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource in which to create the sink:
      *
@@ -695,13 +756,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; @@ -711,26 +776,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() { @@ -741,6 +815,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.
@@ -762,6 +838,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.
@@ -769,8 +847,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 {
@@ -781,6 +858,8 @@ public Builder setSink(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -790,9 +869,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;
@@ -805,6 +884,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.
@@ -823,6 +904,8 @@ public Builder clearSink() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -836,6 +919,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.
@@ -847,11 +932,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.
@@ -860,21 +946,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
@@ -891,6 +982,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -898,6 +990,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
@@ -914,6 +1008,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. */ @@ -925,6 +1020,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
@@ -941,6 +1038,7 @@ public Builder setUniqueWriterIdentity(boolean value) {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUniqueWriterIdentity() { @@ -949,9 +1047,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); } @@ -961,12 +1059,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(); } @@ -975,27 +1073,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; @@ -1010,6 +1108,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 73% 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 be7925d7f..df9cd0c82 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -22,11 +40,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:
    *
@@ -41,33 +64,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.
@@ -78,6 +111,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
@@ -94,6 +129,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 3b931347e..124ea65f6 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,24 +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 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_ = ""; @@ -26,28 +44,32 @@ 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); } 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
    *
@@ -59,6 +81,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -67,14 +90,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The bucket in which to create the view
    *
@@ -86,16 +110,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 { @@ -104,9 +127,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,
@@ -114,6 +140,7 @@ public java.lang.String getParent() {
    * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The viewId. */ @java.lang.Override @@ -122,14 +149,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,
@@ -137,16 +165,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 { @@ -157,11 +184,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 @@ -169,11 +199,14 @@ public boolean hasView() { return view_ != null; } /** + * + * *
    * Required. The new view.
    * 
* * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The view. */ @java.lang.Override @@ -181,6 +214,8 @@ public com.google.logging.v2.LogView getView() { return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; } /** + * + * *
    * Required. The new view.
    * 
@@ -193,6 +228,7 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +240,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_); } @@ -231,8 +266,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, viewId_); } if (view_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getView()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getView()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -242,21 +276,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; @@ -282,132 +313,136 @@ 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() - 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(); @@ -423,9 +458,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 @@ -444,8 +479,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; } @@ -459,9 +497,7 @@ private void buildPartial0(com.google.logging.v2.CreateViewRequest result) { result.viewId_ = viewId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.view_ = viewBuilder_ == null - ? view_ - : viewBuilder_.build(); + result.view_ = viewBuilder_ == null ? view_ : viewBuilder_.build(); } } @@ -469,38 +505,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; @@ -548,29 +585,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) { @@ -580,10 +619,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The bucket in which to create the view
      *
@@ -595,13 +637,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; @@ -610,6 +652,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The bucket in which to create the view
      *
@@ -621,15 +665,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 { @@ -637,6 +680,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The bucket in which to create the view
      *
@@ -648,18 +693,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
      *
@@ -671,6 +720,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -680,6 +730,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The bucket in which to create the view
      *
@@ -691,12 +743,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; @@ -706,6 +760,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,
@@ -713,13 +769,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; @@ -728,6 +784,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,
@@ -735,15 +793,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 { @@ -751,6 +808,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,
@@ -758,18 +817,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,
@@ -777,6 +840,7 @@ public Builder setViewId(
      * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearViewId() { @@ -786,6 +850,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,
@@ -793,12 +859,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; @@ -808,24 +876,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() { @@ -836,6 +913,8 @@ public com.google.logging.v2.LogView getView() { } } /** + * + * *
      * Required. The new view.
      * 
@@ -856,14 +935,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 { @@ -874,6 +954,8 @@ public Builder setView( return this; } /** + * + * *
      * Required. The new view.
      * 
@@ -882,9 +964,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; @@ -897,6 +979,8 @@ public Builder mergeView(com.google.logging.v2.LogView value) { return this; } /** + * + * *
      * Required. The new view.
      * 
@@ -914,6 +998,8 @@ public Builder clearView() { return this; } /** + * + * *
      * Required. The new view.
      * 
@@ -926,6 +1012,8 @@ public com.google.logging.v2.LogView.Builder getViewBuilder() { return getViewFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The new view.
      * 
@@ -936,11 +1024,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.
      * 
@@ -948,21 +1037,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); } @@ -972,12 +1064,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(); } @@ -986,27 +1078,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; @@ -1021,6 +1113,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 8c5420af3..6d71bc41e 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
    *
@@ -19,10 +37,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
    *
@@ -34,12 +55,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,
@@ -47,10 +70,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,
@@ -58,30 +84,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 918d927d8..51a5e98ff 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -60,7 +82,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 @@ -69,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. The full resource name of the bucket to delete.
    *
@@ -90,17 +116,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 { @@ -109,6 +136,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -145,15 +172,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; } @@ -172,132 +199,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(); @@ -307,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_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 @@ -328,8 +359,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; } @@ -345,38 +379,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; @@ -416,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) { @@ -436,10 +473,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.
      *
@@ -453,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; @@ -469,6 +511,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -482,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 { @@ -499,6 +544,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -512,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 full resource name of the bucket to delete.
      *
@@ -538,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() { @@ -548,6 +604,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The full resource name of the bucket to delete.
      *
@@ -561,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); } @@ -586,12 +648,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(); } @@ -600,27 +662,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; @@ -635,6 +697,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 58% 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 29277932c..d47f6c24a 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -21,11 +39,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.
    *
@@ -39,9 +62,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 8ba56bc05..3cbda7632 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -60,7 +82,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 @@ -69,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. The resource name of an existing exclusion to delete:
    *
@@ -90,17 +116,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 { @@ -109,6 +136,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -145,15 +172,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; } @@ -172,132 +199,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(); @@ -307,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_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 @@ -328,8 +359,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; } @@ -345,38 +379,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; @@ -416,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) { @@ -436,10 +473,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:
      *
@@ -453,14 +493,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; @@ -469,6 +511,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -482,16 +526,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 { @@ -499,6 +544,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -512,19 +559,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:
      *
@@ -538,7 +591,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() { @@ -548,6 +604,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of an existing exclusion to delete:
      *
@@ -561,22 +619,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); } @@ -586,12 +648,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(); } @@ -600,27 +662,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; @@ -635,6 +697,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 dd6dda522..9932ae618 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -21,11 +39,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:
    *
@@ -39,9 +62,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 a679b12b0..a25407ea0 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -56,7 +78,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 @@ -65,14 +90,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The full resource name of the link to delete.
    *
@@ -82,17 +108,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 { @@ -101,6 +128,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -112,8 +140,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -137,15 +164,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; } @@ -164,132 +190,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(); @@ -299,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_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 @@ -320,8 +350,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; } @@ -337,38 +370,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; @@ -408,17 +442,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) { @@ -428,10 +464,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.
      *
@@ -441,14 +480,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; @@ -457,6 +498,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the link to delete.
      *
@@ -466,16 +509,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 { @@ -483,6 +527,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the link to delete.
      *
@@ -492,19 +538,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.
      *
@@ -514,7 +566,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() { @@ -524,6 +579,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The full resource name of the link to delete.
      *
@@ -533,22 +590,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); } @@ -558,12 +619,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(); } @@ -572,27 +633,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; @@ -607,6 +668,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 57% 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 a50f2b2e5..206c8a43e 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -17,11 +35,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.
    *
@@ -31,9 +54,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 e3455e834..8fe574965 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,59 +1,84 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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 @@ -62,31 +87,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 { @@ -95,6 +122,7 @@ public java.lang.String getMetricName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -131,15 +158,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -158,132 +185,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(); @@ -293,9 +324,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 @@ -314,8 +345,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; } @@ -331,38 +365,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; @@ -402,17 +437,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) { @@ -422,24 +459,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; @@ -448,22 +490,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 { @@ -471,32 +516,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() { @@ -506,28 +562,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); } @@ -537,12 +599,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(); } @@ -551,27 +613,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; @@ -586,6 +648,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..de2645c9d --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_metrics.proto + +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 2a8c7e896..894deb1ad 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -63,7 +85,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 @@ -72,14 +97,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:
    *
@@ -96,17 +122,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 { @@ -115,6 +142,7 @@ public java.lang.String getLogName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -126,8 +154,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logName_); } @@ -151,15 +178,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; } @@ -178,132 +204,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(); @@ -313,9 +343,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 @@ -334,8 +364,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; } @@ -351,38 +384,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; @@ -422,17 +456,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) { @@ -442,10 +478,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object logName_ = ""; /** + * + * *
      * Required. The resource name of the log to delete:
      *
@@ -462,14 +501,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; @@ -478,6 +519,8 @@ public java.lang.String getLogName() { } } /** + * + * *
      * Required. The resource name of the log to delete:
      *
@@ -494,16 +537,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 { @@ -511,6 +555,8 @@ public java.lang.String getLogName() { } } /** + * + * *
      * Required. The resource name of the log to delete:
      *
@@ -527,19 +573,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:
      *
@@ -556,7 +608,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() { @@ -566,6 +621,8 @@ public Builder clearLogName() { return this; } /** + * + * *
      * Required. The resource name of the log to delete:
      *
@@ -582,22 +639,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); } @@ -607,12 +668,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(); } @@ -621,27 +682,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; @@ -656,6 +717,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 098ad7ec4..af3903e60 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -24,11 +42,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:
    *
@@ -45,9 +68,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 2ded12337..d827d07da 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
@@ -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 full resource name of the sink to delete, including the
    * parent resource and the sink identifier:
@@ -92,17 +118,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 { @@ -111,6 +138,7 @@ public java.lang.String getSinkName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -122,8 +150,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_); } @@ -147,15 +174,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; } @@ -174,132 +200,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(); @@ -309,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_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 @@ -330,8 +360,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; } @@ -347,38 +380,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; @@ -418,17 +452,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) { @@ -438,10 +474,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:
@@ -456,14 +495,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; @@ -472,6 +513,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -486,16 +529,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 { @@ -503,6 +547,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -517,19 +563,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:
@@ -544,7 +596,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() { @@ -554,6 +609,8 @@ public Builder clearSinkName() { return this; } /** + * + * *
      * Required. The full resource name of the sink to delete, including the
      * parent resource and the sink identifier:
@@ -568,22 +625,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); } @@ -593,12 +654,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(); } @@ -607,27 +668,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; @@ -642,6 +703,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 7cf2d4a29..2775fca68 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
@@ -22,11 +40,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:
@@ -41,9 +64,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 5c4a49bb5..d1509f206 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -57,7 +79,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 @@ -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 view to delete:
    *
@@ -84,17 +110,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 { @@ -103,6 +130,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -114,8 +142,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -139,15 +166,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; } @@ -166,132 +192,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(); @@ -301,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_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 @@ -322,8 +352,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; } @@ -339,38 +372,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; @@ -410,17 +444,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) { @@ -430,10 +466,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:
      *
@@ -444,14 +483,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; @@ -460,6 +501,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the view to delete:
      *
@@ -470,16 +513,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 { @@ -487,6 +531,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the view to delete:
      *
@@ -497,19 +543,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:
      *
@@ -520,7 +572,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() { @@ -530,6 +585,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The full resource name of the view to delete:
      *
@@ -540,22 +597,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); } @@ -565,12 +626,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(); } @@ -579,27 +640,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; @@ -614,6 +675,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.logging.v2.DeleteViewRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/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 new file mode 100644 index 000000000..b123592d0 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 + +package com.google.logging.v2; + +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:
+   *
+   *     "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 full resource name of the view to delete:
+   *
+   *     "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/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 955d80eda..27924ff70 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -60,7 +82,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 @@ -69,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. The resource name of the bucket:
    *
@@ -90,17 +116,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 { @@ -109,6 +136,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -145,15 +172,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -172,132 +198,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(); @@ -307,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_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 @@ -328,8 +358,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; } @@ -345,38 +378,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; @@ -416,17 +450,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) { @@ -436,10 +472,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the bucket:
      *
@@ -453,14 +492,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; @@ -469,6 +510,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the bucket:
      *
@@ -482,16 +525,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 { @@ -499,6 +543,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the bucket:
      *
@@ -512,19 +558,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:
      *
@@ -538,7 +590,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() { @@ -548,6 +603,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the bucket:
      *
@@ -561,22 +618,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); } @@ -586,12 +647,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(); } @@ -600,27 +661,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; @@ -635,6 +696,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 58% 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 2e61b332e..cb09f98cd 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -21,11 +39,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:
    *
@@ -39,9 +62,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 611740bf0..dfde15fe5 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,9 +1,26 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 package com.google.logging.v2; /** + * + * *
  * The parameters to
  * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings].
@@ -15,43 +32,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.
    *
@@ -70,7 +92,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 @@ -79,14 +104,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.
    *
@@ -105,17 +131,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 { @@ -124,6 +151,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,8 +163,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -160,15 +187,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; } @@ -187,99 +214,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].
@@ -291,33 +323,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();
@@ -327,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_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
@@ -348,8 +379,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;
     }
@@ -365,38 +399,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;
@@ -436,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) {
@@ -456,10 +493,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -478,14 +518,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; @@ -494,6 +536,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -512,16 +556,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 { @@ -529,6 +574,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -547,19 +594,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.
      *
@@ -578,7 +631,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() { @@ -588,6 +644,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource for which to retrieve CMEK settings.
      *
@@ -606,22 +664,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); } @@ -631,12 +693,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(); } @@ -645,27 +707,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; @@ -680,6 +742,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 e8fb22d82..b21b6f538 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -26,11 +44,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.
    *
@@ -49,9 +72,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 be3c061c5..1f0907e18 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -60,7 +82,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 @@ -69,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. The resource name of an existing exclusion:
    *
@@ -90,17 +116,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 { @@ -109,6 +136,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -145,15 +172,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; } @@ -172,132 +199,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(); @@ -307,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_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 @@ -328,8 +359,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; } @@ -345,38 +379,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; @@ -416,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) { @@ -436,10 +473,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of an existing exclusion:
      *
@@ -453,14 +493,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; @@ -469,6 +511,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of an existing exclusion:
      *
@@ -482,16 +526,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 { @@ -499,6 +544,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of an existing exclusion:
      *
@@ -512,19 +559,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:
      *
@@ -538,7 +591,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() { @@ -548,6 +604,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of an existing exclusion:
      *
@@ -561,22 +619,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); } @@ -586,12 +648,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(); } @@ -600,27 +662,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; @@ -635,6 +697,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 55% 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 87ef4e1d8..faea95bc3 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -21,11 +39,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:
    *
@@ -39,9 +62,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 e6e8007ae..01269e50f 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -56,7 +78,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 @@ -65,14 +90,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name of the link:
    *
@@ -82,17 +108,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 { @@ -101,6 +128,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -112,8 +140,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -137,15 +164,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; } @@ -164,132 +190,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(); @@ -299,9 +328,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 @@ -321,7 +350,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; } @@ -337,38 +368,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; @@ -408,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -428,10 +462,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the link:
      *
@@ -441,14 +478,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; @@ -457,6 +496,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the link:
      *
@@ -466,16 +507,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 { @@ -483,6 +525,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the link:
      *
@@ -492,19 +536,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:
      *
@@ -514,7 +564,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() { @@ -524,6 +577,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the link:
      *
@@ -533,22 +588,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); } @@ -558,12 +617,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(); } @@ -572,27 +631,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; @@ -607,6 +666,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 b0821bad0..1a7d31e51 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -17,11 +35,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:
    *
@@ -31,9 +54,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 c789a35f7..7cfdfd37e 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,59 +1,84 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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 @@ -62,31 +87,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 { @@ -95,6 +122,7 @@ public java.lang.String getMetricName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -106,8 +134,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -131,15 +158,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -158,132 +185,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(); @@ -293,9 +324,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 @@ -314,8 +345,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; } @@ -331,38 +365,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; @@ -402,17 +437,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) { @@ -422,24 +459,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; @@ -448,22 +490,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 { @@ -471,32 +516,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() { @@ -506,28 +562,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); } @@ -537,12 +599,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(); } @@ -551,27 +613,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; @@ -586,6 +648,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..509ea6390 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_metrics.proto + +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 68% 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 9910ea881..0aa65f376 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,9 +1,26 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 package com.google.logging.v2; /** + * + * *
  * The parameters to
  * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings].
@@ -15,43 +32,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.
    *
@@ -70,7 +92,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 @@ -79,14 +104,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.
    *
@@ -105,17 +131,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 { @@ -124,6 +151,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,8 +163,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -160,15 +187,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; } @@ -187,99 +213,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].
@@ -291,33 +322,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();
@@ -327,9 +357,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
@@ -348,8 +378,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;
     }
@@ -365,38 +398,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;
@@ -436,17 +470,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) {
@@ -456,10 +492,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource for which to retrieve settings.
      *
@@ -478,14 +517,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; @@ -494,6 +535,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource for which to retrieve settings.
      *
@@ -512,16 +555,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 { @@ -529,6 +573,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource for which to retrieve settings.
      *
@@ -547,19 +593,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.
      *
@@ -578,7 +630,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() { @@ -588,6 +643,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource for which to retrieve settings.
      *
@@ -606,22 +663,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); } @@ -631,12 +692,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(); } @@ -645,27 +706,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; @@ -680,6 +741,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 11e1eb017..0b4c0c526 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -26,11 +44,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.
    *
@@ -49,9 +72,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 cb250f1a4..3a027bb50 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -60,7 +82,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 @@ -69,14 +94,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:
    *
@@ -90,17 +116,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 { @@ -109,6 +136,7 @@ public java.lang.String getSinkName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sinkName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sinkName_); } @@ -145,15 +172,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -172,132 +198,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(); @@ -307,9 +336,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 @@ -329,7 +358,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; } @@ -345,38 +376,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; @@ -416,17 +448,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) { @@ -436,10 +470,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object sinkName_ = ""; /** + * + * *
      * Required. The resource name of the sink:
      *
@@ -453,14 +490,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; @@ -469,6 +508,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The resource name of the sink:
      *
@@ -482,16 +523,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 { @@ -499,6 +541,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The resource name of the sink:
      *
@@ -512,19 +556,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:
      *
@@ -538,7 +588,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() { @@ -548,6 +601,8 @@ public Builder clearSinkName() { return this; } /** + * + * *
      * Required. The resource name of the sink:
      *
@@ -561,22 +616,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); } @@ -586,12 +645,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(); } @@ -600,27 +659,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; @@ -635,6 +694,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 407aef5f0..0fe4818f9 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -21,11 +39,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:
    *
@@ -39,9 +62,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 55e32230f..9b0175e5a 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -57,7 +79,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 @@ -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 policy:
    *
@@ -84,17 +110,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 { @@ -103,6 +130,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -114,8 +142,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -139,15 +166,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; } @@ -166,132 +192,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(); @@ -301,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_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 @@ -323,7 +352,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; } @@ -339,38 +370,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; @@ -410,17 +442,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) { @@ -430,10 +464,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the policy:
      *
@@ -444,14 +481,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; @@ -460,6 +499,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy:
      *
@@ -470,16 +511,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 { @@ -487,6 +529,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy:
      *
@@ -497,19 +541,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:
      *
@@ -520,7 +570,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() { @@ -530,6 +583,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the policy:
      *
@@ -540,22 +595,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); } @@ -565,12 +624,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(); } @@ -579,27 +638,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; @@ -614,6 +673,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..cbed2e3b5 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 + +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 1f9a511ce..078de16ce 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,24 +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 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; @@ -26,28 +44,32 @@ 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); } public static final int FIELD_PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object fieldPath_ = ""; /** + * + * *
    * Required. The LogEntry field path to index.
    *
@@ -60,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The fieldPath. */ @java.lang.Override @@ -68,14 +91,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.
    *
@@ -88,16 +112,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 { @@ -108,25 +131,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; } @@ -134,6 +165,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.
    *
@@ -141,7 +174,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 @@ -149,6 +184,8 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The timestamp when the index was last modified.
    *
@@ -156,7 +193,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 @@ -164,6 +203,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.
    *
@@ -171,7 +212,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() { @@ -179,6 +221,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,8 +233,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_); } @@ -214,12 +256,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 (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -229,20 +269,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; @@ -268,132 +306,135 @@ 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() - 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(); @@ -409,9 +450,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 @@ -431,7 +472,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; } @@ -445,9 +488,7 @@ private void buildPartial0(com.google.logging.v2.IndexConfig result) { result.type_ = type_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } } @@ -455,38 +496,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; @@ -532,29 +574,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) { @@ -564,10 +608,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object fieldPath_ = ""; /** + * + * *
      * Required. The LogEntry field path to index.
      *
@@ -580,13 +627,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; @@ -595,6 +642,8 @@ public java.lang.String getFieldPath() { } } /** + * + * *
      * Required. The LogEntry field path to index.
      *
@@ -607,15 +656,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 { @@ -623,6 +671,8 @@ public java.lang.String getFieldPath() { } } /** + * + * *
      * Required. The LogEntry field path to index.
      *
@@ -635,18 +685,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.
      *
@@ -659,6 +713,7 @@ public Builder setFieldPath(
      * 
* * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFieldPath() { @@ -668,6 +723,8 @@ public Builder clearFieldPath() { return this; } /** + * + * *
      * Required. The LogEntry field path to index.
      *
@@ -680,12 +737,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; @@ -695,22 +754,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. */ @@ -721,11 +787,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 @@ -734,11 +803,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. */ @@ -752,11 +824,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() { @@ -768,8 +843,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.
      *
@@ -777,13 +857,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.
      *
@@ -791,17 +876,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.
      *
@@ -809,7 +901,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) { @@ -825,6 +919,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -832,10 +928,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 { @@ -846,6 +943,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -853,13 +952,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; @@ -872,6 +973,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -879,7 +982,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); @@ -892,6 +997,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -899,7 +1006,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; @@ -907,6 +1016,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The timestamp when the index was last modified.
      *
@@ -914,17 +1025,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.
      *
@@ -932,24 +1048,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); } @@ -959,12 +1080,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(); } @@ -973,27 +1094,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; @@ -1008,6 +1129,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 5c8119f7d..556dda1db 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -20,10 +38,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.
    *
@@ -36,31 +57,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.
    *
@@ -68,11 +97,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.
    *
@@ -80,11 +113,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.
    *
@@ -92,7 +129,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 f02b9b4ec..3abf9cfeb 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,9 +1,26 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 package com.google.logging.v2; /** + * + * *
  * IndexType is used for custom indexing. It describes the type of an indexed
  * field.
@@ -11,9 +28,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.
    * 
@@ -22,6 +40,8 @@ public enum IndexType */ INDEX_TYPE_UNSPECIFIED(0), /** + * + * *
    * The index is a string-type index.
    * 
@@ -30,6 +50,8 @@ public enum IndexType */ INDEX_TYPE_STRING(1), /** + * + * *
    * The index is a integer-type index.
    * 
@@ -41,6 +63,8 @@ public enum IndexType ; /** + * + * *
    * The index's type is unspecified.
    * 
@@ -49,6 +73,8 @@ public enum IndexType */ public static final int INDEX_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The index is a string-type index.
    * 
@@ -57,6 +83,8 @@ public enum IndexType */ public static final int INDEX_TYPE_STRING_VALUE = 1; /** + * + * *
    * The index is a integer-type index.
    * 
@@ -65,7 +93,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( @@ -90,49 +117,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; @@ -148,4 +175,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 064ed3052..8e3053f83 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,18 +1,36 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
@@ -22,6 +40,8 @@ public enum LifecycleState
    */
   LIFECYCLE_STATE_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * The normal and active state.
    * 
@@ -30,6 +50,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.
@@ -39,6 +61,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.
@@ -48,6 +72,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.
@@ -57,6 +83,8 @@ public enum LifecycleState
    */
   CREATING(4),
   /**
+   *
+   *
    * 
    * The resource is in an INTERNAL error state.
    * 
@@ -68,6 +96,8 @@ public enum LifecycleState ; /** + * + * *
    * Unspecified state. This is only used/useful for distinguishing unset
    * values.
@@ -77,6 +107,8 @@ public enum LifecycleState
    */
   public static final int LIFECYCLE_STATE_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * The normal and active state.
    * 
@@ -85,6 +117,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.
@@ -94,6 +128,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.
@@ -103,6 +139,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.
@@ -112,6 +150,8 @@ public enum LifecycleState
    */
   public static final int CREATING_VALUE = 4;
   /**
+   *
+   *
    * 
    * The resource is in an INTERNAL error state.
    * 
@@ -120,7 +160,6 @@ public enum LifecycleState */ public static final int FAILED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -145,52 +184,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; @@ -206,4 +248,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 31b62cbb2..3dffa5609 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,24 +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 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_ = ""; @@ -27,28 +45,31 @@ 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); } 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
@@ -65,6 +86,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -73,14 +95,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The 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
@@ -97,16 +120,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 { @@ -115,9 +137,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.
    *
@@ -125,6 +150,7 @@ public java.lang.String getName() {
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -133,14 +159,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.
    *
@@ -148,16 +175,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 { @@ -168,11 +194,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 @@ -180,11 +210,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * 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 @@ -192,11 +226,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() { @@ -206,32 +243,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
@@ -240,6 +292,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * 
* * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + * * @return Whether the bigqueryDataset field is set. */ @java.lang.Override @@ -247,6 +300,8 @@ public boolean hasBigqueryDataset() { return bigqueryDataset_ != null; } /** + * + * *
    * 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
@@ -255,13 +310,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
@@ -273,10 +333,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;
@@ -288,8 +351,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -299,7 +361,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (createTime_ != null) {
       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 (bigqueryDataset_ != null) {
@@ -321,16 +384,14 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
     }
     if (createTime_ != null) {
-      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 (bigqueryDataset_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getBigqueryDataset());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBigqueryDataset());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -340,27 +401,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;
@@ -392,132 +449,134 @@ 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); } // Construct using com.google.logging.v2.Link.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -539,9 +598,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 @@ -561,7 +620,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; } @@ -575,17 +636,14 @@ private void buildPartial0(com.google.logging.v2.Link result) { result.description_ = description_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } 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(); } } @@ -593,38 +651,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; @@ -678,41 +737,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) { @@ -722,10 +783,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
@@ -742,13 +806,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; @@ -757,6 +821,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
@@ -773,15 +839,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 { @@ -789,6 +854,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
@@ -805,18 +872,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
@@ -833,6 +904,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -842,6 +914,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
@@ -858,12 +932,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,6 +949,8 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Describes this link.
      *
@@ -880,13 +958,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; @@ -895,6 +973,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Describes this link.
      *
@@ -902,15 +982,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 { @@ -918,6 +997,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Describes this link.
      *
@@ -925,18 +1006,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.
      *
@@ -944,6 +1029,7 @@ public Builder setDescription(
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -953,6 +1039,8 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Describes this link.
      *
@@ -960,12 +1048,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; @@ -975,39 +1065,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) { @@ -1023,14 +1132,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 { @@ -1041,17 +1153,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; @@ -1064,11 +1180,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); @@ -1081,11 +1201,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; @@ -1093,36 +1217,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_; @@ -1130,22 +1266,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. */ @@ -1156,24 +1303,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. */ @@ -1187,11 +1345,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() { @@ -1203,8 +1366,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
@@ -1213,12 +1381,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
@@ -1227,16 +1398,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
@@ -1260,6 +1436,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
@@ -1281,6 +1459,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
@@ -1292,9 +1472,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;
@@ -1307,6 +1487,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
@@ -1327,6 +1509,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
@@ -1342,6 +1526,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
@@ -1355,11 +1541,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
@@ -1370,21 +1559,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);
     }
 
@@ -1394,12 +1586,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();
   }
@@ -1408,27 +1600,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;
@@ -1443,6 +1635,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 a4b78cb4b..6f2ffcf69 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,58 +1,81 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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
 
 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 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; } @@ -68,31 +91,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 @@ -100,11 +129,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * The start time of an operation.
    * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -112,6 +144,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The start time of an operation.
    * 
@@ -126,11 +160,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 @@ -138,11 +175,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The end time of an operation.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -150,6 +190,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The end time of an operation.
    * 
@@ -164,36 +206,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 @@ -201,21 +255,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.
    * 
@@ -225,18 +284,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 @@ -244,21 +306,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.
    * 
@@ -268,12 +335,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; @@ -285,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 (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -312,24 +379,23 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } 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; @@ -339,7 +405,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); @@ -348,24 +414,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: @@ -408,132 +470,135 @@ 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() - 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(); @@ -561,9 +626,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 @@ -583,7 +648,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; @@ -592,14 +659,10 @@ public com.google.logging.v2.LinkMetadata buildPartial() { private void buildPartial0(com.google.logging.v2.LinkMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.startTime_ = startTimeBuilder_ == null - ? startTime_ - : startTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.state_ = state_; @@ -609,12 +672,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(); } } @@ -623,38 +684,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; @@ -673,17 +735,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(); @@ -711,45 +776,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) { @@ -759,12 +824,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() { @@ -778,24 +843,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() { @@ -806,6 +880,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The start time of an operation.
      * 
@@ -826,14 +902,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 { @@ -844,6 +921,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The start time of an operation.
      * 
@@ -852,9 +931,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; @@ -867,6 +946,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The start time of an operation.
      * 
@@ -884,6 +965,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The start time of an operation.
      * 
@@ -896,6 +979,8 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The start time of an operation.
      * 
@@ -906,11 +991,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.
      * 
@@ -918,14 +1004,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_; @@ -933,24 +1022,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() { @@ -961,6 +1059,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The end time of an operation.
      * 
@@ -981,14 +1081,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 { @@ -999,6 +1100,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1007,9 +1110,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; @@ -1022,6 +1125,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1039,6 +1144,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1051,6 +1158,8 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The end time of an operation.
      * 
@@ -1061,11 +1170,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.
      * 
@@ -1073,14 +1183,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_; @@ -1088,22 +1201,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. */ @@ -1114,24 +1234,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. */ @@ -1145,11 +1272,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() { @@ -1160,13 +1290,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 @@ -1174,11 +1310,14 @@ public boolean hasCreateLinkRequest() { return requestCase_ == 4; } /** + * + * *
      * CreateLink RPC request.
      * 
* * .google.logging.v2.CreateLinkRequest create_link_request = 4; + * * @return The createLinkRequest. */ @java.lang.Override @@ -1196,6 +1335,8 @@ public com.google.logging.v2.CreateLinkRequest getCreateLinkRequest() { } } /** + * + * *
      * CreateLink RPC request.
      * 
@@ -1216,6 +1357,8 @@ public Builder setCreateLinkRequest(com.google.logging.v2.CreateLinkRequest valu return this; } /** + * + * *
      * CreateLink RPC request.
      * 
@@ -1234,6 +1377,8 @@ public Builder setCreateLinkRequest( return this; } /** + * + * *
      * CreateLink RPC request.
      * 
@@ -1242,10 +1387,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; } @@ -1261,6 +1409,8 @@ public Builder mergeCreateLinkRequest(com.google.logging.v2.CreateLinkRequest va return this; } /** + * + * *
      * CreateLink RPC request.
      * 
@@ -1284,6 +1434,8 @@ public Builder clearCreateLinkRequest() { return this; } /** + * + * *
      * CreateLink RPC request.
      * 
@@ -1294,6 +1446,8 @@ public com.google.logging.v2.CreateLinkRequest.Builder getCreateLinkRequestBuild return getCreateLinkRequestFieldBuilder().getBuilder(); } /** + * + * *
      * CreateLink RPC request.
      * 
@@ -1312,6 +1466,8 @@ public com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBu } } /** + * + * *
      * CreateLink RPC request.
      * 
@@ -1319,14 +1475,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()); @@ -1338,13 +1499,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 @@ -1352,11 +1519,14 @@ public boolean hasDeleteLinkRequest() { return requestCase_ == 5; } /** + * + * *
      * DeleteLink RPC request.
      * 
* * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + * * @return The deleteLinkRequest. */ @java.lang.Override @@ -1374,6 +1544,8 @@ public com.google.logging.v2.DeleteLinkRequest getDeleteLinkRequest() { } } /** + * + * *
      * DeleteLink RPC request.
      * 
@@ -1394,6 +1566,8 @@ public Builder setDeleteLinkRequest(com.google.logging.v2.DeleteLinkRequest valu return this; } /** + * + * *
      * DeleteLink RPC request.
      * 
@@ -1412,6 +1586,8 @@ public Builder setDeleteLinkRequest( return this; } /** + * + * *
      * DeleteLink RPC request.
      * 
@@ -1420,10 +1596,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; } @@ -1439,6 +1618,8 @@ public Builder mergeDeleteLinkRequest(com.google.logging.v2.DeleteLinkRequest va return this; } /** + * + * *
      * DeleteLink RPC request.
      * 
@@ -1462,6 +1643,8 @@ public Builder clearDeleteLinkRequest() { return this; } /** + * + * *
      * DeleteLink RPC request.
      * 
@@ -1472,6 +1655,8 @@ public com.google.logging.v2.DeleteLinkRequest.Builder getDeleteLinkRequestBuild return getDeleteLinkRequestFieldBuilder().getBuilder(); } /** + * + * *
      * DeleteLink RPC request.
      * 
@@ -1490,6 +1675,8 @@ public com.google.logging.v2.DeleteLinkRequestOrBuilder getDeleteLinkRequestOrBu } } /** + * + * *
      * DeleteLink RPC request.
      * 
@@ -1497,14 +1684,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()); @@ -1514,9 +1706,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); } @@ -1526,12 +1718,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(); } @@ -1540,27 +1732,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; @@ -1575,6 +1767,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 94eb54c21..932e9359d 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,31 +1,55 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    * 
@@ -35,24 +59,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.
    * 
@@ -62,43 +94,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.
    * 
@@ -108,24 +154,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 213eb0f29..7c6086353 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -24,10 +42,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
@@ -44,12 +65,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.
    *
@@ -57,10 +80,13 @@ public interface LinkOrBuilder extends
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Describes this link.
    *
@@ -68,58 +94,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
@@ -128,10 +177,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
@@ -140,10 +192,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 b6ed1f1f4..6f5eb20c3 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,24 +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
 
 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_ = ""; @@ -26,28 +44,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:
    *
@@ -61,7 +83,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 @@ -70,14 +95,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource whose buckets are to be listed:
    *
@@ -91,17 +117,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 { @@ -110,9 +137,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
@@ -121,6 +151,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -129,14 +160,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
@@ -145,16 +177,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 { @@ -165,6 +196,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
@@ -172,6 +205,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -180,6 +214,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +226,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -218,8 +252,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; @@ -229,19 +262,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; } @@ -264,132 +294,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(); @@ -401,9 +435,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 @@ -422,8 +456,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; } @@ -445,38 +482,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; @@ -524,27 +562,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) { @@ -554,10 +596,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:
      *
@@ -571,14 +616,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; @@ -587,6 +634,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -600,16 +649,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 { @@ -617,6 +667,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -630,19 +682,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:
      *
@@ -656,7 +714,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() { @@ -666,6 +727,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource whose buckets are to be listed:
      *
@@ -679,13 +742,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; @@ -695,6 +762,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
@@ -703,13 +772,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; @@ -718,6 +787,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
@@ -726,15 +797,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 { @@ -742,6 +812,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
@@ -750,18 +822,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
@@ -770,6 +846,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -779,6 +856,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
@@ -787,12 +866,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; @@ -800,8 +881,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
@@ -809,6 +892,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -816,6 +900,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
@@ -823,6 +909,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -834,6 +921,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
@@ -841,6 +930,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -849,9 +939,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); } @@ -861,12 +951,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(); } @@ -875,27 +965,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; @@ -910,6 +1000,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 e14e5c8e1..371d2129f 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -21,11 +39,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:
    *
@@ -39,13 +62,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
@@ -54,10 +81,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
@@ -66,12 +96,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
@@ -79,6 +111,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 67ac99220..1782f4689 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,24 +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 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_ = ""; @@ -26,28 +44,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.
    * 
@@ -59,6 +81,8 @@ public java.util.List getBucketsList() { return buckets_; } /** + * + * *
    * A list of buckets.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +108,8 @@ public int getBucketsCount() { return buckets_.size(); } /** + * + * *
    * A list of buckets.
    * 
@@ -93,6 +121,8 @@ public com.google.logging.v2.LogBucket getBuckets(int index) { return buckets_.get(index); } /** + * + * *
    * A list of buckets.
    * 
@@ -100,15 +130,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
@@ -116,6 +148,7 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +157,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -139,16 +173,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < buckets_.size(); i++) { output.writeMessage(1, buckets_.get(i)); } @@ -186,8 +219,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_); @@ -200,17 +232,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -233,132 +264,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(); @@ -375,9 +410,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 @@ -396,9 +431,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; } @@ -426,38 +464,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; @@ -484,9 +523,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_); } @@ -523,30 +563,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) { @@ -556,21 +597,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.
      * 
@@ -585,6 +633,8 @@ public java.util.List getBucketsList() { } } /** + * + * *
      * A list of buckets.
      * 
@@ -599,6 +649,8 @@ public int getBucketsCount() { } } /** + * + * *
      * A list of buckets.
      * 
@@ -613,14 +665,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(); @@ -634,14 +687,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()); @@ -652,6 +706,8 @@ public Builder setBuckets( return this; } /** + * + * *
      * A list of buckets.
      * 
@@ -672,14 +728,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(); @@ -693,14 +750,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()); @@ -711,14 +769,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()); @@ -729,6 +788,8 @@ public Builder addBuckets( return this; } /** + * + * *
      * A list of buckets.
      * 
@@ -739,8 +800,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); @@ -748,6 +808,8 @@ public Builder addAllBuckets( return this; } /** + * + * *
      * A list of buckets.
      * 
@@ -765,6 +827,8 @@ public Builder clearBuckets() { return this; } /** + * + * *
      * A list of buckets.
      * 
@@ -782,39 +846,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 { @@ -822,6 +891,8 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder( } } /** + * + * *
      * A list of buckets.
      * 
@@ -829,42 +900,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_; @@ -872,6 +948,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
@@ -879,13 +957,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; @@ -894,6 +972,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
@@ -901,15 +981,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +996,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
@@ -924,18 +1005,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
@@ -943,6 +1028,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1038,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
@@ -959,21 +1047,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1073,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(); } @@ -997,27 +1087,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; @@ -1032,6 +1122,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 96f650205..2f1273cbe 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,22 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    * 
@@ -25,6 +44,8 @@ public interface ListBucketsResponseOrBuilder extends */ com.google.logging.v2.LogBucket getBuckets(int index); /** + * + * *
    * A list of buckets.
    * 
@@ -33,25 +54,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
@@ -59,10 +84,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
@@ -70,8 +98,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 e73cbabfe..fcf8aa381 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,24 +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 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_ = ""; @@ -26,28 +44,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.
    *
@@ -57,7 +79,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 @@ -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 parent resource whose exclusions are to be listed.
    *
@@ -83,17 +109,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 { @@ -102,9 +129,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
@@ -137,16 +169,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 { @@ -157,6 +188,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
@@ -164,6 +197,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -172,6 +206,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,8 +218,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_); } @@ -210,8 +244,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; @@ -221,19 +254,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; } @@ -256,132 +287,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(); @@ -393,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_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 @@ -414,8 +449,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; } @@ -437,38 +475,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; @@ -516,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) { @@ -546,10 +589,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.
      *
@@ -559,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; @@ -575,6 +623,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -584,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 { @@ -601,6 +652,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -610,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 exclusions are to be listed.
      *
@@ -632,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() { @@ -642,6 +704,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource whose exclusions are to be listed.
      *
@@ -651,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; @@ -667,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
@@ -675,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; @@ -690,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
@@ -698,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 { @@ -714,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
@@ -722,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
@@ -742,6 +819,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -751,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
@@ -759,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; @@ -772,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
@@ -781,6 +865,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -788,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
@@ -795,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. */ @@ -806,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
@@ -813,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() { @@ -821,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); } @@ -833,12 +924,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(); } @@ -847,27 +938,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; @@ -882,6 +973,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 66% 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 86bf7ed8c..afd0ce6e0 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -17,11 +35,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.
    *
@@ -31,13 +54,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
@@ -46,10 +73,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
@@ -58,12 +88,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
@@ -71,6 +103,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 935d609d0..808802644 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,24 +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 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_ = ""; @@ -26,28 +44,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.
    * 
@@ -59,6 +81,8 @@ public java.util.List getExclusionsList() { return exclusions_; } /** + * + * *
    * A list of exclusions.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +108,8 @@ public int getExclusionsCount() { return exclusions_.size(); } /** + * + * *
    * A list of exclusions.
    * 
@@ -93,6 +121,8 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { return exclusions_.get(index); } /** + * + * *
    * A list of exclusions.
    * 
@@ -100,15 +130,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
@@ -116,6 +148,7 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +157,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -139,16 +173,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < exclusions_.size(); i++) { output.writeMessage(1, exclusions_.get(i)); } @@ -186,8 +219,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_); @@ -200,17 +232,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -233,132 +264,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(); @@ -375,9 +410,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 @@ -396,9 +431,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; } @@ -426,38 +464,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; @@ -484,9 +523,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_); } @@ -523,30 +563,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) { @@ -556,21 +598,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.
      * 
@@ -585,6 +634,8 @@ public java.util.List getExclusionsList() { } } /** + * + * *
      * A list of exclusions.
      * 
@@ -599,6 +650,8 @@ public int getExclusionsCount() { } } /** + * + * *
      * A list of exclusions.
      * 
@@ -613,14 +666,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(); @@ -634,6 +688,8 @@ public Builder setExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -652,6 +708,8 @@ public Builder setExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -672,14 +730,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(); @@ -693,14 +752,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()); @@ -711,6 +771,8 @@ public Builder addExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -729,6 +791,8 @@ public Builder addExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -739,8 +803,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); @@ -748,6 +811,8 @@ public Builder addAllExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -765,6 +830,8 @@ public Builder clearExclusions() { return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -782,39 +849,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 { @@ -822,6 +894,8 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( } } /** + * + * *
      * A list of exclusions.
      * 
@@ -829,42 +903,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_; @@ -872,6 +951,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
@@ -879,13 +960,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; @@ -894,6 +975,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
@@ -901,15 +984,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +999,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
@@ -924,18 +1008,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
@@ -943,6 +1031,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1041,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
@@ -959,21 +1050,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1076,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(); } @@ -997,27 +1090,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; @@ -1032,6 +1125,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 68% 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 fa87a29cc..a961c9641 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,22 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    * 
@@ -25,6 +44,8 @@ public interface ListExclusionsResponseOrBuilder extends */ com.google.logging.v2.LogExclusion getExclusions(int index); /** + * + * *
    * A list of exclusions.
    * 
@@ -33,25 +54,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
@@ -59,10 +85,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
@@ -70,8 +99,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 02a181bff..cbe9258a3 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,24 +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 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_ = ""; @@ -26,28 +44,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:
    *
@@ -57,7 +79,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 @@ -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 parent resource whose links are to be listed:
    *
@@ -83,17 +109,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 { @@ -102,9 +129,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
@@ -112,6 +142,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -120,14 +151,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
@@ -135,16 +167,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 { @@ -155,11 +186,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 @@ -168,6 +202,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +214,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 +240,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 +250,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -252,132 +282,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(); @@ -389,9 +423,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 @@ -410,8 +444,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; } @@ -433,38 +470,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; @@ -512,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) { @@ -542,10 +584,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:
      *
@@ -555,14 +600,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; @@ -571,6 +618,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -580,16 +629,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 { @@ -597,6 +647,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -606,19 +658,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:
      *
@@ -628,7 +686,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() { @@ -638,6 +699,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource whose links are to be listed:
      *
@@ -647,13 +710,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; @@ -663,6 +730,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
@@ -670,13 +739,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; @@ -685,6 +754,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
@@ -692,15 +763,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 { @@ -708,6 +778,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
@@ -715,18 +787,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
@@ -734,6 +810,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -743,6 +820,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
@@ -750,12 +829,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; @@ -763,13 +844,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 @@ -777,11 +861,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. */ @@ -793,11 +880,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() { @@ -806,9 +896,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); } @@ -818,12 +908,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(); } @@ -832,27 +922,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; @@ -867,6 +957,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 a8a0617b8..59e5f042f 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -17,11 +35,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:
    *
@@ -31,13 +54,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
@@ -45,10 +72,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
@@ -56,17 +86,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 94aebacf4..5b2d3e8a7 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,24 +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 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_ = ""; @@ -26,28 +44,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.
    * 
@@ -59,6 +81,8 @@ public java.util.List getLinksList() { return links_; } /** + * + * *
    * A list of links.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +107,8 @@ public int getLinksCount() { return links_.size(); } /** + * + * *
    * A list of links.
    * 
@@ -93,6 +120,8 @@ public com.google.logging.v2.Link getLinks(int index) { return links_.get(index); } /** + * + * *
    * A list of links.
    * 
@@ -100,15 +129,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
@@ -116,6 +147,7 @@ public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +156,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -139,16 +172,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < links_.size(); i++) { output.writeMessage(1, links_.get(i)); } @@ -186,8 +218,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_); @@ -200,17 +231,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; } @@ -233,132 +262,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(); @@ -375,9 +408,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 @@ -396,9 +429,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; } @@ -426,38 +462,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; @@ -484,9 +521,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_); } @@ -523,30 +561,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) { @@ -556,21 +595,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.
      * 
@@ -585,6 +630,8 @@ public java.util.List getLinksList() { } } /** + * + * *
      * A list of links.
      * 
@@ -599,6 +646,8 @@ public int getLinksCount() { } } /** + * + * *
      * A list of links.
      * 
@@ -613,14 +662,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(); @@ -634,14 +684,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()); @@ -652,6 +703,8 @@ public Builder setLinks( return this; } /** + * + * *
      * A list of links.
      * 
@@ -672,14 +725,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(); @@ -693,14 +747,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()); @@ -711,14 +766,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()); @@ -729,18 +785,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); @@ -748,6 +804,8 @@ public Builder addAllLinks( return this; } /** + * + * *
      * A list of links.
      * 
@@ -765,6 +823,8 @@ public Builder clearLinks() { return this; } /** + * + * *
      * A list of links.
      * 
@@ -782,39 +842,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 { @@ -822,6 +886,8 @@ public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder( } } /** + * + * *
      * A list of links.
      * 
@@ -829,42 +895,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_; @@ -872,6 +942,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
@@ -879,13 +951,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; @@ -894,6 +966,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
@@ -901,15 +975,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +990,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
@@ -924,18 +999,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
@@ -943,6 +1022,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1032,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
@@ -959,21 +1041,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1067,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(); } @@ -997,27 +1081,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; @@ -1032,6 +1116,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 3dd25f26a..4bce776a8 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,22 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    * 
@@ -25,6 +44,8 @@ public interface ListLinksResponseOrBuilder extends */ com.google.logging.v2.Link getLinks(int index); /** + * + * *
    * A list of links.
    * 
@@ -33,25 +54,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
@@ -59,10 +84,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
@@ -70,8 +98,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 4ff613f79..81630936f 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,27 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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_ = ""; @@ -29,29 +46,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:
@@ -72,14 +93,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:
@@ -100,13 +125,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:
@@ -127,7 +157,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. */ @@ -135,6 +168,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:
@@ -155,19 +190,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`.
@@ -177,6 +217,7 @@ public java.lang.String getResourceNames(int index) {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -185,14 +226,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`.
@@ -202,16 +244,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 { @@ -220,9 +261,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
@@ -233,6 +277,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -241,14 +286,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
@@ -259,16 +305,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 { @@ -279,6 +324,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
@@ -287,6 +334,7 @@ public java.lang.String getOrderBy() {
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -295,9 +343,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
@@ -306,6 +357,7 @@ public int getPageSize() {
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -314,14 +366,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
@@ -330,16 +383,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 { @@ -348,6 +400,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -359,8 +412,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_); } @@ -392,8 +444,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_); @@ -414,23 +465,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; } @@ -459,138 +506,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; @@ -599,9 +649,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 @@ -620,8 +670,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; } @@ -650,38 +703,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; @@ -744,38 +798,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) { @@ -785,10 +845,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_); @@ -796,6 +858,8 @@ private void ensureResourceNamesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -816,15 +880,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:
@@ -845,13 +913,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:
@@ -872,7 +945,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. */ @@ -880,6 +956,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:
@@ -900,15 +978,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:
@@ -929,14 +1011,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; @@ -944,6 +1030,8 @@ public Builder setResourceNames( return this; } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -964,13 +1052,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; @@ -978,6 +1070,8 @@ public Builder addResourceNames( return this; } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -998,20 +1092,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:
@@ -1032,17 +1129,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:
@@ -1063,13 +1165,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); @@ -1080,6 +1186,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`.
@@ -1089,13 +1197,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; @@ -1104,6 +1212,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`.
@@ -1113,15 +1223,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 { @@ -1129,6 +1238,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`.
@@ -1138,18 +1249,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`.
@@ -1159,6 +1274,7 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1168,6 +1284,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`.
@@ -1177,12 +1295,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; @@ -1192,6 +1312,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
@@ -1202,13 +1324,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; @@ -1217,6 +1339,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
@@ -1227,15 +1351,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 { @@ -1243,6 +1366,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
@@ -1253,18 +1378,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
@@ -1275,6 +1404,7 @@ public Builder setOrderBy(
      * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1284,6 +1414,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
@@ -1294,12 +1426,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; @@ -1307,8 +1441,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
@@ -1317,6 +1453,7 @@ public Builder setOrderByBytes(
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1324,6 +1461,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
@@ -1332,6 +1471,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1343,6 +1483,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
@@ -1351,6 +1493,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1362,6 +1505,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
@@ -1370,13 +1515,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; @@ -1385,6 +1530,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
@@ -1393,15 +1540,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 { @@ -1409,6 +1555,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
@@ -1417,18 +1565,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
@@ -1437,6 +1589,7 @@ public Builder setPageToken(
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1446,6 +1599,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
@@ -1454,21 +1609,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); } @@ -1478,12 +1635,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(); } @@ -1492,27 +1649,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; @@ -1527,6 +1684,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 467c18bee..79ce18a4d 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
@@ -28,12 +46,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:
@@ -54,11 +76,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:
@@ -79,12 +106,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:
@@ -105,14 +137,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`.
@@ -122,10 +158,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`.
@@ -135,12 +174,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
@@ -151,10 +192,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
@@ -165,12 +209,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
@@ -179,11 +225,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
@@ -192,10 +241,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
@@ -204,8 +256,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 1961d81fa..86735965b 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,24 +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 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_ = ""; @@ -26,28 +44,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
@@ -61,6 +83,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
@@ -70,11 +94,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
@@ -88,6 +114,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
@@ -101,6 +129,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
@@ -110,15 +140,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
@@ -133,6 +165,7 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -141,14 +174,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
@@ -163,16 +197,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 { @@ -181,6 +214,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,8 +226,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < entries_.size(); i++) { output.writeMessage(1, entries_.get(i)); } @@ -210,8 +243,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_); @@ -224,17 +256,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; } @@ -257,132 +288,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(); @@ -399,9 +434,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 @@ -420,9 +455,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; } @@ -450,38 +488,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; @@ -508,9 +547,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_); } @@ -547,30 +587,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) { @@ -580,21 +621,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
@@ -611,6 +659,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
@@ -627,6 +677,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
@@ -643,6 +695,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
@@ -651,8 +705,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();
@@ -666,6 +719,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
@@ -674,8 +729,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());
@@ -686,6 +740,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
@@ -708,6 +764,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
@@ -716,8 +774,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();
@@ -731,6 +788,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
@@ -739,8 +798,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());
@@ -751,6 +809,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
@@ -759,8 +819,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());
@@ -771,6 +830,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
@@ -783,8 +844,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);
@@ -792,6 +852,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
@@ -811,6 +873,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
@@ -830,6 +894,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
@@ -838,11 +904,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
@@ -851,14 +918,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
@@ -867,8 +936,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 {
@@ -876,6 +945,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
@@ -885,10 +956,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
@@ -897,12 +970,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
@@ -911,20 +985,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_;
@@ -932,6 +1008,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
@@ -946,13 +1024,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; @@ -961,6 +1039,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
@@ -975,15 +1055,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 { @@ -991,6 +1070,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
@@ -1005,18 +1086,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
@@ -1031,6 +1116,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1040,6 +1126,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
@@ -1054,21 +1142,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); } @@ -1078,12 +1168,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(); } @@ -1092,27 +1182,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; @@ -1127,6 +1217,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 5e0baed38..73f1d3854 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -16,9 +34,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
@@ -29,6 +48,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
@@ -39,6 +60,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
@@ -47,9 +70,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
@@ -58,10 +82,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
@@ -76,10 +101,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
@@ -94,8 +122,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 59bb9b8df..17d857af6 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,24 +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 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_ = ""; @@ -26,35 +44,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 @@ -63,31 +88,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 { @@ -96,9 +123,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
@@ -107,6 +137,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -115,14 +146,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
@@ -131,16 +163,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 { @@ -151,6 +182,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
@@ -158,6 +191,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -166,6 +200,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +212,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_); } @@ -204,8 +238,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; @@ -215,19 +248,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; } @@ -250,132 +281,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(); @@ -387,9 +422,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 @@ -408,8 +443,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; } @@ -431,38 +469,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; @@ -510,27 +549,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) { @@ -540,24 +583,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; @@ -566,22 +614,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 { @@ -589,32 +640,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() { @@ -624,19 +686,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; @@ -646,6 +714,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
@@ -654,13 +724,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; @@ -669,6 +739,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
@@ -677,15 +749,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 { @@ -693,6 +764,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
@@ -701,18 +774,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
@@ -721,6 +798,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -730,6 +808,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
@@ -738,12 +818,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; @@ -751,8 +833,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
@@ -760,6 +844,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -767,6 +852,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
@@ -774,6 +861,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -785,6 +873,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
@@ -792,6 +882,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -800,9 +891,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); } @@ -812,12 +903,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(); } @@ -826,27 +917,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; @@ -861,6 +952,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 1df55e664..10222a459 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,37 +1,64 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -40,10 +67,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
@@ -52,12 +82,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
@@ -65,6 +97,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 d1d8938e7..74067823d 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,24 +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 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_ = ""; @@ -26,28 +44,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.
    * 
@@ -59,6 +81,8 @@ public java.util.List getMetricsList() { return metrics_; } /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +108,8 @@ public int getMetricsCount() { return metrics_.size(); } /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -93,6 +121,8 @@ public com.google.logging.v2.LogMetric getMetrics(int index) { return metrics_.get(index); } /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -100,15 +130,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
@@ -116,6 +148,7 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +157,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call this
@@ -139,16 +173,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +190,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < metrics_.size(); i++) { output.writeMessage(1, metrics_.get(i)); } @@ -186,8 +219,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_); @@ -200,17 +232,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -233,132 +264,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(); @@ -375,9 +410,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 @@ -396,9 +431,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; } @@ -426,38 +464,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; @@ -484,9 +523,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_); } @@ -523,30 +563,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) { @@ -556,21 +597,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.
      * 
@@ -585,6 +633,8 @@ public java.util.List getMetricsList() { } } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -599,6 +649,8 @@ public int getMetricsCount() { } } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -613,14 +665,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(); @@ -634,14 +687,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()); @@ -652,6 +706,8 @@ public Builder setMetrics( return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -672,14 +728,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(); @@ -693,14 +750,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()); @@ -711,14 +769,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()); @@ -729,6 +788,8 @@ public Builder addMetrics( return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -739,8 +800,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); @@ -748,6 +808,8 @@ public Builder addAllMetrics( return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -765,6 +827,8 @@ public Builder clearMetrics() { return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -782,39 +846,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 { @@ -822,6 +891,8 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder( } } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -829,42 +900,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_; @@ -872,6 +948,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
@@ -879,13 +957,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; @@ -894,6 +972,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
@@ -901,15 +981,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +996,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
@@ -924,18 +1005,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
@@ -943,6 +1028,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1038,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
@@ -959,21 +1047,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1073,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(); } @@ -997,27 +1087,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; @@ -1032,6 +1122,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 65% 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 62637ceba..5828946f1 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,22 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    * 
@@ -25,6 +44,8 @@ public interface ListLogMetricsResponseOrBuilder extends */ com.google.logging.v2.LogMetric getMetrics(int index); /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -33,25 +54,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
@@ -59,10 +84,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
@@ -70,8 +98,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 e0e69cd30..3ba88af95 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,55 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -59,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 @@ -68,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 resource name to list logs for:
    *
@@ -85,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 { @@ -104,10 +130,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:
    *
@@ -126,14 +155,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:
    *
@@ -152,13 +185,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:
    *
@@ -177,7 +215,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. */ @@ -185,6 +226,8 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
    * Optional. List of resource names to list logs for:
    *
@@ -203,18 +246,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
@@ -222,6 +269,7 @@ public java.lang.String getResourceNames(int index) {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -230,9 +278,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
@@ -241,6 +292,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -249,14 +301,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -265,16 +318,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 { @@ -283,6 +335,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,8 +347,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -321,8 +373,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_); @@ -343,21 +394,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; } @@ -384,148 +431,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 @@ -544,8 +593,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; } @@ -571,38 +623,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; @@ -660,33 +713,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) { @@ -696,10 +754,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name to list logs for:
      *
@@ -709,14 +770,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; @@ -725,6 +788,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name to list logs for:
      *
@@ -734,16 +799,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 { @@ -751,6 +817,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name to list logs for:
      *
@@ -760,19 +828,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:
      *
@@ -782,7 +856,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() { @@ -792,6 +869,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The resource name to list logs for:
      *
@@ -801,13 +880,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; @@ -817,6 +900,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_); @@ -824,6 +908,8 @@ private void ensureResourceNamesIsMutable() { bitField0_ |= 0x00000002; } /** + * + * *
      * Optional. List of resource names to list logs for:
      *
@@ -842,15 +928,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:
      *
@@ -869,13 +959,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:
      *
@@ -894,7 +989,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. */ @@ -902,6 +1000,8 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
      * Optional. List of resource names to list logs for:
      *
@@ -920,15 +1020,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:
      *
@@ -947,14 +1051,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; @@ -962,6 +1070,8 @@ public Builder setResourceNames( return this; } /** + * + * *
      * Optional. List of resource names to list logs for:
      *
@@ -980,13 +1090,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; @@ -994,6 +1108,8 @@ public Builder addResourceNames( return this; } /** + * + * *
      * Optional. List of resource names to list logs for:
      *
@@ -1012,20 +1128,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:
      *
@@ -1044,17 +1163,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:
      *
@@ -1073,13 +1197,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); @@ -1088,8 +1216,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
@@ -1097,6 +1227,7 @@ public Builder addResourceNamesBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1104,6 +1235,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
@@ -1111,6 +1244,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -1122,6 +1256,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
@@ -1129,6 +1265,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -1140,6 +1277,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
@@ -1148,13 +1287,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; @@ -1163,6 +1302,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
@@ -1171,15 +1312,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 { @@ -1187,6 +1327,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
@@ -1195,18 +1337,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
@@ -1215,6 +1361,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1224,6 +1371,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
@@ -1232,21 +1381,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); } @@ -1256,12 +1407,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(); } @@ -1270,27 +1421,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; @@ -1305,6 +1456,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 96dcef42f..5ff60b53c 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -17,11 +35,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:
    *
@@ -31,13 +54,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:
    *
@@ -56,12 +83,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:
    *
@@ -80,11 +111,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:
    *
@@ -103,12 +139,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:
    *
@@ -127,14 +168,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
@@ -142,11 +187,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
@@ -155,10 +203,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
@@ -167,8 +218,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 fafd15d02..53803ffbc 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,55 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -57,13 +78,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
@@ -71,12 +94,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
@@ -84,6 +110,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. */ @@ -91,6 +118,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
@@ -98,18 +127,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
@@ -117,6 +149,7 @@ public java.lang.String getLogNames(int index) {
    * 
* * 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 those appearing 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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } @@ -205,17 +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.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; } @@ -238,146 +269,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 @@ -396,8 +430,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; } @@ -417,38 +454,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; @@ -498,23 +536,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) { @@ -524,10 +565,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_); @@ -535,6 +578,8 @@ private void ensureLogNamesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -542,14 +587,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
@@ -557,12 +604,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
@@ -570,6 +620,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. */ @@ -577,6 +628,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
@@ -584,14 +637,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
@@ -599,13 +654,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; @@ -613,6 +670,8 @@ public Builder setLogNames( return this; } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -620,12 +679,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; @@ -633,6 +694,8 @@ public Builder addLogNames( return this; } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -640,19 +703,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
@@ -660,16 +724,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
@@ -677,12 +744,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); @@ -693,6 +762,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
@@ -700,13 +771,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; @@ -715,6 +786,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
@@ -722,15 +795,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 { @@ -738,6 +810,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
@@ -745,18 +819,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
@@ -764,6 +842,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -773,6 +852,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
@@ -780,21 +861,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); } @@ -804,12 +887,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(); } @@ -818,27 +901,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; @@ -853,6 +936,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 66ddf0328..9d79f3ca7 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -15,11 +33,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
@@ -27,10 +47,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
@@ -38,11 +61,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
@@ -50,13 +76,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
@@ -64,10 +92,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
@@ -75,8 +106,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 a2611bdf4..b997c40e7 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,51 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -53,6 +76,7 @@ protected java.lang.Object newInstance(
    * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -61,9 +85,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
@@ -72,6 +99,7 @@ public int getPageSize() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -80,14 +108,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. If present, then retrieve the next batch of results from the
    * preceding call to this method.  `pageToken` must be the value of
@@ -96,16 +125,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 { @@ -114,6 +142,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -125,8 +154,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -143,8 +171,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_); @@ -157,17 +184,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -189,131 +215,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(); @@ -324,13 +355,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(); } @@ -345,13 +377,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_; @@ -365,38 +401,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; @@ -404,7 +441,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()); } @@ -439,22 +478,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) { @@ -464,10 +506,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
@@ -475,6 +520,7 @@ public Builder mergeFrom(
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -482,6 +528,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
@@ -489,6 +537,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -500,6 +549,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
@@ -507,6 +558,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -518,6 +570,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
@@ -526,13 +580,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; @@ -541,6 +595,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
@@ -549,15 +605,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 { @@ -565,6 +620,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
@@ -573,18 +630,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
@@ -593,6 +654,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -602,6 +664,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
@@ -610,21 +674,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); } @@ -634,12 +700,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(); } @@ -648,27 +715,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; @@ -683,6 +750,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 15d223bf5..af7945be8 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -15,11 +33,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
@@ -28,10 +49,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
@@ -40,8 +64,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 f264487ce..746739bfd 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,24 +1,44 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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_ = ""; @@ -26,28 +46,32 @@ private ListMonitoredResourceDescriptorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMonitoredResourceDescriptorsResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.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.
    * 
@@ -59,6 +83,8 @@ public java.util.List getResourceDes return resourceDescriptors_; } /** + * + * *
    * A list of resource descriptors.
    * 
@@ -66,11 +92,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.
    * 
@@ -82,6 +110,8 @@ public int getResourceDescriptorsCount() { return resourceDescriptors_.size(); } /** + * + * *
    * A list of resource descriptors.
    * 
@@ -93,6 +123,8 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind return resourceDescriptors_.get(index); } /** + * + * *
    * A list of resource descriptors.
    * 
@@ -106,9 +138,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
@@ -116,6 +151,7 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +160,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than those appearing in this response, then
    * `nextPageToken` is included.  To get the next set of results, call this
@@ -139,16 +176,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +193,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +205,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < resourceDescriptors_.size(); i++) { output.writeMessage(1, resourceDescriptors_.get(i)); } @@ -186,8 +222,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_); @@ -200,17 +236,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -234,131 +269,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(); @@ -375,13 +415,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(); } @@ -396,14 +437,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_); @@ -415,7 +460,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_; @@ -426,38 +472,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; @@ -465,7 +512,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()) { @@ -484,9 +533,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_); } @@ -523,30 +573,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) { @@ -556,21 +608,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.
      * 
@@ -585,6 +646,8 @@ public java.util.List getResourceDes } } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -599,6 +662,8 @@ public int getResourceDescriptorsCount() { } } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -613,6 +678,8 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind } } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -634,6 +701,8 @@ public Builder setResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -652,6 +721,8 @@ public Builder setResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -672,6 +743,8 @@ public Builder addResourceDescriptors(com.google.api.MonitoredResourceDescriptor return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -693,6 +766,8 @@ public Builder addResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -711,6 +786,8 @@ public Builder addResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -729,6 +806,8 @@ public Builder addResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -739,8 +818,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); @@ -748,6 +826,8 @@ public Builder addAllResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -765,6 +845,8 @@ public Builder clearResourceDescriptors() { return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -782,6 +864,8 @@ public Builder removeResourceDescriptors(int index) { return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -793,6 +877,8 @@ public com.google.api.MonitoredResourceDescriptor.Builder getResourceDescriptors return getResourceDescriptorsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -802,19 +888,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 { @@ -822,6 +911,8 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor } } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -829,10 +920,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.
      * 
@@ -841,26 +934,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(), @@ -872,6 +973,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
@@ -879,13 +982,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; @@ -894,6 +997,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
@@ -901,15 +1006,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +1021,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
@@ -924,18 +1030,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
@@ -943,6 +1053,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1063,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
@@ -959,21 +1072,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,41 +1098,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; @@ -1029,9 +1146,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 02798749c..a49d51190 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,22 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    * 
@@ -25,6 +44,8 @@ public interface ListMonitoredResourceDescriptorsResponseOrBuilder extends */ com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int index); /** + * + * *
    * A list of resource descriptors.
    * 
@@ -33,25 +54,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
@@ -59,10 +85,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
@@ -70,8 +99,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 6e02cbc82..5588e7467 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,24 +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 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_ = ""; @@ -26,28 +44,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:
    *
@@ -57,7 +79,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 @@ -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 parent resource whose sinks are to be listed:
    *
@@ -83,17 +109,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 { @@ -102,9 +129,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
@@ -137,16 +169,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 { @@ -157,6 +188,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
@@ -164,6 +197,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -172,6 +206,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,8 +218,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_); } @@ -210,8 +244,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; @@ -221,19 +254,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; } @@ -256,132 +286,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(); @@ -393,9 +427,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 @@ -414,8 +448,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; } @@ -437,38 +474,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; @@ -516,27 +554,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) { @@ -546,10 +588,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:
      *
@@ -559,14 +604,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; @@ -575,6 +622,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -584,16 +633,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 { @@ -601,6 +651,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -610,19 +662,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:
      *
@@ -632,7 +690,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() { @@ -642,6 +703,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource whose sinks are to be listed:
      *
@@ -651,13 +714,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; @@ -667,6 +734,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
@@ -675,13 +744,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; @@ -690,6 +759,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
@@ -698,15 +769,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 { @@ -714,6 +784,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
@@ -722,18 +794,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
@@ -742,6 +818,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -751,6 +828,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
@@ -759,12 +838,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; @@ -772,8 +853,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
@@ -781,6 +864,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -788,6 +872,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
@@ -795,6 +881,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -806,6 +893,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
@@ -813,6 +902,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -821,9 +911,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); } @@ -833,12 +923,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(); } @@ -847,27 +937,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; @@ -882,6 +972,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 66% 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 9333406e2..7644ad769 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -17,11 +35,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:
    *
@@ -31,13 +54,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
@@ -46,10 +73,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
@@ -58,12 +88,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
@@ -71,6 +103,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 4273313af..48fb86647 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,24 +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 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_ = ""; @@ -26,28 +44,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.
    * 
@@ -59,6 +81,8 @@ public java.util.List getSinksList() { return sinks_; } /** + * + * *
    * A list of sinks.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +107,8 @@ public int getSinksCount() { return sinks_.size(); } /** + * + * *
    * A list of sinks.
    * 
@@ -93,6 +120,8 @@ public com.google.logging.v2.LogSink getSinks(int index) { return sinks_.get(index); } /** + * + * *
    * A list of sinks.
    * 
@@ -100,15 +129,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
@@ -116,6 +147,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +156,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -139,16 +172,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < sinks_.size(); i++) { output.writeMessage(1, sinks_.get(i)); } @@ -186,8 +218,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_); @@ -200,17 +231,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; } @@ -233,132 +262,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(); @@ -375,9 +408,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 @@ -396,9 +429,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; } @@ -426,38 +462,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; @@ -484,9 +521,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_); } @@ -523,30 +561,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) { @@ -556,21 +595,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.
      * 
@@ -585,6 +631,8 @@ public java.util.List getSinksList() { } } /** + * + * *
      * A list of sinks.
      * 
@@ -599,6 +647,8 @@ public int getSinksCount() { } } /** + * + * *
      * A list of sinks.
      * 
@@ -613,14 +663,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(); @@ -634,14 +685,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()); @@ -652,6 +704,8 @@ public Builder setSinks( return this; } /** + * + * *
      * A list of sinks.
      * 
@@ -672,14 +726,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(); @@ -693,14 +748,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()); @@ -711,14 +767,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()); @@ -729,18 +786,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); @@ -748,6 +805,8 @@ public Builder addAllSinks( return this; } /** + * + * *
      * A list of sinks.
      * 
@@ -765,6 +824,8 @@ public Builder clearSinks() { return this; } /** + * + * *
      * A list of sinks.
      * 
@@ -782,39 +843,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 { @@ -822,6 +888,8 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder( } } /** + * + * *
      * A list of sinks.
      * 
@@ -829,42 +897,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_; @@ -872,6 +944,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
@@ -879,13 +953,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; @@ -894,6 +968,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
@@ -901,15 +977,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +992,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
@@ -924,18 +1001,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
@@ -943,6 +1024,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1034,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
@@ -959,21 +1043,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1069,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(); } @@ -997,27 +1083,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; @@ -1032,6 +1118,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 d8f0b38a7..fedd90095 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,22 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    * 
@@ -25,6 +44,8 @@ public interface ListSinksResponseOrBuilder extends */ com.google.logging.v2.LogSink getSinks(int index); /** + * + * *
    * A list of sinks.
    * 
@@ -33,25 +54,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
@@ -59,10 +84,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
@@ -70,8 +98,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 4dfe296ad..8dd4ec137 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,24 +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 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_ = ""; @@ -26,28 +44,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:
    *
@@ -55,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -63,14 +86,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:
    *
@@ -78,16 +102,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 { @@ -96,9 +119,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
@@ -107,6 +133,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -115,14 +142,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
@@ -131,16 +159,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 { @@ -151,6 +178,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.
    *
@@ -159,6 +188,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -167,6 +197,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,8 +209,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 +235,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 +245,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; } @@ -251,132 +277,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(); @@ -388,9 +418,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 @@ -409,8 +439,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; } @@ -432,38 +465,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; @@ -511,27 +545,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,10 +579,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The bucket whose views are to be listed:
      *
@@ -552,13 +593,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; @@ -567,6 +608,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The bucket whose views are to be listed:
      *
@@ -574,15 +617,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 { @@ -590,6 +632,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The bucket whose views are to be listed:
      *
@@ -597,18 +641,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:
      *
@@ -616,6 +664,7 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -625,6 +674,8 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The bucket whose views are to be listed:
      *
@@ -632,12 +683,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; @@ -647,6 +700,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 +710,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 +725,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 +735,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 +750,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 +760,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 +784,7 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -731,6 +794,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 +804,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 +819,10 @@ public Builder setPageTokenBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return from this request.
      *
@@ -762,6 +831,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -769,6 +839,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      *
@@ -777,6 +849,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -788,6 +861,8 @@ public Builder setPageSize(int value) { return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      *
@@ -796,6 +871,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -804,9 +880,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); } @@ -816,12 +892,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(); } @@ -830,27 +906,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; @@ -865,6 +941,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 5eee52bd3..5d11a0503 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -15,10 +33,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:
    *
@@ -26,12 +47,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
@@ -40,10 +63,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
@@ -52,12 +78,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.
    *
@@ -66,6 +94,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 cdf39bd55..dc8950d92 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,24 +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 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_ = ""; @@ -26,28 +44,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.
    * 
@@ -59,6 +81,8 @@ public java.util.List getViewsList() { return views_; } /** + * + * *
    * A list of views.
    * 
@@ -66,11 +90,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.
    * 
@@ -82,6 +107,8 @@ public int getViewsCount() { return views_.size(); } /** + * + * *
    * A list of views.
    * 
@@ -93,6 +120,8 @@ public com.google.logging.v2.LogView getViews(int index) { return views_.get(index); } /** + * + * *
    * A list of views.
    * 
@@ -100,15 +129,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
@@ -116,6 +147,7 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -124,14 +156,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there might be more results than appear in this response, then
    * `nextPageToken` is included. To get the next set of results, call the same
@@ -139,16 +172,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,6 +189,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < views_.size(); i++) { output.writeMessage(1, views_.get(i)); } @@ -186,8 +218,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_); @@ -200,17 +231,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; } @@ -233,132 +262,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(); @@ -375,9 +408,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 @@ -396,9 +429,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; } @@ -426,38 +462,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; @@ -484,9 +521,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_); } @@ -523,30 +561,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) { @@ -556,21 +595,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.
      * 
@@ -585,6 +631,8 @@ public java.util.List getViewsList() { } } /** + * + * *
      * A list of views.
      * 
@@ -599,6 +647,8 @@ public int getViewsCount() { } } /** + * + * *
      * A list of views.
      * 
@@ -613,14 +663,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(); @@ -634,14 +685,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()); @@ -652,6 +704,8 @@ public Builder setViews( return this; } /** + * + * *
      * A list of views.
      * 
@@ -672,14 +726,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(); @@ -693,14 +748,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()); @@ -711,14 +767,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()); @@ -729,18 +786,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); @@ -748,6 +805,8 @@ public Builder addAllViews( return this; } /** + * + * *
      * A list of views.
      * 
@@ -765,6 +824,8 @@ public Builder clearViews() { return this; } /** + * + * *
      * A list of views.
      * 
@@ -782,39 +843,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 { @@ -822,6 +888,8 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder( } } /** + * + * *
      * A list of views.
      * 
@@ -829,42 +897,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_; @@ -872,6 +944,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
@@ -879,13 +953,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; @@ -894,6 +968,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
@@ -901,15 +977,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -917,6 +992,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
@@ -924,18 +1001,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
@@ -943,6 +1024,7 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -952,6 +1034,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
@@ -959,21 +1043,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -983,12 +1069,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(); } @@ -997,27 +1083,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; @@ -1032,6 +1118,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 32cbf00bf..5ef06f12f 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,22 +1,41 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    * 
@@ -25,6 +44,8 @@ public interface ListViewsResponseOrBuilder extends */ com.google.logging.v2.LogView getViews(int index); /** + * + * *
    * A list of views.
    * 
@@ -33,25 +54,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
@@ -59,10 +84,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
@@ -70,8 +98,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 8dd10e86a..80746b78a 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,56 +1,77 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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 @@ -59,6 +80,7 @@ public boolean getLogAnalyticsEnabled() { } 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 (logAnalyticsEnabled_ != false) { output.writeBool(1, logAnalyticsEnabled_); } @@ -85,8 +106,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; @@ -96,15 +116,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; } @@ -117,139 +136,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(); @@ -259,9 +281,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 @@ -280,8 +302,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; } @@ -297,38 +322,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; @@ -366,17 +392,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) { @@ -386,16 +414,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 @@ -403,12 +435,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. */ @@ -420,12 +455,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() { @@ -434,9 +472,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); } @@ -446,12 +484,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(); } @@ -460,27 +498,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; @@ -495,6 +533,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..0dcbed7dc --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.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 + +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 74% 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 e88c30436..ad09e4cdc 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,57 +1,77 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource name of the bucket.
    *
@@ -69,6 +89,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -77,14 +98,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the bucket.
    *
@@ -102,16 +124,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 { @@ -120,14 +141,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 @@ -136,29 +161,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 { @@ -169,12 +194,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 @@ -182,12 +211,16 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * 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 @@ -195,12 +228,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() { @@ -210,11 +246,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 @@ -222,11 +262,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * 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 @@ -234,11 +278,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() { @@ -248,6 +295,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
@@ -256,6 +305,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * int32 retention_days = 11; + * * @return The retentionDays. */ @java.lang.Override @@ -266,6 +316,8 @@ public int getRetentionDays() { public static final int LOCKED_FIELD_NUMBER = 9; private boolean locked_ = false; /** + * + * *
    * Whether the bucket is locked.
    *
@@ -274,6 +326,7 @@ public int getRetentionDays() {
    * 
* * bool locked = 9; + * * @return The locked. */ @java.lang.Override @@ -284,32 +337,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.
    *
@@ -317,6 +385,7 @@ public boolean getLocked() {
    * 
* * bool analytics_enabled = 14; + * * @return The analyticsEnabled. */ @java.lang.Override @@ -325,10 +394,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.
    *
@@ -340,13 +412,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.
    *
@@ -358,12 +432,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.
    *
@@ -375,6 +452,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. */ @@ -382,6 +460,8 @@ public java.lang.String getRestrictedFields(int index) { return restrictedFields_.get(index); } /** + * + * *
    * Log entry field paths that are denied access in this bucket.
    *
@@ -393,18 +473,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.
    * 
@@ -416,6 +499,8 @@ public java.util.List getIndexConfigsList() { return indexConfigs_; } /** + * + * *
    * A list of indexed fields and related configuration data.
    * 
@@ -423,11 +508,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.
    * 
@@ -439,6 +526,8 @@ public int getIndexConfigsCount() { return indexConfigs_.size(); } /** + * + * *
    * A list of indexed fields and related configuration data.
    * 
@@ -450,6 +539,8 @@ public com.google.logging.v2.IndexConfig getIndexConfigs(int index) { return indexConfigs_.get(index); } /** + * + * *
    * A list of indexed fields and related configuration data.
    * 
@@ -457,14 +548,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
@@ -474,6 +566,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 @@ -481,6 +574,8 @@ public boolean hasCmekSettings() { return cmekSettings_ != null; } /** + * + * *
    * 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
@@ -490,13 +585,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
@@ -509,10 +609,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;
@@ -524,8 +627,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_);
     }
@@ -544,7 +646,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) {
@@ -575,28 +678,23 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
     }
     if (createTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getCreateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime());
     }
     if (updateTime_ != null) {
-      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;
@@ -607,12 +705,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 (cmekSettings_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(19, getCmekSettings());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getCmekSettings());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -622,42 +718,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;
@@ -685,13 +771,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();
@@ -709,132 +793,134 @@ 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); } // Construct using com.google.logging.v2.LogBucket.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(); @@ -855,8 +941,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 { @@ -873,9 +958,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 @@ -896,7 +981,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; } @@ -922,14 +1009,10 @@ private void buildPartial0(com.google.logging.v2.LogBucket result) { result.description_ = description_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.retentionDays_ = retentionDays_; @@ -948,9 +1031,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(); } } @@ -958,38 +1040,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; @@ -1054,9 +1137,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_); } @@ -1091,82 +1175,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) { @@ -1176,10 +1265,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the bucket.
      *
@@ -1197,13 +1289,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; @@ -1212,6 +1304,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the bucket.
      *
@@ -1229,15 +1323,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 { @@ -1245,6 +1338,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the bucket.
      *
@@ -1262,18 +1357,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.
      *
@@ -1291,6 +1390,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1300,6 +1400,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource name of the bucket.
      *
@@ -1317,12 +1419,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; @@ -1332,18 +1436,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; @@ -1352,20 +1458,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 { @@ -1373,28 +1480,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() { @@ -1404,17 +1518,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; @@ -1424,42 +1542,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) { @@ -1475,15 +1612,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 { @@ -1494,18 +1634,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; @@ -1518,12 +1662,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); @@ -1536,12 +1684,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; @@ -1549,38 +1701,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_; @@ -1588,39 +1752,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) { @@ -1636,14 +1819,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 { @@ -1654,17 +1840,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; @@ -1677,11 +1867,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); @@ -1694,11 +1888,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; @@ -1706,43 +1904,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
@@ -1751,6 +1963,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * int32 retention_days = 11; + * * @return The retentionDays. */ @java.lang.Override @@ -1758,6 +1971,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
@@ -1766,6 +1981,7 @@ public int getRetentionDays() {
      * 
* * int32 retention_days = 11; + * * @param value The retentionDays to set. * @return This builder for chaining. */ @@ -1777,6 +1993,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
@@ -1785,6 +2003,7 @@ public Builder setRetentionDays(int value) {
      * 
* * int32 retention_days = 11; + * * @return This builder for chaining. */ public Builder clearRetentionDays() { @@ -1794,8 +2013,10 @@ public Builder clearRetentionDays() { return this; } - private boolean locked_ ; + private boolean locked_; /** + * + * *
      * Whether the bucket is locked.
      *
@@ -1804,6 +2025,7 @@ public Builder clearRetentionDays() {
      * 
* * bool locked = 9; + * * @return The locked. */ @java.lang.Override @@ -1811,6 +2033,8 @@ public boolean getLocked() { return locked_; } /** + * + * *
      * Whether the bucket is locked.
      *
@@ -1819,6 +2043,7 @@ public boolean getLocked() {
      * 
* * bool locked = 9; + * * @param value The locked to set. * @return This builder for chaining. */ @@ -1830,6 +2055,8 @@ public Builder setLocked(boolean value) { return this; } /** + * + * *
      * Whether the bucket is locked.
      *
@@ -1838,6 +2065,7 @@ public Builder setLocked(boolean value) {
      * 
* * bool locked = 9; + * * @return This builder for chaining. */ public Builder clearLocked() { @@ -1849,22 +2077,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. */ @@ -1875,24 +2114,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. */ @@ -1906,11 +2156,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() { @@ -1920,8 +2175,10 @@ public Builder clearLifecycleState() { return this; } - private boolean analyticsEnabled_ ; + private boolean analyticsEnabled_; /** + * + * *
      * Whether log analytics is enabled for this bucket.
      *
@@ -1929,6 +2186,7 @@ public Builder clearLifecycleState() {
      * 
* * bool analytics_enabled = 14; + * * @return The analyticsEnabled. */ @java.lang.Override @@ -1936,6 +2194,8 @@ public boolean getAnalyticsEnabled() { return analyticsEnabled_; } /** + * + * *
      * Whether log analytics is enabled for this bucket.
      *
@@ -1943,6 +2203,7 @@ public boolean getAnalyticsEnabled() {
      * 
* * bool analytics_enabled = 14; + * * @param value The analyticsEnabled to set. * @return This builder for chaining. */ @@ -1954,6 +2215,8 @@ public Builder setAnalyticsEnabled(boolean value) { return this; } /** + * + * *
      * Whether log analytics is enabled for this bucket.
      *
@@ -1961,6 +2224,7 @@ public Builder setAnalyticsEnabled(boolean value) {
      * 
* * bool analytics_enabled = 14; + * * @return This builder for chaining. */ public Builder clearAnalyticsEnabled() { @@ -1972,6 +2236,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_); @@ -1979,6 +2244,8 @@ private void ensureRestrictedFieldsIsMutable() { bitField0_ |= 0x00000100; } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -1990,14 +2257,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.
      *
@@ -2009,12 +2278,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.
      *
@@ -2026,6 +2298,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. */ @@ -2033,6 +2306,8 @@ public java.lang.String getRestrictedFields(int index) { return restrictedFields_.get(index); } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2044,14 +2319,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.
      *
@@ -2063,13 +2340,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; @@ -2077,6 +2356,8 @@ public Builder setRestrictedFields( return this; } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2088,12 +2369,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; @@ -2101,6 +2384,8 @@ public Builder addRestrictedFields( return this; } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      *
@@ -2112,19 +2397,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.
      *
@@ -2136,16 +2422,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.
      *
@@ -2157,12 +2446,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); @@ -2172,18 +2463,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.
      * 
@@ -2198,6 +2495,8 @@ public java.util.List getIndexConfigsList() { } } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2212,6 +2511,8 @@ public int getIndexConfigsCount() { } } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2226,14 +2527,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(); @@ -2247,6 +2549,8 @@ public Builder setIndexConfigs( return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2265,6 +2569,8 @@ public Builder setIndexConfigs( return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2285,14 +2591,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(); @@ -2306,14 +2613,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()); @@ -2324,6 +2632,8 @@ public Builder addIndexConfigs( return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2342,6 +2652,8 @@ public Builder addIndexConfigs( return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2352,8 +2664,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); @@ -2361,6 +2672,8 @@ public Builder addAllIndexConfigs( return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2378,6 +2691,8 @@ public Builder clearIndexConfigs() { return this; } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2395,39 +2710,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 { @@ -2435,6 +2755,8 @@ public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder( } } /** + * + * *
      * A list of indexed fields and related configuration data.
      * 
@@ -2442,42 +2764,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_; @@ -2485,8 +2812,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
@@ -2496,12 +2828,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
@@ -2511,16 +2846,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
@@ -2545,6 +2885,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
@@ -2555,8 +2897,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 {
@@ -2567,6 +2908,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
@@ -2579,9 +2922,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;
@@ -2594,6 +2937,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
@@ -2615,6 +2960,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
@@ -2631,6 +2978,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
@@ -2645,11 +2994,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
@@ -2661,21 +3013,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);
     }
 
@@ -2685,12 +3040,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();
   }
@@ -2699,27 +3054,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;
@@ -2734,6 +3089,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 4f38df197..669304a65 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,13 +1,31 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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
 
 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.
    *
@@ -25,10 +43,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.
    *
@@ -46,89 +67,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
@@ -137,11 +187,14 @@ public interface LogBucketOrBuilder extends
    * 
* * int32 retention_days = 11; + * * @return The retentionDays. */ int getRetentionDays(); /** + * + * *
    * Whether the bucket is locked.
    *
@@ -150,30 +203,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.
    *
@@ -181,11 +247,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.
    *
@@ -197,11 +266,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.
    *
@@ -213,10 +284,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.
    *
@@ -228,11 +302,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.
    *
@@ -244,22 +321,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.
    * 
@@ -268,6 +348,8 @@ public interface LogBucketOrBuilder extends */ com.google.logging.v2.IndexConfig getIndexConfigs(int index); /** + * + * *
    * A list of indexed fields and related configuration data.
    * 
@@ -276,25 +358,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
@@ -304,10 +391,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
@@ -317,10 +407,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 f0ef97381..c3c349ed4 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,24 +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/log_entry.proto
 
 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; @@ -29,47 +47,50 @@ 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"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { 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 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; } @@ -85,28 +106,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:
    *
@@ -134,6 +162,7 @@ public int getNumber() {
    * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; + * * @return The logName. */ @java.lang.Override @@ -142,14 +171,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:
    *
@@ -177,16 +207,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 { @@ -197,6 +226,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.
    *
@@ -205,7 +236,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 @@ -213,6 +246,8 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Required. The monitored resource that produced this log entry.
    *
@@ -221,7 +256,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 @@ -229,6 +266,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.
    *
@@ -237,7 +276,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() { @@ -246,6 +286,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.
@@ -258,6 +300,7 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
    * 
* * .google.protobuf.Any proto_payload = 2; + * * @return Whether the protoPayload field is set. */ @java.lang.Override @@ -265,6 +308,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.
@@ -277,16 +322,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.
@@ -303,29 +351,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() { @@ -336,8 +390,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; @@ -346,23 +399,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; } @@ -374,12 +428,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 @@ -387,22 +444,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.
@@ -413,7 +475,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();
   }
@@ -421,6 +483,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
@@ -436,7 +500,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 @@ -444,6 +510,8 @@ public boolean hasTimestamp() { return timestamp_ != null; } /** + * + * *
    * 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
@@ -459,7 +527,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 @@ -467,6 +537,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
@@ -482,7 +554,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() { @@ -492,11 +565,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 @@ -504,61 +582,88 @@ public boolean hasReceiveTimestamp() { return receiveTimestamp_ != null; } /** + * + * *
    * 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
@@ -574,6 +679,7 @@ public com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder() {
    * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The insertId. */ @java.lang.Override @@ -582,14 +688,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
@@ -605,16 +712,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 { @@ -625,12 +731,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 @@ -638,58 +749,73 @@ public boolean hasHttpRequest() { return httpRequest_ != null; } /** + * + * *
    * 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.
@@ -710,20 +836,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.
@@ -748,6 +875,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.
@@ -768,17 +897,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.
@@ -799,11 +930,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();
     }
@@ -813,12 +944,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 @@ -826,35 +962,51 @@ public boolean hasOperation() { return operation_ != null; } /** + * + * *
    * 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
@@ -868,6 +1020,7 @@ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder()
    * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The trace. */ @java.lang.Override @@ -876,14 +1029,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
@@ -897,16 +1051,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 { @@ -915,9 +1068,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.
@@ -952,6 +1108,7 @@ public java.lang.String getTrace() {
    * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spanId. */ @java.lang.Override @@ -960,14 +1117,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.
@@ -1002,16 +1160,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 { @@ -1022,6 +1179,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.
    *
@@ -1033,6 +1192,7 @@ public java.lang.String getSpanId() {
    * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The traceSampled. */ @java.lang.Override @@ -1043,12 +1203,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 @@ -1056,40 +1221,56 @@ public boolean hasSourceLocation() { return sourceLocation_ != null; } /** + * + * *
    * 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 @@ -1097,12 +1278,15 @@ public boolean hasSplit() { return split_ != null; } /** + * + * *
    * 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 @@ -1110,6 +1294,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.
@@ -1123,6 +1309,7 @@ public com.google.logging.v2.LogSplitOrBuilder getSplitOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1134,8 +1321,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_);
     }
@@ -1160,12 +1346,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_);
     }
@@ -1200,8 +1382,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_);
@@ -1210,63 +1393,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 (httpRequest_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getHttpRequest());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getHttpRequest());
     }
     if (resource_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(8, getResource());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getResource());
     }
     if (timestamp_ != null) {
-      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 (operation_ != null) {
-      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 (sourceLocation_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(23, getSourceLocation());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSourceLocation());
     }
     if (receiveTimestamp_ != null) {
-      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 (split_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(35, getSplit());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, getSplit());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1276,74 +1451,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:
@@ -1394,8 +1553,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();
@@ -1425,154 +1583,154 @@ 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"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { 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.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { 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); } // Construct using com.google.logging.v2.LogEntry.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(); @@ -1631,9 +1789,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 @@ -1653,7 +1811,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; @@ -1665,19 +1825,14 @@ private void buildPartial0(com.google.logging.v2.LogEntry result) { result.logName_ = logName_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.resource_ = resourceBuilder_ == null - ? resource_ - : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.timestamp_ = timestampBuilder_ == null - ? timestamp_ - : timestampBuilder_.build(); + result.timestamp_ = timestampBuilder_ == null ? timestamp_ : timestampBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.receiveTimestamp_ = receiveTimestampBuilder_ == null - ? receiveTimestamp_ - : receiveTimestampBuilder_.build(); + result.receiveTimestamp_ = + receiveTimestampBuilder_ == null ? receiveTimestamp_ : receiveTimestampBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.severity_ = severity_; @@ -1686,18 +1841,15 @@ 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(); } if (((from_bitField0_ & 0x00000400) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000800) != 0)) { - result.operation_ = operationBuilder_ == null - ? operation_ - : operationBuilder_.build(); + result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); } if (((from_bitField0_ & 0x00001000) != 0)) { result.trace_ = trace_; @@ -1709,26 +1861,21 @@ 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(); } if (((from_bitField0_ & 0x00010000) != 0)) { - result.split_ = splitBuilder_ == null - ? split_ - : splitBuilder_.build(); + result.split_ = splitBuilder_ == null ? split_ : splitBuilder_.build(); } } 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(); } } @@ -1737,38 +1884,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; @@ -1802,8 +1950,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()); @@ -1828,23 +1975,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(); @@ -1872,120 +2023,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) { @@ -1995,12 +2149,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() { @@ -2014,6 +2168,8 @@ public Builder clearPayload() { private java.lang.Object logName_ = ""; /** + * + * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2041,13 +2197,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; @@ -2056,6 +2212,8 @@ public java.lang.String getLogName() { } } /** + * + * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2083,15 +2241,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 { @@ -2099,6 +2256,8 @@ public java.lang.String getLogName() { } } /** + * + * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2126,18 +2285,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:
      *
@@ -2165,6 +2328,7 @@ public Builder setLogName(
      * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLogName() { @@ -2174,6 +2338,8 @@ public Builder clearLogName() { return this; } /** + * + * *
      * Required. The resource name of the log to which this log entry belongs:
      *
@@ -2201,12 +2367,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; @@ -2216,8 +2384,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.
      *
@@ -2226,13 +2399,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.
      *
@@ -2241,17 +2418,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.
      *
@@ -2260,7 +2443,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) { @@ -2276,6 +2460,8 @@ public Builder setResource(com.google.api.MonitoredResource value) { return this; } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2284,10 +2470,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 { @@ -2298,6 +2484,8 @@ public Builder setResource( return this; } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2306,13 +2494,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; @@ -2325,6 +2514,8 @@ public Builder mergeResource(com.google.api.MonitoredResource value) { return this; } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2333,7 +2524,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); @@ -2346,6 +2538,8 @@ public Builder clearResource() { return this; } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2354,7 +2548,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; @@ -2362,6 +2557,8 @@ public com.google.api.MonitoredResource.Builder getResourceBuilder() { return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      *
@@ -2370,17 +2567,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.
      *
@@ -2389,25 +2590,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.
@@ -2420,6 +2630,7 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
      * 
* * .google.protobuf.Any proto_payload = 2; + * * @return Whether the protoPayload field is set. */ @java.lang.Override @@ -2427,6 +2638,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.
@@ -2439,6 +2652,7 @@ public boolean hasProtoPayload() {
      * 
* * .google.protobuf.Any proto_payload = 2; + * * @return The protoPayload. */ @java.lang.Override @@ -2456,6 +2670,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.
@@ -2483,6 +2699,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.
@@ -2496,8 +2714,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();
@@ -2508,6 +2725,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.
@@ -2523,10 +2742,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;
         }
@@ -2542,6 +2762,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.
@@ -2572,6 +2794,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.
@@ -2589,6 +2813,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.
@@ -2614,6 +2840,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.
@@ -2628,17 +2856,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;
@@ -2647,11 +2878,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 @@ -2659,11 +2893,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 @@ -2673,8 +2910,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; @@ -2685,24 +2921,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; } @@ -2712,28 +2949,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() { @@ -2745,17 +2989,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; @@ -2764,14 +3012,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 @@ -2779,12 +3033,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 @@ -2802,6 +3059,8 @@ public com.google.protobuf.Struct getJsonPayload() { } } /** + * + * *
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2823,6 +3082,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.
@@ -2830,8 +3091,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();
@@ -2842,6 +3102,8 @@ public Builder setJsonPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2851,10 +3113,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;
         }
@@ -2870,6 +3133,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.
@@ -2894,6 +3159,8 @@ public Builder clearJsonPayload() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2905,6 +3172,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.
@@ -2924,6 +3193,8 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2932,17 +3203,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;
@@ -2952,8 +3226,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
@@ -2969,13 +3248,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
@@ -2991,7 +3274,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() { @@ -3002,6 +3287,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
@@ -3017,7 +3304,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) { @@ -3033,6 +3321,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
@@ -3048,10 +3338,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 { @@ -3062,6 +3352,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
@@ -3077,13 +3369,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; @@ -3096,6 +3389,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
@@ -3111,7 +3406,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); @@ -3124,6 +3420,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
@@ -3139,7 +3437,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; @@ -3147,6 +3446,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
@@ -3162,17 +3463,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
@@ -3188,17 +3491,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_; @@ -3206,39 +3513,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) { @@ -3254,14 +3580,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 { @@ -3272,17 +3601,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; @@ -3295,11 +3628,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); @@ -3312,11 +3649,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; @@ -3324,36 +3665,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_; @@ -3361,24 +3714,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. */ @@ -3389,26 +3753,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. */ @@ -3422,12 +3797,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() { @@ -3439,6 +3819,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
@@ -3454,13 +3836,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; @@ -3469,6 +3851,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
@@ -3484,15 +3868,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 { @@ -3500,6 +3883,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
@@ -3515,18 +3900,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
@@ -3542,6 +3931,7 @@ public Builder setInsertId(
      * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearInsertId() { @@ -3551,6 +3941,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
@@ -3566,12 +3958,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; @@ -3581,42 +3975,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) { @@ -3632,15 +4045,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 { @@ -3651,18 +4067,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; @@ -3675,12 +4095,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); @@ -3693,12 +4117,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; @@ -3706,58 +4134,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(); @@ -3766,10 +4204,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.
@@ -3790,20 +4231,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.
@@ -3828,6 +4270,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.
@@ -3848,17 +4292,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.
@@ -3879,23 +4325,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.
@@ -3915,23 +4363,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.
@@ -3951,17 +4398,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.
@@ -3981,52 +4431,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) { @@ -4042,15 +4509,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 { @@ -4061,18 +4531,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; @@ -4085,12 +4559,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); @@ -4103,12 +4581,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; @@ -4116,38 +4598,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_; @@ -4155,6 +4649,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
@@ -4168,13 +4664,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; @@ -4183,6 +4679,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
@@ -4196,15 +4694,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 { @@ -4212,6 +4709,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
@@ -4225,18 +4724,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
@@ -4250,6 +4753,7 @@ public Builder setTrace(
      * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTrace() { @@ -4259,6 +4763,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
@@ -4272,12 +4778,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; @@ -4287,6 +4795,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.
@@ -4321,13 +4831,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; @@ -4336,6 +4846,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.
@@ -4370,15 +4882,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 { @@ -4386,6 +4897,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.
@@ -4420,18 +4933,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.
@@ -4466,6 +4983,7 @@ public Builder setSpanId(
      * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSpanId() { @@ -4475,6 +4993,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.
@@ -4509,12 +5029,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; @@ -4522,8 +5044,10 @@ public Builder setSpanIdBytes( return this; } - private boolean traceSampled_ ; + private boolean traceSampled_; /** + * + * *
      * Optional. The sampling decision of the trace associated with the log entry.
      *
@@ -4535,6 +5059,7 @@ public Builder setSpanIdBytes(
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The traceSampled. */ @java.lang.Override @@ -4542,6 +5067,8 @@ public boolean getTraceSampled() { return traceSampled_; } /** + * + * *
      * Optional. The sampling decision of the trace associated with the log entry.
      *
@@ -4553,6 +5080,7 @@ public boolean getTraceSampled() {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The traceSampled to set. * @return This builder for chaining. */ @@ -4564,6 +5092,8 @@ public Builder setTraceSampled(boolean value) { return this; } /** + * + * *
      * Optional. The sampling decision of the trace associated with the log entry.
      *
@@ -4575,6 +5105,7 @@ public Builder setTraceSampled(boolean value) {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTraceSampled() { @@ -4586,42 +5117,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) { @@ -4637,12 +5187,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) { @@ -4656,18 +5210,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; @@ -4680,12 +5239,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); @@ -4698,12 +5261,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; @@ -4711,38 +5278,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_; @@ -4750,26 +5329,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() { @@ -4780,12 +5370,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) { @@ -4801,15 +5394,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 { @@ -4820,18 +5415,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; @@ -4844,12 +5442,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); @@ -4862,12 +5463,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; @@ -4875,45 +5479,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); } @@ -4923,12 +5535,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(); } @@ -4937,27 +5549,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; @@ -4972,6 +5584,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 e88828846..b3b65f774 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,9 +1,26 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 package com.google.logging.v2; /** + * + * *
  * Additional information about a potentially long-running operation with which
  * a log entry is associated.
@@ -11,15 +28,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_ = "";
@@ -27,34 +45,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 @@ -63,30 +86,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 { @@ -95,9 +118,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`:
@@ -105,6 +131,7 @@ public java.lang.String getId() {
    * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The producer. */ @java.lang.Override @@ -113,14 +140,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`:
@@ -128,16 +156,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 { @@ -148,11 +175,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 @@ -163,11 +193,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 @@ -176,6 +209,7 @@ public boolean getLast() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,8 +221,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -217,12 +250,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; @@ -232,21 +263,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; } @@ -263,109 +290,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.
@@ -373,33 +403,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();
@@ -412,9 +441,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
@@ -433,8 +462,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;
     }
@@ -459,38 +491,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;
@@ -541,32 +574,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) {
@@ -576,23 +614,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; @@ -601,21 +642,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 { @@ -623,30 +665,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() { @@ -656,18 +705,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; @@ -677,6 +730,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`:
@@ -684,13 +739,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; @@ -699,6 +754,8 @@ public java.lang.String getProducer() { } } /** + * + * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -706,15 +763,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 { @@ -722,6 +778,8 @@ public java.lang.String getProducer() { } } /** + * + * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -729,18 +787,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`:
@@ -748,6 +810,7 @@ public Builder setProducer(
      * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearProducer() { @@ -757,6 +820,8 @@ public Builder clearProducer() { return this; } /** + * + * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -764,12 +829,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; @@ -777,13 +844,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 @@ -791,11 +861,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. */ @@ -807,11 +880,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() { @@ -821,13 +897,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 @@ -835,11 +914,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. */ @@ -851,11 +933,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() { @@ -864,9 +949,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); } @@ -876,12 +961,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(); } @@ -890,27 +975,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; @@ -925,6 +1010,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 a8e197b8f..bf1313c9b 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,35 +1,58 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/logging/v2/log_entry.proto 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`:
@@ -37,10 +60,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`:
@@ -48,27 +74,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 4943b3e53..1f357ae2e 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -35,10 +53,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:
    *
@@ -66,12 +87,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.
    *
@@ -80,11 +103,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.
    *
@@ -93,11 +120,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.
    *
@@ -106,11 +137,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.
@@ -123,10 +157,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.
@@ -139,10 +176,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.
@@ -159,55 +199,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.
@@ -218,6 +274,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
@@ -233,11 +291,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
@@ -253,11 +315,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
@@ -273,59 +339,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
@@ -341,10 +432,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
@@ -360,42 +454,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.
@@ -417,6 +527,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.
@@ -436,15 +548,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.
@@ -464,9 +574,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.
@@ -487,11 +598,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.
@@ -511,40 +624,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
@@ -558,10 +686,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
@@ -575,12 +706,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.
@@ -615,10 +748,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.
@@ -653,12 +789,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.
    *
@@ -670,61 +808,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..954cba468
--- /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
+
+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\"\221\010\n\010LogEntry\022\026\n\010log_name\030\014 \001(\tB\004\342A\001\002\0225"
+          + "\n\010resource\030\010 \001(\0132\035.google.api.MonitoredR"
+          + "esourceB\004\342A\001\002\022-\n\rproto_payload\030\002 \001(\0132\024.g"
+          + "oogle.protobuf.AnyH\000\022\026\n\014text_payload\030\003 \001"
+          + "(\tH\000\022/\n\014json_payload\030\006 \001(\0132\027.google.prot"
+          + "obuf.StructH\000\0223\n\ttimestamp\030\t \001(\0132\032.googl"
+          + "e.protobuf.TimestampB\004\342A\001\001\022;\n\021receive_ti"
+          + "mestamp\030\030 \001(\0132\032.google.protobuf.Timestam"
+          + "pB\004\342A\001\003\0228\n\010severity\030\n \001(\0162 .google.loggi"
+          + "ng.type.LogSeverityB\004\342A\001\001\022\027\n\tinsert_id\030\004"
+          + " \001(\tB\004\342A\001\001\022<\n\014http_request\030\007 \001(\0132 .googl"
+          + "e.logging.type.HttpRequestB\004\342A\001\001\022=\n\006labe"
+          + "ls\030\013 \003(\0132\'.google.logging.v2.LogEntry.La"
+          + "belsEntryB\004\342A\001\001\022=\n\toperation\030\017 \001(\0132$.goo"
+          + "gle.logging.v2.LogEntryOperationB\004\342A\001\001\022\023"
+          + "\n\005trace\030\026 \001(\tB\004\342A\001\001\022\025\n\007span_id\030\033 \001(\tB\004\342A"
+          + "\001\001\022\033\n\rtrace_sampled\030\036 \001(\010B\004\342A\001\001\022H\n\017sourc"
+          + "e_location\030\027 \001(\0132).google.logging.v2.Log"
+          + "EntrySourceLocationB\004\342A\001\001\0220\n\005split\030# \001(\013"
+          + "2\033.google.logging.v2.LogSplitB\004\342A\001\001\032-\n\013L"
+          + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002"
+          + "8\001:\275\001\352A\271\001\n\032logging.googleapis.com/Log\022\035p"
+          + "rojects/{project}/logs/{log}\022\'organizati"
+          + "ons/{organization}/logs/{log}\022\033folders/{"
+          + "folder}/logs/{log}\022,billingAccounts/{bil"
+          + "ling_account}/logs/{log}\032\010log_nameB\t\n\007pa"
+          + "yload\"f\n\021LogEntryOperation\022\020\n\002id\030\001 \001(\tB\004"
+          + "\342A\001\001\022\026\n\010producer\030\002 \001(\tB\004\342A\001\001\022\023\n\005first\030\003 "
+          + "\001(\010B\004\342A\001\001\022\022\n\004last\030\004 \001(\010B\004\342A\001\001\"X\n\026LogEntr"
+          + "ySourceLocation\022\022\n\004file\030\001 \001(\tB\004\342A\001\001\022\022\n\004l"
+          + "ine\030\002 \001(\003B\004\342A\001\001\022\026\n\010function\030\003 \001(\tB\004\342A\001\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(\005B\263\001\n\025com.google.log"
+          + "ging.v2B\rLogEntryProtoP\001Z5cloud.google.c"
+          + "om/go/logging/apiv2/loggingpb;loggingpb\370"
+          + "\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Cl"
+          + "oud\\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.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 d1fab9dbf..783e58d5e 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,9 +1,26 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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
 
 package com.google.logging.v2;
 
 /**
+ *
+ *
  * 
  * Additional information about the source code location that produced the log
  * entry.
@@ -11,15 +28,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_ = "";
@@ -27,34 +45,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 @@ -63,30 +86,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 { @@ -97,12 +120,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 @@ -111,9 +137,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
@@ -124,6 +153,7 @@ public long getLine() {
    * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The function. */ @java.lang.Override @@ -132,14 +162,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
@@ -150,16 +181,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 { @@ -168,6 +198,7 @@ public java.lang.String getFunction() { } 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(file_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, file_); } @@ -203,8 +233,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_); @@ -217,19 +246,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; } @@ -244,8 +271,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(); @@ -253,99 +279,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.
@@ -353,33 +384,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();
@@ -391,9 +421,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
@@ -412,8 +442,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;
     }
@@ -435,38 +468,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;
@@ -514,27 +548,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) {
@@ -544,23 +582,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; @@ -569,21 +610,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 { @@ -591,30 +633,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() { @@ -624,18 +673,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; @@ -643,14 +696,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 @@ -658,12 +714,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. */ @@ -675,12 +734,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() { @@ -692,6 +754,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
@@ -702,13 +766,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; @@ -717,6 +781,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
@@ -727,15 +793,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 { @@ -743,6 +808,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
@@ -753,18 +820,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
@@ -775,6 +846,7 @@ public Builder setFunction(
      * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFunction() { @@ -784,6 +856,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
@@ -794,21 +868,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); } @@ -818,12 +894,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(); } @@ -832,27 +908,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; @@ -867,6 +943,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 958d663a8..41f563d1a 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,46 +1,72 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -51,10 +77,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
@@ -65,8 +94,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 a45811355..30936d8c1 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,9 +1,26 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -14,15 +31,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_ = "";
@@ -31,28 +49,32 @@ 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);
   }
 
   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
@@ -61,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -69,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. A client-assigned identifier, such as
    * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -85,16 +109,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 { @@ -103,14 +126,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 @@ -119,29 +146,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 { @@ -150,9 +177,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
@@ -167,6 +197,7 @@ public java.lang.String getDescription() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -175,14 +206,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
@@ -197,16 +229,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 { @@ -217,6 +248,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
@@ -225,6 +258,7 @@ public java.lang.String getFilter() {
    * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disabled. */ @java.lang.Override @@ -235,13 +269,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 @@ -249,13 +287,17 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * 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 @@ -263,13 +305,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() { @@ -279,13 +324,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 @@ -293,13 +342,17 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * 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 @@ -307,13 +360,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() { @@ -321,6 +377,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,8 +389,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_); } @@ -371,16 +427,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 (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -390,30 +443,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; @@ -433,8 +480,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(); @@ -448,99 +494,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
@@ -551,33 +601,32 @@ 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()
-    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();
@@ -600,9 +649,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
@@ -622,7 +671,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;
     }
@@ -642,14 +693,10 @@ private void buildPartial0(com.google.logging.v2.LogExclusion result) {
         result.disabled_ = disabled_;
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
     }
 
@@ -657,38 +704,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;
@@ -747,46 +795,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) {
@@ -796,10 +847,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
@@ -808,13 +862,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; @@ -823,6 +877,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -831,15 +887,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 { @@ -847,6 +902,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -855,18 +912,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
@@ -875,6 +936,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -884,6 +946,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. A client-assigned identifier, such as
      * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
@@ -892,12 +956,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; @@ -907,18 +973,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; @@ -927,20 +995,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 { @@ -948,28 +1017,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() { @@ -979,17 +1055,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; @@ -999,6 +1079,8 @@ public Builder setDescriptionBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1013,13 +1095,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; @@ -1028,6 +1110,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1042,15 +1126,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 { @@ -1058,6 +1141,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1072,18 +1157,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
@@ -1098,6 +1187,7 @@ public Builder setFilter(
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1107,6 +1197,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1121,12 +1213,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; @@ -1134,8 +1228,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
@@ -1144,6 +1240,7 @@ public Builder setFilterBytes(
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disabled. */ @java.lang.Override @@ -1151,6 +1248,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
@@ -1159,6 +1258,7 @@ public boolean getDisabled() {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The disabled to set. * @return This builder for chaining. */ @@ -1170,6 +1270,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
@@ -1178,6 +1280,7 @@ public Builder setDisabled(boolean value) {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisabled() { @@ -1189,45 +1292,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) { @@ -1243,16 +1365,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 { @@ -1263,19 +1388,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; @@ -1288,13 +1417,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); @@ -1307,13 +1440,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; @@ -1321,40 +1458,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_; @@ -1362,45 +1511,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) { @@ -1416,16 +1584,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 { @@ -1436,19 +1607,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; @@ -1461,13 +1636,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); @@ -1480,13 +1659,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; @@ -1494,47 +1677,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); } @@ -1544,12 +1739,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(); } @@ -1558,27 +1753,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; @@ -1593,6 +1788,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 df1ff7140..30dced7f9 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -16,10 +34,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
@@ -28,32 +49,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
@@ -68,10 +96,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
@@ -86,12 +117,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
@@ -100,73 +133,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 8933fc818..0f8b39365 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,9 +1,26 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
@@ -16,15 +33,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_ = "";
@@ -36,46 +54,48 @@ 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"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       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.
      * 
@@ -84,6 +104,8 @@ public enum ApiVersion */ V2(0), /** + * + * *
      * Logging API v1.
      * 
@@ -95,6 +117,8 @@ public enum ApiVersion ; /** + * + * *
      * Logging API v2.
      * 
@@ -103,6 +127,8 @@ public enum ApiVersion */ public static final int V2_VALUE = 0; /** + * + * *
      * Logging API v1.
      * 
@@ -111,7 +137,6 @@ public enum ApiVersion */ public static final int V1_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,48 +161,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; @@ -195,9 +219,12 @@ private ApiVersion(int value) { } 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"`.
@@ -215,6 +242,7 @@ private ApiVersion(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -223,14 +251,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"`.
@@ -248,16 +277,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 { @@ -266,15 +294,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 @@ -283,30 +315,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 { @@ -315,9 +347,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
@@ -329,6 +364,7 @@ public java.lang.String getDescription() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -337,14 +373,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
@@ -356,16 +393,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 { @@ -374,9 +410,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
@@ -390,6 +429,7 @@ public java.lang.String getFilter() {
    * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bucketName. */ @java.lang.Override @@ -398,14 +438,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
@@ -419,16 +460,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 { @@ -439,12 +479,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 @@ -455,6 +498,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
@@ -479,7 +524,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 @@ -487,6 +535,8 @@ public boolean hasMetricDescriptor() { return metricDescriptor_ != null; } /** + * + * *
    * Optional. The metric descriptor associated with the logs-based metric.
    * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -511,14 +561,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
@@ -543,17 +600,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.
@@ -578,6 +642,7 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() {
    * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The valueExtractor. */ @java.lang.Override @@ -586,14 +651,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.
@@ -618,16 +684,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 { @@ -636,32 +701,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.
@@ -679,23 +748,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.
@@ -713,13 +784,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.
@@ -737,20 +811,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.
@@ -768,14 +845,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(); } @@ -785,13 +863,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 @@ -799,43 +882,60 @@ public boolean hasBucketOptions() { return bucketOptions_ != null; } /** + * + * *
    * 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 @@ -843,13 +943,17 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * 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 @@ -857,13 +961,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() { @@ -873,13 +980,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 @@ -887,13 +998,17 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * 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 @@ -901,13 +1016,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() { @@ -917,36 +1035,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; @@ -958,8 +1088,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_); } @@ -978,12 +1107,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 (bucketOptions_ != null) { output.writeMessage(8, getBucketOptions()); } @@ -1018,41 +1143,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 (metricDescriptor_ != null) { - 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 (bucketOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getBucketOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getBucketOptions()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } if (updateTime_ != null) { - 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_); @@ -1065,46 +1184,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; @@ -1127,8 +1235,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(); @@ -1158,99 +1265,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.
@@ -1263,55 +1374,51 @@ 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"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         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.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         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);
     }
 
     // Construct using com.google.logging.v2.LogMetric.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();
@@ -1348,9 +1455,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
@@ -1370,7 +1477,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;
     }
@@ -1393,9 +1502,8 @@ private void buildPartial0(com.google.logging.v2.LogMetric result) {
         result.disabled_ = disabled_;
       }
       if (((from_bitField0_ & 0x00000020) != 0)) {
-        result.metricDescriptor_ = metricDescriptorBuilder_ == null
-            ? metricDescriptor_
-            : metricDescriptorBuilder_.build();
+        result.metricDescriptor_ =
+            metricDescriptorBuilder_ == null ? metricDescriptor_ : metricDescriptorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
         result.valueExtractor_ = valueExtractor_;
@@ -1405,19 +1513,14 @@ 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();
       }
       if (((from_bitField0_ & 0x00000200) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
         result.version_ = version_;
@@ -1428,38 +1531,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;
@@ -1499,8 +1603,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());
@@ -1540,84 +1643,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) {
@@ -1627,10 +1738,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"`.
@@ -1648,13 +1762,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; @@ -1663,6 +1777,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1680,15 +1796,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 { @@ -1696,6 +1811,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1713,18 +1830,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"`.
@@ -1742,6 +1863,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1751,6 +1873,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1768,12 +1892,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; @@ -1783,19 +1909,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; @@ -1804,21 +1932,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 { @@ -1826,30 +1955,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() { @@ -1859,18 +1995,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; @@ -1880,6 +2020,8 @@ public Builder setDescriptionBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1891,13 +2033,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; @@ -1906,6 +2048,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1917,15 +2061,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 { @@ -1933,6 +2076,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1944,18 +2089,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
@@ -1967,6 +2116,7 @@ public Builder setFilter(
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1976,6 +2126,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1987,12 +2139,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; @@ -2002,6 +2156,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
@@ -2015,13 +2171,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; @@ -2030,6 +2186,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
@@ -2043,15 +2201,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 { @@ -2059,6 +2216,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
@@ -2072,18 +2231,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
@@ -2097,6 +2260,7 @@ public Builder setBucketName(
      * 
* * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearBucketName() { @@ -2106,6 +2270,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
@@ -2119,12 +2285,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; @@ -2132,14 +2300,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 @@ -2147,12 +2318,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. */ @@ -2164,12 +2338,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() { @@ -2181,8 +2358,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
@@ -2207,13 +2389,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
@@ -2238,17 +2425,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
@@ -2273,7 +2467,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) { @@ -2289,6 +2485,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
@@ -2313,10 +2511,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 { @@ -2327,6 +2526,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
@@ -2351,13 +2552,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; @@ -2370,6 +2573,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
@@ -2394,7 +2599,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); @@ -2407,6 +2614,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
@@ -2431,7 +2640,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; @@ -2439,6 +2650,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
@@ -2463,17 +2676,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
@@ -2498,17 +2716,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_; @@ -2516,6 +2739,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.
@@ -2540,13 +2765,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; @@ -2555,6 +2780,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.
@@ -2579,15 +2806,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 { @@ -2595,6 +2821,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.
@@ -2619,18 +2847,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.
@@ -2655,6 +2887,7 @@ public Builder setValueExtractor(
      * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValueExtractor() { @@ -2664,6 +2897,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.
@@ -2688,12 +2923,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; @@ -2701,8 +2938,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) { @@ -2711,11 +2948,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(); @@ -2724,10 +2963,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.
@@ -2745,23 +2987,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.
@@ -2779,13 +3024,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.
@@ -2803,20 +3052,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.
@@ -2834,26 +3087,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.
@@ -2871,25 +3128,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.
@@ -2907,19 +3165,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.
@@ -2937,57 +3200,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) { @@ -3003,13 +3285,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) { @@ -3023,19 +3309,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; @@ -3048,13 +3338,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); @@ -3067,13 +3361,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; @@ -3081,40 +3379,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_; @@ -3122,45 +3432,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) { @@ -3176,16 +3505,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 { @@ -3196,19 +3528,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; @@ -3221,13 +3557,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); @@ -3240,13 +3580,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; @@ -3254,40 +3598,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_; @@ -3295,45 +3651,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) { @@ -3349,16 +3724,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 { @@ -3369,19 +3747,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; @@ -3394,13 +3776,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); @@ -3413,13 +3799,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; @@ -3427,40 +3817,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_; @@ -3468,66 +3870,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(); } @@ -3537,25 +3957,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); } @@ -3565,12 +3989,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(); } @@ -3579,27 +4003,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; @@ -3614,6 +4038,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 730fc3fce..c7e7ae9a2 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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"`.
@@ -25,10 +43,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"`.
@@ -46,34 +67,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
@@ -85,10 +113,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
@@ -100,12 +131,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
@@ -119,10 +152,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
@@ -136,23 +172,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
@@ -177,11 +218,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
@@ -206,11 +252,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
@@ -235,11 +286,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.
@@ -264,10 +319,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.
@@ -292,12 +350,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.
@@ -315,10 +375,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.
@@ -336,17 +399,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.
@@ -364,11 +426,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.
@@ -386,14 +450,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.
@@ -411,132 +478,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 655052da2..bd6ad718d 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,9 +1,26 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -14,15 +31,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_ = "";
@@ -35,34 +53,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.
      * 
@@ -71,6 +92,8 @@ public enum VersionFormat */ VERSION_FORMAT_UNSPECIFIED(0), /** + * + * *
      * `LogEntry` version 2 format.
      * 
@@ -79,6 +102,8 @@ public enum VersionFormat */ V2(1), /** + * + * *
      * `LogEntry` version 1 format.
      * 
@@ -90,6 +115,8 @@ public enum VersionFormat ; /** + * + * *
      * An unspecified format version that will default to V2.
      * 
@@ -98,6 +125,8 @@ public enum VersionFormat */ public static final int VERSION_FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * `LogEntry` version 2 format.
      * 
@@ -106,6 +135,8 @@ public enum VersionFormat */ public static final int V2_VALUE = 1; /** + * + * *
      * `LogEntry` version 1 format.
      * 
@@ -114,7 +145,6 @@ public enum VersionFormat */ public static final int V1_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -139,49 +169,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; @@ -199,14 +229,18 @@ private VersionFormat(int value) { } 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; } @@ -222,26 +256,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.
    *
@@ -252,6 +291,7 @@ public int getNumber() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -260,14 +300,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.
    *
@@ -278,16 +319,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 { @@ -296,9 +336,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:
    *
@@ -313,7 +356,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 @@ -322,14 +368,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:
    *
@@ -344,17 +391,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 { @@ -363,9 +411,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
@@ -378,6 +429,7 @@ public java.lang.String getDestination() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -386,14 +438,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
@@ -406,16 +459,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 { @@ -424,9 +476,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.
    *
@@ -434,6 +489,7 @@ public java.lang.String getFilter() {
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -442,14 +498,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.
    *
@@ -457,16 +514,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 { @@ -477,12 +533,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 @@ -491,9 +550,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.
@@ -502,13 +564,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.
@@ -517,14 +583,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.
@@ -533,13 +603,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.
@@ -548,13 +622,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.
@@ -563,48 +641,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
@@ -627,6 +722,7 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The writerIdentity. */ @java.lang.Override @@ -635,14 +731,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
@@ -665,16 +762,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 { @@ -685,6 +781,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
@@ -706,6 +804,7 @@ public java.lang.String getWriterIdentity() {
    * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The includeChildren. */ @java.lang.Override @@ -715,11 +814,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 @@ -727,31 +831,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(); } @@ -759,13 +872,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 @@ -773,13 +890,17 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * 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 @@ -787,13 +908,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() { @@ -803,13 +927,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 @@ -817,13 +945,17 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * 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 @@ -831,13 +963,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() { @@ -845,6 +980,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -856,8 +992,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_); } @@ -867,7 +1002,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_)) { @@ -912,39 +1048,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 (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCreateTime()); } if (updateTime_ != null) { - 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; @@ -954,45 +1086,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: @@ -1017,8 +1138,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(); @@ -1028,8 +1148,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(); @@ -1051,99 +1170,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
@@ -1154,33 +1277,31 @@ 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);
     }
 
     // Construct using com.google.logging.v2.LogSink.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();
@@ -1219,9 +1340,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
@@ -1242,7 +1363,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;
@@ -1287,22 +1410,17 @@ private void buildPartial0(com.google.logging.v2.LogSink result) {
         result.includeChildren_ = includeChildren_;
       }
       if (((from_bitField0_ & 0x00000400) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000800) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
     }
 
     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();
       }
     }
@@ -1311,38 +1429,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;
@@ -1392,9 +1511,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_);
           }
@@ -1418,13 +1538,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();
@@ -1452,86 +1574,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) {
@@ -1541,12 +1669,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() {
@@ -1560,6 +1688,8 @@ public Builder clearOptions() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1570,13 +1700,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; @@ -1585,6 +1715,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1595,15 +1727,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 { @@ -1611,6 +1742,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1621,18 +1754,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.
      *
@@ -1643,6 +1780,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1652,6 +1790,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The client-assigned sink identifier, unique within the project.
      *
@@ -1662,12 +1802,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; @@ -1677,6 +1819,8 @@ public Builder setNameBytes( private java.lang.Object destination_ = ""; /** + * + * *
      * Required. The export destination:
      *
@@ -1691,14 +1835,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; @@ -1707,6 +1853,8 @@ public java.lang.String getDestination() { } } /** + * + * *
      * Required. The export destination:
      *
@@ -1721,16 +1869,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 { @@ -1738,6 +1887,8 @@ public java.lang.String getDestination() { } } /** + * + * *
      * Required. The export destination:
      *
@@ -1752,19 +1903,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:
      *
@@ -1779,7 +1936,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() { @@ -1789,6 +1949,8 @@ public Builder clearDestination() { return this; } /** + * + * *
      * Required. The export destination:
      *
@@ -1803,13 +1965,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; @@ -1819,6 +1985,8 @@ public Builder setDestinationBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1831,13 +1999,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; @@ -1846,6 +2014,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1858,15 +2028,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 { @@ -1874,6 +2043,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1886,18 +2057,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
@@ -1910,6 +2085,7 @@ public Builder setFilter(
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1919,6 +2095,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1931,12 +2109,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; @@ -1946,6 +2126,8 @@ public Builder setFilterBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. A description of this sink.
      *
@@ -1953,13 +2135,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; @@ -1968,6 +2150,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A description of this sink.
      *
@@ -1975,15 +2159,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 { @@ -1991,6 +2174,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A description of this sink.
      *
@@ -1998,18 +2183,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.
      *
@@ -2017,6 +2206,7 @@ public Builder setDescription(
      * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2026,6 +2216,8 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Optional. A description of this sink.
      *
@@ -2033,12 +2225,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; @@ -2046,14 +2240,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 @@ -2061,12 +2258,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. */ @@ -2078,12 +2278,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() { @@ -2094,18 +2297,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.
@@ -2114,7 +2323,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) { @@ -2124,6 +2335,8 @@ public java.util.List getExclusionsList() { } } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2132,7 +2345,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) { @@ -2142,6 +2357,8 @@ public int getExclusionsCount() { } } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2150,7 +2367,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) { @@ -2160,6 +2379,8 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { } } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2168,10 +2389,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(); @@ -2185,6 +2407,8 @@ public Builder setExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2193,7 +2417,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) { @@ -2207,6 +2433,8 @@ public Builder setExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2215,7 +2443,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) { @@ -2231,6 +2461,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.
@@ -2239,10 +2471,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(); @@ -2256,6 +2489,8 @@ public Builder addExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2264,10 +2499,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()); @@ -2278,6 +2514,8 @@ public Builder addExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2286,7 +2524,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) { @@ -2300,6 +2540,8 @@ public Builder addExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2308,14 +2550,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); @@ -2323,6 +2566,8 @@ public Builder addAllExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2331,7 +2576,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) { @@ -2344,6 +2591,8 @@ public Builder clearExclusions() { return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2352,7 +2601,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) { @@ -2365,6 +2616,8 @@ public Builder removeExclusions(int index) { return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2373,13 +2626,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.
@@ -2388,16 +2644,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.
@@ -2406,10 +2666,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 { @@ -2417,6 +2679,8 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( } } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be
      * exported.
@@ -2425,13 +2689,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.
@@ -2440,14 +2708,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.
@@ -2456,22 +2727,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_; @@ -2479,62 +2754,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(); } @@ -2544,16 +2841,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(); @@ -2562,6 +2864,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
@@ -2584,13 +2888,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; @@ -2599,6 +2903,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
@@ -2621,15 +2927,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 { @@ -2637,6 +2942,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
@@ -2659,18 +2966,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
@@ -2693,6 +3004,7 @@ public Builder setWriterIdentity(
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearWriterIdentity() { @@ -2702,6 +3014,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
@@ -2724,12 +3038,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; @@ -2737,8 +3053,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
@@ -2760,6 +3078,7 @@ public Builder setWriterIdentityBytes(
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The includeChildren. */ @java.lang.Override @@ -2767,6 +3086,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
@@ -2788,6 +3109,7 @@ public boolean getIncludeChildren() {
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The includeChildren to set. * @return This builder for chaining. */ @@ -2799,6 +3121,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
@@ -2820,6 +3144,7 @@ public Builder setIncludeChildren(boolean value) {
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIncludeChildren() { @@ -2830,13 +3155,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 @@ -2844,11 +3177,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 @@ -2866,11 +3204,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) { @@ -2886,11 +3228,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) { @@ -2904,18 +3250,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; } @@ -2931,11 +3284,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) { @@ -2954,21 +3311,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() { @@ -2982,21 +3347,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()); @@ -3009,45 +3383,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) { @@ -3063,16 +3456,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 { @@ -3083,19 +3479,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; @@ -3108,13 +3508,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); @@ -3127,13 +3531,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; @@ -3141,40 +3549,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_; @@ -3182,45 +3602,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) { @@ -3236,16 +3675,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 { @@ -3256,19 +3698,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; @@ -3281,13 +3727,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); @@ -3300,13 +3750,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; @@ -3314,47 +3768,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); } @@ -3364,12 +3830,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(); } @@ -3378,27 +3844,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; @@ -3413,6 +3879,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 4e02be0ea..8f6c64366 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -18,10 +36,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.
    *
@@ -32,12 +53,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:
    *
@@ -52,11 +75,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:
    *
@@ -71,13 +99,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
@@ -90,10 +122,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
@@ -106,12 +141,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.
    *
@@ -119,10 +156,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.
    *
@@ -130,23 +170,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.
@@ -155,11 +200,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.
@@ -168,10 +216,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.
@@ -180,10 +232,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.
@@ -192,11 +248,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.
@@ -205,35 +265,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
@@ -256,10 +329,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
@@ -282,12 +358,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
@@ -309,100 +387,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 be143abba..271ad4236 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,9 +1,26 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -12,43 +29,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
@@ -56,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * string uid = 1; + * * @return The uid. */ @java.lang.Override @@ -64,14 +86,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
@@ -79,16 +102,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 { @@ -99,6 +121,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
@@ -106,6 +130,7 @@ public java.lang.String getUid() {
    * 
* * int32 index = 2; + * * @return The index. */ @java.lang.Override @@ -116,11 +141,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 @@ -129,6 +157,7 @@ public int getTotalSplits() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -140,8 +169,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_); } @@ -164,12 +192,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; @@ -179,19 +205,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; } @@ -214,99 +237,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
@@ -315,33 +342,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();
@@ -353,9 +378,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
@@ -375,7 +400,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;
     }
@@ -397,38 +424,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;
@@ -474,27 +502,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) {
@@ -504,10 +536,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
@@ -515,13 +550,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; @@ -530,6 +565,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
@@ -537,15 +574,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 { @@ -553,6 +589,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
@@ -560,18 +598,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
@@ -579,6 +621,7 @@ public Builder setUid(
      * 
* * string uid = 1; + * * @return This builder for chaining. */ public Builder clearUid() { @@ -588,6 +631,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
@@ -595,12 +640,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; @@ -608,8 +655,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
@@ -617,6 +666,7 @@ public Builder setUidBytes(
      * 
* * int32 index = 2; + * * @return The index. */ @java.lang.Override @@ -624,6 +674,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
@@ -631,6 +683,7 @@ public int getIndex() {
      * 
* * int32 index = 2; + * * @param value The index to set. * @return This builder for chaining. */ @@ -642,6 +695,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
@@ -649,6 +704,7 @@ public Builder setIndex(int value) {
      * 
* * int32 index = 2; + * * @return This builder for chaining. */ public Builder clearIndex() { @@ -658,13 +714,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 @@ -672,11 +731,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. */ @@ -688,11 +750,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() { @@ -701,9 +766,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); } @@ -713,12 +778,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(); } @@ -727,27 +792,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; @@ -762,6 +827,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 3c9f21a23..57a586b8c 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -15,10 +33,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
@@ -26,12 +47,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
@@ -39,16 +62,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 68% 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 05a68ec0f..838851cad 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,24 +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 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_ = ""; @@ -27,28 +45,31 @@ 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); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * The resource name of the view.
    *
@@ -58,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -66,14 +88,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the view.
    *
@@ -83,16 +106,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 { @@ -101,14 +123,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 @@ -117,29 +143,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 { @@ -150,11 +176,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 @@ -162,11 +192,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * 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 @@ -174,11 +208,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() { @@ -188,11 +225,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 @@ -200,11 +241,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * 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 @@ -212,11 +257,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() { @@ -224,9 +272,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.
@@ -245,6 +296,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string filter = 7; + * * @return The filter. */ @java.lang.Override @@ -253,14 +305,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.
@@ -279,16 +332,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 { @@ -297,6 +349,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,8 +361,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_); } @@ -341,12 +393,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (updateTime_ != null) { - 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_); @@ -359,29 +409,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; } @@ -412,132 +457,134 @@ 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); } // Construct using com.google.logging.v2.LogView.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -559,9 +606,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 @@ -581,7 +628,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; } @@ -595,14 +644,10 @@ private void buildPartial0(com.google.logging.v2.LogView result) { result.description_ = description_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.filter_ = filter_; @@ -613,38 +658,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; @@ -700,41 +746,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) { @@ -744,10 +792,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the view.
      *
@@ -757,13 +808,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; @@ -772,6 +823,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the view.
      *
@@ -781,15 +834,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 { @@ -797,6 +849,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the view.
      *
@@ -806,18 +860,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.
      *
@@ -827,6 +885,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -836,6 +895,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the view.
      *
@@ -845,12 +906,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; @@ -860,18 +923,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; @@ -880,20 +945,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 { @@ -901,28 +967,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() { @@ -932,17 +1005,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; @@ -952,39 +1029,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) { @@ -1000,14 +1096,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 { @@ -1018,17 +1117,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; @@ -1041,11 +1144,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); @@ -1058,11 +1165,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; @@ -1070,36 +1181,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_; @@ -1107,39 +1230,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) { @@ -1155,14 +1297,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 { @@ -1173,17 +1318,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; @@ -1196,11 +1345,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); @@ -1213,11 +1366,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; @@ -1225,36 +1382,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_; @@ -1262,6 +1431,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.
@@ -1280,13 +1451,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; @@ -1295,6 +1466,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1313,15 +1486,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 { @@ -1329,6 +1501,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1347,18 +1521,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.
@@ -1377,6 +1555,7 @@ public Builder setFilter(
      * 
* * string filter = 7; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1386,6 +1565,8 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1404,21 +1585,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); } @@ -1428,12 +1611,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(); } @@ -1442,27 +1625,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; @@ -1477,6 +1660,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 f0e96444e..9a1e11e76 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -17,10 +35,13 @@ public interface LogViewOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the view.
    *
@@ -30,86 +51,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.
@@ -128,10 +178,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.
@@ -150,8 +203,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..d1694a9e3 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java @@ -0,0 +1,1251 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 + +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\"\220\001\n\013IndexCon" + + "fig\022\030\n\nfield_path\030\001 \001(\tB\004\342A\001\002\0220\n\004type\030\002 " + + "\001(\0162\034.google.logging.v2.IndexTypeB\004\342A\001\002\022" + + "5\n\013create_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestampB\004\342A\001\003\"\331\005\n\tLogBucket\022\022\n\004name\030\001 \001" + + "(\tB\004\342A\001\003\022\023\n\013description\030\003 \001(\t\0225\n\013create_" + + "time\030\004 \001(\0132\032.google.protobuf.TimestampB\004" + + "\342A\001\003\0225\n\013update_time\030\005 \001(\0132\032.google.proto" + + "buf.TimestampB\004\342A\001\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" + + "\004\342A\001\003\022\031\n\021analytics_enabled\030\016 \001(\010\022\031\n\021rest" + + "ricted_fields\030\017 \003(\t\0225\n\rindex_configs\030\021 \003" + + "(\0132\036.google.logging.v2.IndexConfig\0226\n\rcm" + + "ek_settings\030\023 \001(\0132\037.google.logging.v2.Cm" + + "ekSettings:\245\002\352A\241\002\n logging.googleapis.co" + + "m/LogBucket\0228projects/{project}/location" + + "s/{location}/buckets/{bucket}\022Borganizat" + + "ions/{organization}/locations/{location}" + + "/buckets/{bucket}\0226folders/{folder}/loca" + + "tions/{location}/buckets/{bucket}\022Gbilli" + + "ngAccounts/{billing_account}/locations/{" + + "location}/buckets/{bucket}\"\204\004\n\007LogView\022\014" + + "\n\004name\030\001 \001(\t\022\023\n\013description\030\003 \001(\t\0225\n\013cre" + + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mpB\004\342A\001\003\0225\n\013update_time\030\005 \001(\0132\032.google.p" + + "rotobuf.TimestampB\004\342A\001\003\022\016\n\006filter\030\007 \001(\t:" + + "\327\002\352A\323\002\n\036logging.googleapis.com/LogView\022E" + + "projects/{project}/locations/{location}/" + + "buckets/{bucket}/views/{view}\022Oorganizat" + + "ions/{organization}/locations/{location}" + + "/buckets/{bucket}/views/{view}\022Cfolders/" + + "{folder}/locations/{location}/buckets/{b" + + "ucket}/views/{view}\022TbillingAccounts/{bi" + + "lling_account}/locations/{location}/buck" + + "ets/{bucket}/views/{view}\"\220\006\n\007LogSink\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\002\022\037\n\013destination\030\003 \001(\tB\n" + + "\342A\001\002\372A\003\n\001*\022\024\n\006filter\030\005 \001(\tB\004\342A\001\001\022\031\n\013desc" + + "ription\030\022 \001(\tB\004\342A\001\001\022\026\n\010disabled\030\023 \001(\010B\004\342" + + "A\001\001\0229\n\nexclusions\030\020 \003(\0132\037.google.logging" + + ".v2.LogExclusionB\004\342A\001\001\022K\n\025output_version" + + "_format\030\006 \001(\0162(.google.logging.v2.LogSin" + + "k.VersionFormatB\002\030\001\022\035\n\017writer_identity\030\010" + + " \001(\tB\004\342A\001\003\022\036\n\020include_children\030\t \001(\010B\004\342A" + + "\001\001\022D\n\020bigquery_options\030\014 \001(\0132\".google.lo" + + "gging.v2.BigQueryOptionsB\004\342A\001\001H\000\0225\n\013crea" + + "te_time\030\r \001(\0132\032.google.protobuf.Timestam" + + "pB\004\342A\001\003\0225\n\013update_time\030\016 \001(\0132\032.google.pr" + + "otobuf.TimestampB\004\342A\001\003\"?\n\rVersionFormat\022" + + "\036\n\032VERSION_FORMAT_UNSPECIFIED\020\000\022\006\n\002V2\020\001\022" + + "\006\n\002V1\020\002:\277\001\352A\273\001\n\036logging.googleapis.com/L" + + "ogSink\022\037projects/{project}/sinks/{sink}\022" + + ")organizations/{organization}/sinks/{sin" + + "k}\022\035folders/{folder}/sinks/{sink}\022.billi" + + "ngAccounts/{billing_account}/sinks/{sink" + + "}B\t\n\007options\"+\n\017BigQueryDataset\022\030\n\ndatas" + + "et_id\030\001 \001(\tB\004\342A\001\003\"\267\004\n\004Link\022\014\n\004name\030\001 \001(\t" + + "\022\023\n\013description\030\002 \001(\t\0225\n\013create_time\030\003 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022@\n\017" + + "lifecycle_state\030\004 \001(\0162!.google.logging.v" + + "2.LifecycleStateB\004\342A\001\003\022<\n\020bigquery_datas" + + "et\030\005 \001(\0132\".google.logging.v2.BigQueryDat" + + "aset:\324\002\352A\320\002\n\033logging.googleapis.com/Link" + + "\022Eprojects/{project}/locations/{location" + + "}/buckets/{bucket}/links/{link}\022Oorganiz" + + "ations/{organization}/locations/{locatio" + + "n}/buckets/{bucket}/links/{link}\022Cfolder" + + "s/{folder}/locations/{location}/buckets/" + + "{bucket}/links/{link}\022TbillingAccounts/{" + + "billing_account}/locations/{location}/bu" + + "ckets/{bucket}/links/{link}\"i\n\017BigQueryO" + + "ptions\022$\n\026use_partitioned_tables\030\001 \001(\010B\004" + + "\342A\001\001\0220\n\"uses_timestamp_column_partitioni" + + "ng\030\003 \001(\010B\004\342A\001\003\"\202\001\n\022ListBucketsRequest\0229\n" + + "\006parent\030\001 \001(\tB)\342A\001\002\372A\"\022 logging.googleap" + + "is.com/LogBucket\022\030\n\npage_token\030\002 \001(\tB\004\342A" + + "\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"]\n\023ListBucke" + + "tsResponse\022-\n\007buckets\030\001 \003(\0132\034.google.log" + + "ging.v2.LogBucket\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\235\001\n\023CreateBucketRequest\0229\n\006parent\030\001 \001" + + "(\tB)\342A\001\002\372A\"\022 logging.googleapis.com/LogB" + + "ucket\022\027\n\tbucket_id\030\002 \001(\tB\004\342A\001\002\0222\n\006bucket" + + "\030\003 \001(\0132\034.google.logging.v2.LogBucketB\004\342A" + + "\001\002\"\271\001\n\023UpdateBucketRequest\0227\n\004name\030\001 \001(\t" + + "B)\342A\001\002\372A\"\n logging.googleapis.com/LogBuc" + + "ket\0222\n\006bucket\030\002 \001(\0132\034.google.logging.v2." + + "LogBucketB\004\342A\001\002\0225\n\013update_mask\030\004 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\004\342A\001\002\"K\n\020GetBuc" + + "ketRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n loggi" + + "ng.googleapis.com/LogBucket\"N\n\023DeleteBuc" + + "ketRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n loggi" + + "ng.googleapis.com/LogBucket\"P\n\025UndeleteB" + + "ucketRequest\0227\n\004name\030\001 \001(\tB)\342A\001\002\372A\"\n log" + + "ging.googleapis.com/LogBucket\"[\n\020ListVie" + + "wsRequest\022\024\n\006parent\030\001 \001(\tB\004\342A\001\002\022\030\n\npage_" + + "token\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A" + + "\001\001\"W\n\021ListViewsResponse\022)\n\005views\030\001 \003(\0132\032" + + ".google.logging.v2.LogView\022\027\n\017next_page_" + + "token\030\002 \001(\t\"p\n\021CreateViewRequest\022\024\n\006pare" + + "nt\030\001 \001(\tB\004\342A\001\002\022\025\n\007view_id\030\002 \001(\tB\004\342A\001\002\022.\n" + + "\004view\030\003 \001(\0132\032.google.logging.v2.LogViewB" + + "\004\342A\001\002\"\216\001\n\021UpdateViewRequest\022\022\n\004name\030\001 \001(" + + "\tB\004\342A\001\002\022.\n\004view\030\002 \001(\0132\032.google.logging.v" + + "2.LogViewB\004\342A\001\002\0225\n\013update_mask\030\004 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\004\342A\001\001\"G\n\016GetVie" + + "wRequest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036logging" + + ".googleapis.com/LogView\"J\n\021DeleteViewReq" + + "uest\0225\n\004name\030\001 \001(\tB\'\342A\001\002\372A \n\036logging.goo" + + "gleapis.com/LogView\"~\n\020ListSinksRequest\022" + + "7\n\006parent\030\001 \001(\tB\'\342A\001\002\372A \022\036logging.google" + + "apis.com/LogSink\022\030\n\npage_token\030\002 \001(\tB\004\342A" + + "\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"W\n\021ListSinks" + + "Response\022)\n\005sinks\030\001 \003(\0132\032.google.logging" + + ".v2.LogSink\022\027\n\017next_page_token\030\002 \001(\t\"L\n\016" + + "GetSinkRequest\022:\n\tsink_name\030\001 \001(\tB\'\342A\001\002\372" + + "A \n\036logging.googleapis.com/LogSink\"\242\001\n\021C" + + "reateSinkRequest\0227\n\006parent\030\001 \001(\tB\'\342A\001\002\372A" + + " \022\036logging.googleapis.com/LogSink\022.\n\004sin" + + "k\030\002 \001(\0132\032.google.logging.v2.LogSinkB\004\342A\001" + + "\002\022$\n\026unique_writer_identity\030\003 \001(\010B\004\342A\001\001\"" + + "\334\001\n\021UpdateSinkRequest\022:\n\tsink_name\030\001 \001(\t" + + "B\'\342A\001\002\372A \n\036logging.googleapis.com/LogSin" + + "k\022.\n\004sink\030\002 \001(\0132\032.google.logging.v2.LogS" + + "inkB\004\342A\001\002\022$\n\026unique_writer_identity\030\003 \001(" + + "\010B\004\342A\001\001\0225\n\013update_mask\030\004 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\004\342A\001\001\"O\n\021DeleteSinkRequ" + + "est\022:\n\tsink_name\030\001 \001(\tB\'\342A\001\002\372A \n\036logging" + + ".googleapis.com/LogSink\"\215\001\n\021CreateLinkRe" + + "quest\0224\n\006parent\030\001 \001(\tB$\342A\001\002\372A\035\022\033logging." + + "googleapis.com/Link\022+\n\004link\030\002 \001(\0132\027.goog" + + "le.logging.v2.LinkB\004\342A\001\002\022\025\n\007link_id\030\003 \001(" + + "\tB\004\342A\001\002\"G\n\021DeleteLinkRequest\0222\n\004name\030\001 \001" + + "(\tB$\342A\001\002\372A\035\n\033logging.googleapis.com/Link" + + "\"{\n\020ListLinksRequest\0224\n\006parent\030\001 \001(\tB$\342A" + + "\001\002\372A\035\022\033logging.googleapis.com/Link\022\030\n\npa" + + "ge_token\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B" + + "\004\342A\001\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\"D\n\016GetLinkRequest\0222\n\004name\030\001 " + + "\001(\tB$\342A\001\002\372A\035\n\033logging.googleapis.com/Lin" + + "k\"\310\003\n\014LogExclusion\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022\031" + + "\n\013description\030\002 \001(\tB\004\342A\001\001\022\024\n\006filter\030\003 \001(" + + "\tB\004\342A\001\002\022\026\n\010disabled\030\004 \001(\010B\004\342A\001\001\0225\n\013creat" + + "e_time\030\005 \001(\0132\032.google.protobuf.Timestamp" + + "B\004\342A\001\003\0225\n\013update_time\030\006 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003:\354\001\352A\350\001\n#logging.go" + + "ogleapis.com/LogExclusion\022)projects/{pro" + + "ject}/exclusions/{exclusion}\0223organizati" + + "ons/{organization}/exclusions/{exclusion" + + "}\022\'folders/{folder}/exclusions/{exclusio" + + "n}\0228billingAccounts/{billing_account}/ex" + + "clusions/{exclusion}\"\210\001\n\025ListExclusionsR" + + "equest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\022#logging" + + ".googleapis.com/LogExclusion\022\030\n\npage_tok" + + "en\030\002 \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"" + + "f\n\026ListExclusionsResponse\0223\n\nexclusions\030" + + "\001 \003(\0132\037.google.logging.v2.LogExclusion\022\027" + + "\n\017next_page_token\030\002 \001(\t\"Q\n\023GetExclusionR" + + "equest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.g" + + "oogleapis.com/LogExclusion\"\220\001\n\026CreateExc" + + "lusionRequest\022<\n\006parent\030\001 \001(\tB,\342A\001\002\372A%\022#" + + "logging.googleapis.com/LogExclusion\0228\n\te" + + "xclusion\030\002 \001(\0132\037.google.logging.v2.LogEx" + + "clusionB\004\342A\001\002\"\305\001\n\026UpdateExclusionRequest" + + "\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.googlea" + + "pis.com/LogExclusion\0228\n\texclusion\030\002 \001(\0132" + + "\037.google.logging.v2.LogExclusionB\004\342A\001\002\0225" + + "\n\013update_mask\030\003 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\004\342A\001\002\"T\n\026DeleteExclusionRequest\022" + + ":\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.googleap" + + "is.com/LogExclusion\"T\n\026GetCmekSettingsRe" + + "quest\022:\n\004name\030\001 \001(\tB,\342A\001\002\372A%\n#logging.go" + + "ogleapis.com/CmekSettings\"\244\001\n\031UpdateCmek" + + "SettingsRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\022<\n\rc" + + "mek_settings\030\002 \001(\0132\037.google.logging.v2.C" + + "mekSettingsB\004\342A\001\002\0225\n\013update_mask\030\003 \001(\0132\032" + + ".google.protobuf.FieldMaskB\004\342A\001\001\"\277\002\n\014Cme" + + "kSettings\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\024\n\014kms_key" + + "_name\030\002 \001(\t\022\034\n\024kms_key_version_name\030\004 \001(" + + "\t\022 \n\022service_account_id\030\003 \001(\tB\004\342A\001\003:\304\001\352A" + + "\300\001\n#logging.googleapis.com/CmekSettings\022" + + "\037projects/{project}/cmekSettings\022)organi" + + "zations/{organization}/cmekSettings\022\035fol" + + "ders/{folder}/cmekSettings\022.billingAccou" + + "nts/{billing_account}/cmekSettings\"L\n\022Ge" + + "tSettingsRequest\0226\n\004name\030\001 \001(\tB(\342A\001\002\372A!\n" + + "\037logging.googleapis.com/Settings\"\227\001\n\025Upd" + + "ateSettingsRequest\022\022\n\004name\030\001 \001(\tB\004\342A\001\002\0223" + + "\n\010settings\030\002 \001(\0132\033.google.logging.v2.Set" + + "tingsB\004\342A\001\002\0225\n\013update_mask\030\003 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\004\342A\001\001\"\327\002\n\010Settings\022" + + "\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\032\n\014kms_key_name\030\002 \001(" + + "\tB\004\342A\001\001\022$\n\026kms_service_account_id\030\003 \001(\tB" + + "\004\342A\001\003\022\036\n\020storage_location\030\004 \001(\tB\004\342A\001\001\022\"\n" + + "\024disable_default_sink\030\005 \001(\010B\004\342A\001\001:\260\001\352A\254\001" + + "\n\037logging.googleapis.com/Settings\022\033proje" + + "cts/{project}/settings\022%organizations/{o" + + "rganization}/settings\022\031folders/{folder}/" + + "settings\022*billingAccounts/{billing_accou" + + "nt}/settings\"\\\n\025CopyLogEntriesRequest\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\002\022\024\n\006filter\030\003 \001(\tB\004\342A\001\001\022" + + "\031\n\013destination\030\004 \001(\tB\004\342A\001\002\"\256\002\n\026CopyLogEn" + + "triesMetadata\022.\n\nstart_time\030\001 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132" + + "\032.google.protobuf.Timestamp\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.CopyLogEntrie" + + "sRequest\022\020\n\010progress\030\006 \001(\005\022\027\n\017writer_ide" + + "ntity\030\007 \001(\t\":\n\026CopyLogEntriesResponse\022 \n" + + "\030log_entries_copied_count\030\001 \001(\003\"\275\002\n\016Buck" + + "etMetadata\022.\n\nstart_time\030\001 \001(\0132\032.google." + + "protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\0220\n\005state\030\003 \001(\0162" + + "!.google.logging.v2.OperationState\022G\n\025cr" + + "eate_bucket_request\030\004 \001(\0132&.google.loggi" + + "ng.v2.CreateBucketRequestH\000\022G\n\025update_bu" + + "cket_request\030\005 \001(\0132&.google.logging.v2.U" + + "pdateBucketRequestH\000B\t\n\007request\"\263\002\n\014Link" + + "Metadata\022.\n\nstart_time\030\001 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\0220\n\005state\030\003 \001(\0162!." + + "google.logging.v2.OperationState\022C\n\023crea" + + "te_link_request\030\004 \001(\0132$.google.logging.v" + + "2.CreateLinkRequestH\000\022C\n\023delete_link_req" + + "uest\030\005 \001(\0132$.google.logging.v2.DeleteLin" + + "kRequestH\000B\t\n\007request\"1\n\020LocationMetadat" + + "a\022\035\n\025log_analytics_enabled\030\001 \001(\010*\364\001\n\016Ope" + + "rationState\022\037\n\033OPERATION_STATE_UNSPECIFI" + + "ED\020\000\022\035\n\031OPERATION_STATE_SCHEDULED\020\001\022+\n\'O" + + "PERATION_STATE_WAITING_FOR_PERMISSIONS\020\002" + + "\022\033\n\027OPERATION_STATE_RUNNING\020\003\022\035\n\031OPERATI" + + "ON_STATE_SUCCEEDED\020\004\022\032\n\026OPERATION_STATE_" + + "FAILED\020\005\022\035\n\031OPERATION_STATE_CANCELLED\020\006*" + + "{\n\016LifecycleState\022\037\n\033LIFECYCLE_STATE_UNS" + + "PECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\024\n\020DELETE_REQUEST" + + "ED\020\002\022\014\n\010UPDATING\020\003\022\014\n\010CREATING\020\004\022\n\n\006FAIL" + + "ED\020\005*V\n\tIndexType\022\032\n\026INDEX_TYPE_UNSPECIF" + + "IED\020\000\022\025\n\021INDEX_TYPE_STRING\020\001\022\026\n\022INDEX_TY" + + "PE_INTEGER\020\0022\237Y\n\017ConfigServiceV2\022\334\002\n\013Lis" + + "tBuckets\022%.google.logging.v2.ListBuckets" + + "Request\032&.google.logging.v2.ListBucketsR" + + "esponse\"\375\001\332A\006parent\202\323\344\223\002\355\001\022$/v2/{parent=" + + "*/*/locations/*}/bucketsZ-\022+/v2/{parent=" + + "projects/*/locations/*}/bucketsZ2\0220/v2/{" + + "parent=organizations/*/locations/*}/buck" + + "etsZ,\022*/v2/{parent=folders/*/locations/*" + + "}/bucketsZ4\0222/v2/{parent=billingAccounts" + + "/*/locations/*}/buckets\022\305\002\n\tGetBucket\022#." + + "google.logging.v2.GetBucketRequest\032\034.goo" + + "gle.logging.v2.LogBucket\"\364\001\202\323\344\223\002\355\001\022$/v2/" + + "{name=*/*/locations/*/buckets/*}Z-\022+/v2/" + + "{name=projects/*/locations/*/buckets/*}Z" + + "2\0220/v2/{name=organizations/*/locations/*" + + "/buckets/*}Z,\022*/v2/{name=folders/*/locat" + + "ions/*/buckets/*}Z4\0222/v2/{name=billingAc" + + "counts/*/locations/*/buckets/*}\022\323\003\n\021Crea" + + "teBucketAsync\022&.google.logging.v2.Create" + + "BucketRequest\032\035.google.longrunning.Opera" + + "tion\"\366\002\312A\033\n\tLogBucket\022\016BucketMetadata\202\323\344" + + "\223\002\321\002\"0/v2/{parent=*/*/locations/*}/bucke" + + "ts:createAsync:\006bucketZA\"7/v2/{parent=pr" + + "ojects/*/locations/*}/buckets:createAsyn" + + "c:\006bucketZF\"/v2/{pare" + + "nt=billingAccounts/*/locations/*}/bucket" + + "s:createAsync:\006bucket\022\323\003\n\021UpdateBucketAs" + + "ync\022&.google.logging.v2.UpdateBucketRequ" + + "est\032\035.google.longrunning.Operation\"\366\002\312A\033" + + "\n\tLogBucket\022\016BucketMetadata\202\323\344\223\002\321\002\"0/v2/" + + "{name=*/*/locations/*/buckets/*}:updateA" + + "sync:\006bucketZA\"7/v2/{name=projects/*/loc" + + "ations/*/buckets/*}:updateAsync:\006bucketZ" + + "F\"/v2/{name=billingAc" + + "counts/*/locations/*/buckets/*}:updateAs" + + "ync:\006bucket\022\363\002\n\014CreateBucket\022&.google.lo" + + "gging.v2.CreateBucketRequest\032\034.google.lo" + + "gging.v2.LogBucket\"\234\002\202\323\344\223\002\225\002\"$/v2/{paren" + + "t=*/*/locations/*}/buckets:\006bucketZ5\"+/v" + + "2/{parent=projects/*/locations/*}/bucket" + + "s:\006bucketZ:\"0/v2/{parent=organizations/*" + + "/locations/*}/buckets:\006bucketZ4\"*/v2/{pa" + + "rent=folders/*/locations/*}/buckets:\006buc" + + "ketZ<\"2/v2/{parent=billingAccounts/*/loc" + + "ations/*}/buckets:\006bucket\022\363\002\n\014UpdateBuck" + + "et\022&.google.logging.v2.UpdateBucketReque" + + "st\032\034.google.logging.v2.LogBucket\"\234\002\202\323\344\223\002" + + "\225\0022$/v2/{name=*/*/locations/*/buckets/*}" + + ":\006bucketZ52+/v2/{name=projects/*/locatio" + + "ns/*/buckets/*}:\006bucketZ:20/v2/{name=org" + + "anizations/*/locations/*/buckets/*}:\006buc" + + "ketZ42*/v2/{name=folders/*/locations/*/b" + + "uckets/*}:\006bucketZ<22/v2/{name=billingAc" + + "counts/*/locations/*/buckets/*}:\006bucket\022" + + "\305\002\n\014DeleteBucket\022&.google.logging.v2.Del" + + "eteBucketRequest\032\026.google.protobuf.Empty" + + "\"\364\001\202\323\344\223\002\355\001*$/v2/{name=*/*/locations/*/bu" + + "ckets/*}Z-*+/v2/{name=projects/*/locatio" + + "ns/*/buckets/*}Z2*0/v2/{name=organizatio" + + "ns/*/locations/*/buckets/*}Z,**/v2/{name" + + "=folders/*/locations/*/buckets/*}Z4*2/v2" + + "/{name=billingAccounts/*/locations/*/buc" + + "kets/*}\022\205\003\n\016UndeleteBucket\022(.google.logg" + + "ing.v2.UndeleteBucketRequest\032\026.google.pr" + + "otobuf.Empty\"\260\002\202\323\344\223\002\251\002\"-/v2/{name=*/*/lo" + + "cations/*/buckets/*}:undelete:\001*Z9\"4/v2/" + + "{name=projects/*/locations/*/buckets/*}:" + + "undelete:\001*Z>\"9/v2/{name=organizations/*" + + "/locations/*/buckets/*}:undelete:\001*Z8\"3/" + + "v2/{name=folders/*/locations/*/buckets/*" + + "}:undelete:\001*Z@\";/v2/{name=billingAccoun" + + "ts/*/locations/*/buckets/*}:undelete:\001*\022" + + "\376\002\n\tListViews\022#.google.logging.v2.ListVi" + + "ewsRequest\032$.google.logging.v2.ListViews" + + "Response\"\245\002\332A\006parent\202\323\344\223\002\225\002\022,/v2/{parent" + + "=*/*/locations/*/buckets/*}/viewsZ5\0223/v2" + + "/{parent=projects/*/locations/*/buckets/" + + "*}/viewsZ:\0228/v2/{parent=organizations/*/" + + "locations/*/buckets/*}/viewsZ4\0222/v2/{par" + + "ent=folders/*/locations/*/buckets/*}/vie" + + "wsZ<\022:/v2/{parent=billingAccounts/*/loca" + + "tions/*/buckets/*}/views\022\347\002\n\007GetView\022!.g" + + "oogle.logging.v2.GetViewRequest\032\032.google" + + ".logging.v2.LogView\"\234\002\202\323\344\223\002\225\002\022,/v2/{name" + + "=*/*/locations/*/buckets/*/views/*}Z5\0223/" + + "v2/{name=projects/*/locations/*/buckets/" + + "*/views/*}Z:\0228/v2/{name=organizations/*/" + + "locations/*/buckets/*/views/*}Z4\0222/v2/{n" + + "ame=folders/*/locations/*/buckets/*/view" + + "s/*}Z<\022:/v2/{name=billingAccounts/*/loca" + + "tions/*/buckets/*/views/*}\022\213\003\n\nCreateVie" + + "w\022$.google.logging.v2.CreateViewRequest\032" + + "\032.google.logging.v2.LogView\"\272\002\202\323\344\223\002\263\002\",/" + + "v2/{parent=*/*/locations/*/buckets/*}/vi" + + "ews:\004viewZ;\"3/v2/{parent=projects/*/loca" + + "tions/*/buckets/*}/views:\004viewZ@\"8/v2/{p" + + "arent=organizations/*/locations/*/bucket" + + "s/*}/views:\004viewZ:\"2/v2/{parent=folders/" + + "*/locations/*/buckets/*}/views:\004viewZB\":" + + "/v2/{parent=billingAccounts/*/locations/" + + "*/buckets/*}/views:\004view\022\213\003\n\nUpdateView\022" + + "$.google.logging.v2.UpdateViewRequest\032\032." + + "google.logging.v2.LogView\"\272\002\202\323\344\223\002\263\0022,/v2" + + "/{name=*/*/locations/*/buckets/*/views/*" + + "}:\004viewZ;23/v2/{name=projects/*/location" + + "s/*/buckets/*/views/*}:\004viewZ@28/v2/{nam" + + "e=organizations/*/locations/*/buckets/*/" + + "views/*}:\004viewZ:22/v2/{name=folders/*/lo" + + "cations/*/buckets/*/views/*}:\004viewZB2:/v" + + "2/{name=billingAccounts/*/locations/*/bu" + + "ckets/*/views/*}:\004view\022\351\002\n\nDeleteView\022$." + + "google.logging.v2.DeleteViewRequest\032\026.go" + + "ogle.protobuf.Empty\"\234\002\202\323\344\223\002\225\002*,/v2/{name" + + "=*/*/locations/*/buckets/*/views/*}Z5*3/" + + "v2/{name=projects/*/locations/*/buckets/" + + "*/views/*}Z:*8/v2/{name=organizations/*/" + + "locations/*/buckets/*/views/*}Z4*2/v2/{n" + + "ame=folders/*/locations/*/buckets/*/view" + + "s/*}Z<*:/v2/{name=billingAccounts/*/loca" + + "tions/*/buckets/*/views/*}\022\220\002\n\tListSinks" + + "\022#.google.logging.v2.ListSinksRequest\032$." + + "google.logging.v2.ListSinksResponse\"\267\001\332A" + + "\006parent\202\323\344\223\002\247\001\022\026/v2/{parent=*/*}/sinksZ\037" + + "\022\035/v2/{parent=projects/*}/sinksZ$\022\"/v2/{" + + "parent=organizations/*}/sinksZ\036\022\034/v2/{pa" + + "rent=folders/*}/sinksZ&\022$/v2/{parent=bil" + + "lingAccounts/*}/sinks\022\236\002\n\007GetSink\022!.goog" + + "le.logging.v2.GetSinkRequest\032\032.google.lo" + + "gging.v2.LogSink\"\323\001\332A\tsink_name\202\323\344\223\002\300\001\022\033" + + "/v2/{sink_name=*/*/sinks/*}Z$\022\"/v2/{sink" + + "_name=projects/*/sinks/*}Z)\022\'/v2/{sink_n" + + "ame=organizations/*/sinks/*}Z#\022!/v2/{sin" + + "k_name=folders/*/sinks/*}Z+\022)/v2/{sink_n" + + "ame=billingAccounts/*/sinks/*}\022\253\002\n\nCreat" + + "eSink\022$.google.logging.v2.CreateSinkRequ" + + "est\032\032.google.logging.v2.LogSink\"\332\001\332A\013par" + + "ent,sink\202\323\344\223\002\305\001\"\026/v2/{parent=*/*}/sinks:" + + "\004sinkZ%\"\035/v2/{parent=projects/*}/sinks:\004" + + "sinkZ*\"\"/v2/{parent=organizations/*}/sin" + + "ks:\004sinkZ$\"\034/v2/{parent=folders/*}/sinks" + + ":\004sinkZ,\"$/v2/{parent=billingAccounts/*}" + + "/sinks:\004sink\022\237\004\n\nUpdateSink\022$.google.log" + + "ging.v2.UpdateSinkRequest\032\032.google.loggi" + + "ng.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/*}:\004sinkZ*\032\"/v2/{sink_na" + + "me=projects/*/sinks/*}:\004sinkZ/\032\'/v2/{sin" + + "k_name=organizations/*/sinks/*}:\004sinkZ)\032", + "!/v2/{sink_name=folders/*/sinks/*}:\004sink" + + "Z1\032)/v2/{sink_name=billingAccounts/*/sin" + + "ks/*}:\004sinkZ*2\"/v2/{sink_name=projects/*" + + "/sinks/*}:\004sinkZ/2\'/v2/{sink_name=organi" + + "zations/*/sinks/*}:\004sinkZ)2!/v2/{sink_na" + + "me=folders/*/sinks/*}:\004sinkZ12)/v2/{sink" + + "_name=billingAccounts/*/sinks/*}:\004sink\022\240" + + "\002\n\nDeleteSink\022$.google.logging.v2.Delete" + + "SinkRequest\032\026.google.protobuf.Empty\"\323\001\332A" + + "\tsink_name\202\323\344\223\002\300\001*\033/v2/{sink_name=*/*/si" + + "nks/*}Z$*\"/v2/{sink_name=projects/*/sink" + + "s/*}Z)*\'/v2/{sink_name=organizations/*/s" + + "inks/*}Z#*!/v2/{sink_name=folders/*/sink" + + "s/*}Z+*)/v2/{sink_name=billingAccounts/*" + + "/sinks/*}\022\273\003\n\nCreateLink\022$.google.loggin" + + "g.v2.CreateLinkRequest\032\035.google.longrunn" + + "ing.Operation\"\347\002\312A\024\n\004Link\022\014LinkMetadata\332" + + "A\023parent,link,link_id\202\323\344\223\002\263\002\",/v2/{paren" + + "t=*/*/locations/*/buckets/*}/links:\004link" + + "Z;\"3/v2/{parent=projects/*/locations/*/b" + + "uckets/*}/links:\004linkZ@\"8/v2/{parent=org" + + "anizations/*/locations/*/buckets/*}/link" + + "s:\004linkZ:\"2/v2/{parent=folders/*/locatio" + + "ns/*/buckets/*}/links:\004linkZB\":/v2/{pare" + + "nt=billingAccounts/*/locations/*/buckets" + + "/*}/links:\004link\022\237\003\n\nDeleteLink\022$.google." + + "logging.v2.DeleteLinkRequest\032\035.google.lo" + + "ngrunning.Operation\"\313\002\312A%\n\025google.protob" + + "uf.Empty\022\014LinkMetadata\332A\004name\202\323\344\223\002\225\002*,/v" + + "2/{name=*/*/locations/*/buckets/*/links/" + + "*}Z5*3/v2/{name=projects/*/locations/*/b" + + "uckets/*/links/*}Z:*8/v2/{name=organizat" + + "ions/*/locations/*/buckets/*/links/*}Z4*" + + "2/v2/{name=folders/*/locations/*/buckets" + + "/*/links/*}Z<*:/v2/{name=billingAccounts" + + "/*/locations/*/buckets/*/links/*}\022\376\002\n\tLi" + + "stLinks\022#.google.logging.v2.ListLinksReq" + + "uest\032$.google.logging.v2.ListLinksRespon" + + "se\"\245\002\332A\006parent\202\323\344\223\002\225\002\022,/v2/{parent=*/*/l" + + "ocations/*/buckets/*}/linksZ5\0223/v2/{pare" + + "nt=projects/*/locations/*/buckets/*}/lin" + + "ksZ:\0228/v2/{parent=organizations/*/locati" + + "ons/*/buckets/*}/linksZ4\0222/v2/{parent=fo" + + "lders/*/locations/*/buckets/*}/linksZ<\022:" + + "/v2/{parent=billingAccounts/*/locations/" + + "*/buckets/*}/links\022\353\002\n\007GetLink\022!.google." + + "logging.v2.GetLinkRequest\032\027.google.loggi" + + "ng.v2.Link\"\243\002\332A\004name\202\323\344\223\002\225\002\022,/v2/{name=*" + + "/*/locations/*/buckets/*/links/*}Z5\0223/v2" + + "/{name=projects/*/locations/*/buckets/*/" + + "links/*}Z:\0228/v2/{name=organizations/*/lo" + + "cations/*/buckets/*/links/*}Z4\0222/v2/{nam" + + "e=folders/*/locations/*/buckets/*/links/" + + "*}Z<\022:/v2/{name=billingAccounts/*/locati" + + "ons/*/buckets/*/links/*}\022\270\002\n\016ListExclusi" + + "ons\022(.google.logging.v2.ListExclusionsRe" + + "quest\032).google.logging.v2.ListExclusions" + + "Response\"\320\001\332A\006parent\202\323\344\223\002\300\001\022\033/v2/{parent" + + "=*/*}/exclusionsZ$\022\"/v2/{parent=projects" + + "/*}/exclusionsZ)\022\'/v2/{parent=organizati" + + "ons/*}/exclusionsZ#\022!/v2/{parent=folders" + + "/*}/exclusionsZ+\022)/v2/{parent=billingAcc" + + "ounts/*}/exclusions\022\250\002\n\014GetExclusion\022&.g" + + "oogle.logging.v2.GetExclusionRequest\032\037.g" + + "oogle.logging.v2.LogExclusion\"\316\001\332A\004name\202" + + "\323\344\223\002\300\001\022\033/v2/{name=*/*/exclusions/*}Z$\022\"/" + + "v2/{name=projects/*/exclusions/*}Z)\022\'/v2" + + "/{name=organizations/*/exclusions/*}Z#\022!" + + "/v2/{name=folders/*/exclusions/*}Z+\022)/v2" + + "/{name=billingAccounts/*/exclusions/*}\022\361" + + "\002\n\017CreateExclusion\022).google.logging.v2.C" + + "reateExclusionRequest\032\037.google.logging.v" + + "2.LogExclusion\"\221\002\332A\020parent,exclusion\202\323\344\223" + + "\002\367\001\"\033/v2/{parent=*/*}/exclusions:\texclus" + + "ionZ/\"\"/v2/{parent=projects/*}/exclusion" + + "s:\texclusionZ4\"\'/v2/{parent=organization" + + "s/*}/exclusions:\texclusionZ.\"!/v2/{paren" + + "t=folders/*}/exclusions:\texclusionZ6\")/v" + + "2/{parent=billingAccounts/*}/exclusions:" + + "\texclusion\022\373\002\n\017UpdateExclusion\022).google." + + "logging.v2.UpdateExclusionRequest\032\037.goog" + + "le.logging.v2.LogExclusion\"\233\002\332A\032name,exc" + + "lusion,update_mask\202\323\344\223\002\367\0012\033/v2/{name=*/*" + + "/exclusions/*}:\texclusionZ/2\"/v2/{name=p" + + "rojects/*/exclusions/*}:\texclusionZ42\'/v" + + "2/{name=organizations/*/exclusions/*}:\te" + + "xclusionZ.2!/v2/{name=folders/*/exclusio" + + "ns/*}:\texclusionZ62)/v2/{name=billingAcc" + + "ounts/*/exclusions/*}:\texclusion\022\245\002\n\017Del" + + "eteExclusion\022).google.logging.v2.DeleteE" + + "xclusionRequest\032\026.google.protobuf.Empty\"" + + "\316\001\332A\004name\202\323\344\223\002\300\001*\033/v2/{name=*/*/exclusio" + + "ns/*}Z$*\"/v2/{name=projects/*/exclusions" + + "/*}Z)*\'/v2/{name=organizations/*/exclusi" + + "ons/*}Z#*!/v2/{name=folders/*/exclusions" + + "/*}Z+*)/v2/{name=billingAccounts/*/exclu" + + "sions/*}\022\247\002\n\017GetCmekSettings\022).google.lo" + + "gging.v2.GetCmekSettingsRequest\032\037.google" + + ".logging.v2.CmekSettings\"\307\001\202\323\344\223\002\300\001\022\033/v2/" + + "{name=*/*}/cmekSettingsZ$\022\"/v2/{name=pro" + + "jects/*}/cmekSettingsZ)\022\'/v2/{name=organ" + + "izations/*}/cmekSettingsZ#\022!/v2/{name=fo" + + "lders/*}/cmekSettingsZ+\022)/v2/{name=billi" + + "ngAccounts/*}/cmekSettings\022\321\001\n\022UpdateCme" + + "kSettings\022,.google.logging.v2.UpdateCmek" + + "SettingsRequest\032\037.google.logging.v2.Cmek" + + "Settings\"l\202\323\344\223\002f2\033/v2/{name=*/*}/cmekSet" + + "tings:\rcmek_settingsZ82\'/v2/{name=organi" + + "zations/*}/cmekSettings:\rcmek_settings\022\216" + + "\002\n\013GetSettings\022%.google.logging.v2.GetSe" + + "ttingsRequest\032\033.google.logging.v2.Settin" + + "gs\"\272\001\332A\004name\202\323\344\223\002\254\001\022\027/v2/{name=*/*}/sett" + + "ingsZ \022\036/v2/{name=projects/*}/settingsZ%" + + "\022#/v2/{name=organizations/*}/settingsZ\037\022" + + "\035/v2/{name=folders/*}/settingsZ\'\022%/v2/{n" + + "ame=billingAccounts/*}/settings\022\366\001\n\016Upda" + + "teSettings\022(.google.logging.v2.UpdateSet" + + "tingsRequest\032\033.google.logging.v2.Setting" + + "s\"\234\001\332A\024settings,update_mask\202\323\344\223\002\1772\027/v2/{" + + "name=*/*}/settings:\010settingsZ/2#/v2/{nam" + + "e=organizations/*}/settings:\010settingsZ)2" + + "\035/v2/{name=folders/*}/settings:\010settings" + + "\022\251\001\n\016CopyLogEntries\022(.google.logging.v2." + + "CopyLogEntriesRequest\032\035.google.longrunni" + + "ng.Operation\"N\312A0\n\026CopyLogEntriesRespons" + + "e\022\026CopyLogEntriesMetadata\202\323\344\223\002\025\"\020/v2/ent" + + "ries:copy:\001*\032\337\001\312A\026logging.googleapis.com" + + "\322A\302\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.readB\326" + + "\003\n\025com.google.logging.v2B\022LoggingConfigP" + + "rotoP\001Z5cloud.google.com/go/logging/apiv" + + "2/loggingpb;loggingpb\370\001\001\252\002\027Google.Cloud." + + "Logging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032G" + + "oogle::Cloud::Logging::V2\352A`\n+logging.go" + + "ogleapis.com/OrganizationLocation\0221organ" + + "izations/{organization}/locations/{locat" + + "ion}\352AN\n%logging.googleapis.com/FolderLo" + + "cation\022%folders/{folder}/locations/{loca" + + "tion}\352Ag\n-logging.googleapis.com/Billing" + + "AccountLocation\0226billingAccounts/{billin" + + "g_account}/locations/{location}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..c133ff15b --- /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 + +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\"\310\005\n\tLogMetric\022\022\n\004name\030\001 \001(" + + "\tB\004\342A\001\002\022\031\n\013description\030\002 \001(\tB\004\342A\001\001\022\024\n\006fi" + + "lter\030\003 \001(\tB\004\342A\001\002\022\031\n\013bucket_name\030\r \001(\tB\004\342" + + "A\001\001\022\026\n\010disabled\030\014 \001(\010B\004\342A\001\001\022=\n\021metric_de" + + "scriptor\030\005 \001(\0132\034.google.api.MetricDescri" + + "ptorB\004\342A\001\001\022\035\n\017value_extractor\030\006 \001(\tB\004\342A\001" + + "\001\022Q\n\020label_extractors\030\007 \003(\01321.google.log" + + "ging.v2.LogMetric.LabelExtractorsEntryB\004" + + "\342A\001\001\022D\n\016bucket_options\030\010 \001(\0132&.google.ap" + + "i.Distribution.BucketOptionsB\004\342A\001\001\0225\n\013cr" + + "eate_time\030\t \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\0225\n\013update_time\030\n \001(\0132\032.google." + + "protobuf.TimestampB\004\342A\001\003\022<\n\007version\030\004 \001(" + + "\0162\'.google.logging.v2.LogMetric.ApiVersi" + + "onB\002\030\001\0326\n\024LabelExtractorsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\034\n\nApiVersion\022\006\n\002" + + "V2\020\000\022\006\n\002V1\020\001:J\352AG\n logging.googleapis.co" + + "m/LogMetric\022#projects/{project}/metrics/" + + "{metric}\"\220\001\n\025ListLogMetricsRequest\022D\n\006pa" + + "rent\030\001 \001(\tB4\342A\001\002\372A-\n+cloudresourcemanage" + + "r.googleapis.com/Project\022\030\n\npage_token\030\002" + + " \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\003 \001(\005B\004\342A\001\001\"`\n\026L" + + "istLogMetricsResponse\022-\n\007metrics\030\001 \003(\0132\034" + + ".google.logging.v2.LogMetric\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"U\n\023GetLogMetricRequest\022>\n\013" + + "metric_name\030\001 \001(\tB)\342A\001\002\372A\"\n logging.goog" + + "leapis.com/LogMetric\"\207\001\n\026CreateLogMetric" + + "Request\0229\n\006parent\030\001 \001(\tB)\342A\001\002\372A\"\022 loggin" + + "g.googleapis.com/LogMetric\0222\n\006metric\030\002 \001" + + "(\0132\034.google.logging.v2.LogMetricB\004\342A\001\002\"\214" + + "\001\n\026UpdateLogMetricRequest\022>\n\013metric_name" + + "\030\001 \001(\tB)\342A\001\002\372A\"\n logging.googleapis.com/" + + "LogMetric\0222\n\006metric\030\002 \001(\0132\034.google.loggi" + + "ng.v2.LogMetricB\004\342A\001\002\"X\n\026DeleteLogMetric" + + "Request\022>\n\013metric_name\030\001 \001(\tB)\342A\001\002\372A\"\n l" + + "ogging.googleapis.com/LogMetric2\256\010\n\020Metr" + + "icsServiceV2\022\227\001\n\016ListLogMetrics\022(.google" + + ".logging.v2.ListLogMetricsRequest\032).goog" + + "le.logging.v2.ListLogMetricsResponse\"0\332A" + + "\006parent\202\323\344\223\002!\022\037/v2/{parent=projects/*}/m" + + "etrics\022\222\001\n\014GetLogMetric\022&.google.logging" + + ".v2.GetLogMetricRequest\032\034.google.logging" + + ".v2.LogMetric\"<\332A\013metric_name\202\323\344\223\002(\022&/v2" + + "/{metric_name=projects/*/metrics/*}\022\233\001\n\017" + + "CreateLogMetric\022).google.logging.v2.Crea" + + "teLogMetricRequest\032\034.google.logging.v2.L" + + "ogMetric\"?\332A\rparent,metric\202\323\344\223\002)\"\037/v2/{p" + + "arent=projects/*}/metrics:\006metric\022\247\001\n\017Up" + + "dateLogMetric\022).google.logging.v2.Update" + + "LogMetricRequest\032\034.google.logging.v2.Log" + + "Metric\"K\332A\022metric_name,metric\202\323\344\223\0020\032&/v2" + + "/{metric_name=projects/*/metrics/*}:\006met" + + "ric\022\222\001\n\017DeleteLogMetric\022).google.logging" + + ".v2.DeleteLogMetricRequest\032\026.google.prot" + + "obuf.Empty\"<\332A\013metric_name\202\323\344\223\002(*&/v2/{m" + + "etric_name=projects/*/metrics/*}\032\215\002\312A\026lo" + + "gging.googleapis.com\322A\360\001https://www.goog" + + "leapis.com/auth/cloud-platform,https://w" + + "ww.googleapis.com/auth/cloud-platform.re" + + "ad-only,https://www.googleapis.com/auth/" + + "logging.admin,https://www.googleapis.com" + + "/auth/logging.read,https://www.googleapi" + + "s.com/auth/logging.writeB\271\001\n\025com.google." + + "logging.v2B\023LoggingMetricsProtoP\001Z5cloud" + + ".google.com/go/logging/apiv2/loggingpb;l" + + "oggingpb\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027" + + "Google\\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..2d15d902c --- /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 + +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\"I\n\020DeleteLogRequest\0225\n\010log_name\030\001 " + + "\001(\tB#\342A\001\002\372A\034\n\032logging.googleapis.com/Log" + + "\"\354\002\n\026WriteLogEntriesRequest\0225\n\010log_name\030" + + "\001 \001(\tB#\342A\001\001\372A\034\n\032logging.googleapis.com/L" + + "og\0225\n\010resource\030\002 \001(\0132\035.google.api.Monito" + + "redResourceB\004\342A\001\001\022K\n\006labels\030\003 \003(\01325.goog" + + "le.logging.v2.WriteLogEntriesRequest.Lab" + + "elsEntryB\004\342A\001\001\0222\n\007entries\030\004 \003(\0132\033.google" + + ".logging.v2.LogEntryB\004\342A\001\002\022\035\n\017partial_su" + + "ccess\030\005 \001(\010B\004\342A\001\001\022\025\n\007dry_run\030\006 \001(\010B\004\342A\001\001" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"\031\n\027WriteLogEntriesResponse\"\310\001\n\034W" + + "riteLogEntriesPartialErrors\022]\n\020log_entry" + + "_errors\030\001 \003(\0132C.google.logging.v2.WriteL" + + "ogEntriesPartialErrors.LogEntryErrorsEnt" + + "ry\032I\n\023LogEntryErrorsEntry\022\013\n\003key\030\001 \001(\005\022!" + + "\n\005value\030\002 \001(\0132\022.google.rpc.Status:\0028\001\"\265\001" + + "\n\025ListLogEntriesRequest\022;\n\016resource_name" + + "s\030\010 \003(\tB#\342A\001\002\372A\034\022\032logging.googleapis.com" + + "/Log\022\024\n\006filter\030\002 \001(\tB\004\342A\001\001\022\026\n\010order_by\030\003" + + " \001(\tB\004\342A\001\001\022\027\n\tpage_size\030\004 \001(\005B\004\342A\001\001\022\030\n\np" + + "age_token\030\005 \001(\tB\004\342A\001\001\"_\n\026ListLogEntriesR" + + "esponse\022,\n\007entries\030\001 \003(\0132\033.google.loggin" + + "g.v2.LogEntry\022\027\n\017next_page_token\030\002 \001(\t\"\\" + + "\n\'ListMonitoredResourceDescriptorsReques" + + "t\022\027\n\tpage_size\030\001 \001(\005B\004\342A\001\001\022\030\n\npage_token" + + "\030\002 \001(\tB\004\342A\001\001\"\212\001\n(ListMonitoredResourceDe" + + "scriptorsResponse\022E\n\024resource_descriptor" + + "s\030\001 \003(\0132\'.google.api.MonitoredResourceDe" + + "scriptor\022\027\n\017next_page_token\030\002 \001(\t\"\266\001\n\017Li" + + "stLogsRequest\0223\n\006parent\030\001 \001(\tB#\342A\001\002\372A\034\022\032" + + "logging.googleapis.com/Log\022;\n\016resource_n" + + "ames\030\010 \003(\tB#\342A\001\001\372A\034\022\032logging.googleapis." + + "com/Log\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + + "_token\030\003 \001(\tB\004\342A\001\001\">\n\020ListLogsResponse\022\021" + + "\n\tlog_names\030\003 \003(\t\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\203\001\n\025TailLogEntriesRequest\022\034\n\016resource" + + "_names\030\001 \003(\tB\004\342A\001\002\022\024\n\006filter\030\002 \001(\tB\004\342A\001\001" + + "\0226\n\rbuffer_window\030\003 \001(\0132\031.google.protobu" + + "f.DurationB\004\342A\001\001\"\337\002\n\026TailLogEntriesRespo" + + "nse\022,\n\007entries\030\001 \003(\0132\033.google.logging.v2" + + ".LogEntry\022S\n\020suppression_info\030\002 \003(\01329.go" + + "ogle.logging.v2.TailLogEntriesResponse.S" + + "uppressionInfo\032\301\001\n\017SuppressionInfo\022P\n\006re" + + "ason\030\001 \001(\0162@.google.logging.v2.TailLogEn" + + "triesResponse.SuppressionInfo.Reason\022\030\n\020" + + "suppressed_count\030\002 \001(\005\"B\n\006Reason\022\026\n\022REAS" + + "ON_UNSPECIFIED\020\000\022\016\n\nRATE_LIMIT\020\001\022\020\n\014NOT_" + + "CONSUMED\020\0022\351\r\n\020LoggingServiceV2\022\223\002\n\tDele" + + "teLog\022#.google.logging.v2.DeleteLogReque" + + "st\032\026.google.protobuf.Empty\"\310\001\332A\010log_name" + + "\202\323\344\223\002\266\001* /v2/{log_name=projects/*/logs/*" + + "}Z\033*\031/v2/{log_name=*/*/logs/*}Z\'*%/v2/{l" + + "og_name=organizations/*/logs/*}Z!*\037/v2/{" + + "log_name=folders/*/logs/*}Z)*\'/v2/{log_n" + + "ame=billingAccounts/*/logs/*}\022\251\001\n\017WriteL" + + "ogEntries\022).google.logging.v2.WriteLogEn" + + "triesRequest\032*.google.logging.v2.WriteLo" + + "gEntriesResponse\"?\332A log_name,resource,l" + + "abels,entries\202\323\344\223\002\026\"\021/v2/entries:write:\001" + + "*\022\243\001\n\016ListLogEntries\022(.google.logging.v2" + + ".ListLogEntriesRequest\032).google.logging." + + "v2.ListLogEntriesResponse\"<\332A\036resource_n" + + "ames,filter,order_by\202\323\344\223\002\025\"\020/v2/entries:" + + "list:\001*\022\305\001\n ListMonitoredResourceDescrip" + + "tors\022:.google.logging.v2.ListMonitoredRe" + + "sourceDescriptorsRequest\032;.google.loggin" + + "g.v2.ListMonitoredResourceDescriptorsRes" + + "ponse\"(\202\323\344\223\002\"\022 /v2/monitoredResourceDesc" + + "riptors\022\213\004\n\010ListLogs\022\".google.logging.v2" + + ".ListLogsRequest\032#.google.logging.v2.Lis" + + "tLogsResponse\"\265\003\332A\006parent\202\323\344\223\002\245\003\022\025/v2/{p" + + "arent=*/*}/logsZ\036\022\034/v2/{parent=projects/" + + "*}/logsZ#\022!/v2/{parent=organizations/*}/" + + "logsZ\035\022\033/v2/{parent=folders/*}/logsZ%\022#/" + + "v2/{parent=billingAccounts/*}/logsZ<\022:/v" + + "2/{parent=projects/*/locations/*/buckets" + + "/*/views/*}/logsZA\022?/v2/{parent=organiza" + + "tions/*/locations/*/buckets/*/views/*}/l" + + "ogsZ;\0229/v2/{parent=folders/*/locations/*" + + "/buckets/*/views/*}/logsZC\022A/v2/{parent=" + + "billingAccounts/*/locations/*/buckets/*/" + + "views/*}/logs\022\206\001\n\016TailLogEntries\022(.googl" + + "e.logging.v2.TailLogEntriesRequest\032).goo" + + "gle.logging.v2.TailLogEntriesResponse\"\033\202" + + "\323\344\223\002\025\"\020/v2/entries:tail:\001*(\0010\001\032\215\002\312A\026logg" + + "ing.googleapis.com\322A\360\001https://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/cloud-platform.read" + + "-only,https://www.googleapis.com/auth/lo" + + "gging.admin,https://www.googleapis.com/a" + + "uth/logging.read,https://www.googleapis." + + "com/auth/logging.writeB\262\001\n\025com.google.lo" + + "gging.v2B\014LoggingProtoP\001Z5cloud.google.c" + + "om/go/logging/apiv2/loggingpb;loggingpb\370" + + "\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Cl" + + "oud\\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.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 72bd0c425..b45a557a5 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,9 +1,26 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 package com.google.logging.v2; /** + * + * *
  * List of different operation states.
  * High level state of the operation. This is used to report the job's
@@ -14,9 +31,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.
    * 
@@ -25,6 +43,8 @@ public enum OperationState */ OPERATION_STATE_UNSPECIFIED(0), /** + * + * *
    * The operation is scheduled.
    * 
@@ -33,6 +53,8 @@ public enum OperationState */ OPERATION_STATE_SCHEDULED(1), /** + * + * *
    * Waiting for necessary permissions.
    * 
@@ -41,6 +63,8 @@ public enum OperationState */ OPERATION_STATE_WAITING_FOR_PERMISSIONS(2), /** + * + * *
    * The operation is running.
    * 
@@ -49,6 +73,8 @@ public enum OperationState */ OPERATION_STATE_RUNNING(3), /** + * + * *
    * The operation was completed successfully.
    * 
@@ -57,6 +83,8 @@ public enum OperationState */ OPERATION_STATE_SUCCEEDED(4), /** + * + * *
    * The operation failed.
    * 
@@ -65,6 +93,8 @@ public enum OperationState */ OPERATION_STATE_FAILED(5), /** + * + * *
    * The operation was cancelled by the user.
    * 
@@ -76,6 +106,8 @@ public enum OperationState ; /** + * + * *
    * Should not be used.
    * 
@@ -84,6 +116,8 @@ public enum OperationState */ public static final int OPERATION_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The operation is scheduled.
    * 
@@ -92,6 +126,8 @@ public enum OperationState */ public static final int OPERATION_STATE_SCHEDULED_VALUE = 1; /** + * + * *
    * Waiting for necessary permissions.
    * 
@@ -100,6 +136,8 @@ public enum OperationState */ public static final int OPERATION_STATE_WAITING_FOR_PERMISSIONS_VALUE = 2; /** + * + * *
    * The operation is running.
    * 
@@ -108,6 +146,8 @@ public enum OperationState */ public static final int OPERATION_STATE_RUNNING_VALUE = 3; /** + * + * *
    * The operation was completed successfully.
    * 
@@ -116,6 +156,8 @@ public enum OperationState */ public static final int OPERATION_STATE_SUCCEEDED_VALUE = 4; /** + * + * *
    * The operation failed.
    * 
@@ -124,6 +166,8 @@ public enum OperationState */ public static final int OPERATION_STATE_FAILED_VALUE = 5; /** + * + * *
    * The operation was cancelled by the user.
    * 
@@ -132,7 +176,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( @@ -157,53 +200,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; @@ -219,4 +266,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 62eb5d794..e93bbd036 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,9 +1,26 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 package com.google.logging.v2; /** + * + * *
  * Describes the settings associated with a project, folder, organization,
  * billing account, or flexible resource.
@@ -11,15 +28,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_ = "";
@@ -29,33 +47,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 @@ -64,29 +86,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 { @@ -95,9 +117,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.
    *
@@ -129,6 +154,7 @@ public java.lang.String getName() {
    * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kmsKeyName. */ @java.lang.Override @@ -137,14 +163,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.
    *
@@ -176,16 +203,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 { @@ -194,9 +220,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.
@@ -213,6 +242,7 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kmsServiceAccountId. */ @java.lang.Override @@ -221,14 +251,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.
@@ -245,16 +276,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 { @@ -263,9 +293,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`.
@@ -273,6 +306,7 @@ public java.lang.String getKmsServiceAccountId() {
    * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The storageLocation. */ @java.lang.Override @@ -281,14 +315,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`.
@@ -296,16 +331,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 { @@ -316,6 +350,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
@@ -324,6 +360,7 @@ public java.lang.String getStorageLocation() {
    * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultSink. */ @java.lang.Override @@ -332,6 +369,7 @@ public boolean getDisableDefaultSink() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -343,8 +381,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_); } @@ -382,8 +419,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; @@ -393,23 +429,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; } @@ -430,106 +461,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.
@@ -537,33 +571,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();
@@ -577,9 +609,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
@@ -599,7 +631,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;
     }
@@ -627,38 +661,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;
@@ -716,37 +751,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) {
@@ -756,22 +797,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; @@ -780,20 +824,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 { @@ -801,28 +846,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() { @@ -832,17 +884,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; @@ -852,6 +908,8 @@ public Builder setNameBytes( private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -883,13 +941,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; @@ -898,6 +956,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -929,15 +989,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 { @@ -945,6 +1004,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -976,18 +1037,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.
      *
@@ -1019,6 +1084,7 @@ public Builder setKmsKeyName(
      * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -1028,6 +1094,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
      * Optional. The resource name for the configured Cloud KMS key.
      *
@@ -1059,12 +1127,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; @@ -1074,6 +1144,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.
@@ -1090,13 +1162,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; @@ -1105,6 +1177,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.
@@ -1121,15 +1195,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 { @@ -1137,6 +1210,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.
@@ -1153,18 +1228,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.
@@ -1181,6 +1260,7 @@ public Builder setKmsServiceAccountId(
      * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearKmsServiceAccountId() { @@ -1190,6 +1270,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.
@@ -1206,12 +1288,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; @@ -1221,6 +1305,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`.
@@ -1228,13 +1314,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; @@ -1243,6 +1329,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`.
@@ -1250,15 +1338,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 { @@ -1266,6 +1353,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`.
@@ -1273,18 +1362,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`.
@@ -1292,6 +1385,7 @@ public Builder setStorageLocation(
      * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearStorageLocation() { @@ -1301,6 +1395,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`.
@@ -1308,12 +1404,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; @@ -1321,8 +1419,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
@@ -1331,6 +1431,7 @@ public Builder setStorageLocationBytes(
      * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultSink. */ @java.lang.Override @@ -1338,6 +1439,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
@@ -1346,6 +1449,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. */ @@ -1357,6 +1461,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
@@ -1365,6 +1471,7 @@ public Builder setDisableDefaultSink(boolean value) {
      * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisableDefaultSink() { @@ -1373,9 +1480,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); } @@ -1385,12 +1492,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(); } @@ -1399,27 +1506,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; @@ -1434,6 +1541,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 c526741b6..5edc5ff58 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,33 +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 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.
    *
@@ -59,10 +82,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.
    *
@@ -94,12 +120,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.
@@ -116,10 +144,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.
@@ -136,12 +167,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`.
@@ -149,10 +182,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`.
@@ -160,12 +196,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
@@ -174,6 +212,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 ee8181249..9e98d012c 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,55 +1,76 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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); } 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:
    *
@@ -67,13 +88,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:
    *
@@ -91,12 +114,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:
    *
@@ -114,6 +140,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. */ @@ -121,6 +148,8 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
    * Required. Name of a parent resource from which to retrieve log entries:
    *
@@ -138,18 +167,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`.
@@ -159,6 +191,7 @@ public java.lang.String getResourceNames(int index) {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -167,14 +200,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`.
@@ -184,16 +218,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 { @@ -204,6 +237,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
@@ -211,7 +246,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 @@ -219,6 +256,8 @@ public boolean hasBufferWindow() { return bufferWindow_ != null; } /** + * + * *
    * 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
@@ -226,14 +265,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
@@ -241,14 +286,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; @@ -260,8 +309,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)); } @@ -292,8 +340,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (bufferWindow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBufferWindow()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBufferWindow()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -303,21 +350,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; @@ -345,138 +390,141 @@ 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() - 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_ = ""; bufferWindow_ = null; if (bufferWindowBuilder_ != null) { @@ -487,9 +535,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 @@ -508,8 +556,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; } @@ -524,9 +575,8 @@ private void buildPartial0(com.google.logging.v2.TailLogEntriesRequest result) { result.filter_ = filter_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.bufferWindow_ = bufferWindowBuilder_ == null - ? bufferWindow_ - : bufferWindowBuilder_.build(); + result.bufferWindow_ = + bufferWindowBuilder_ == null ? bufferWindow_ : bufferWindowBuilder_.build(); } } @@ -534,38 +584,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; @@ -618,30 +669,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) { @@ -651,10 +704,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_); @@ -662,6 +717,8 @@ private void ensureResourceNamesIsMutable() { bitField0_ |= 0x00000001; } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -679,14 +736,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:
      *
@@ -704,12 +763,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:
      *
@@ -727,6 +789,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. */ @@ -734,6 +797,8 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -751,14 +816,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:
      *
@@ -776,13 +843,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; @@ -790,6 +859,8 @@ public Builder setResourceNames( return this; } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -807,12 +878,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; @@ -820,6 +893,8 @@ public Builder addResourceNames( return this; } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      *
@@ -837,19 +912,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:
      *
@@ -867,16 +943,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:
      *
@@ -894,12 +973,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); @@ -910,6 +991,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`.
@@ -919,13 +1002,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; @@ -934,6 +1017,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`.
@@ -943,15 +1028,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 { @@ -959,6 +1043,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`.
@@ -968,18 +1054,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`.
@@ -989,6 +1079,7 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -998,6 +1089,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`.
@@ -1007,12 +1100,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; @@ -1022,8 +1117,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
@@ -1031,13 +1131,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
@@ -1045,17 +1149,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
@@ -1063,7 +1173,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) { @@ -1079,6 +1190,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
@@ -1086,10 +1199,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 { @@ -1100,6 +1213,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
@@ -1107,13 +1222,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; @@ -1126,6 +1242,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
@@ -1133,7 +1251,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); @@ -1146,6 +1265,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
@@ -1153,7 +1274,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; @@ -1161,6 +1283,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
@@ -1168,17 +1292,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
@@ -1186,24 +1314,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); } @@ -1213,12 +1345,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(); } @@ -1227,27 +1359,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; @@ -1262,6 +1394,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 84% 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 a59baa451..26e8a6cdb 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -25,11 +43,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:
    *
@@ -47,10 +67,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:
    *
@@ -68,11 +91,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:
    *
@@ -90,13 +116,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`.
@@ -106,10 +134,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`.
@@ -119,12 +150,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
@@ -132,11 +165,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
@@ -144,11 +181,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
@@ -156,7 +197,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 5085c2090..9b4751658 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,24 +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 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(); @@ -26,107 +44,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.
        * 
@@ -135,6 +171,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
@@ -146,6 +184,8 @@ public enum Reason
        */
       RATE_LIMIT(1),
       /**
+       *
+       *
        * 
        * Indicates suppression occurred due to the client not consuming
        * responses quickly enough.
@@ -158,6 +198,8 @@ public enum Reason
       ;
 
       /**
+       *
+       *
        * 
        * Unexpected default.
        * 
@@ -166,6 +208,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
@@ -177,6 +221,8 @@ public enum Reason
        */
       public static final int RATE_LIMIT_VALUE = 1;
       /**
+       *
+       *
        * 
        * Indicates suppression occurred due to the client not consuming
        * responses quickly enough.
@@ -186,7 +232,6 @@ public enum Reason
        */
       public static final int NOT_CONSUMED_VALUE = 2;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -211,49 +256,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;
@@ -273,37 +320,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 @@ -312,6 +373,7 @@ public int getSuppressedCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -323,9 +385,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) { @@ -340,13 +403,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; @@ -356,16 +419,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; } @@ -387,89 +450,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 @@ -479,39 +547,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(); @@ -522,13 +592,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(); } @@ -543,13 +614,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_; @@ -563,38 +638,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; @@ -602,7 +680,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()); } @@ -635,22 +715,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) { @@ -660,26 +743,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. */ @@ -690,28 +781,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(); } @@ -721,11 +822,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() { @@ -735,13 +839,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 @@ -749,11 +856,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. */ @@ -765,11 +875,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() { @@ -778,6 +891,7 @@ public Builder clearSuppressedCount() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -790,41 +904,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; @@ -836,16 +953,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
@@ -859,6 +979,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
@@ -868,11 +990,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
@@ -886,6 +1010,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
@@ -899,6 +1025,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
@@ -908,15 +1036,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
@@ -925,13 +1056,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
@@ -940,14 +1075,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
@@ -956,13 +1095,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
@@ -971,13 +1113,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
@@ -986,15 +1132,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; @@ -1006,8 +1154,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)); } @@ -1024,12 +1171,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; @@ -1039,17 +1184,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; } @@ -1074,132 +1218,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(); @@ -1222,9 +1370,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 @@ -1243,9 +1391,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; } @@ -1279,38 +1430,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; @@ -1337,9 +1489,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_); } @@ -1363,9 +1516,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_); } @@ -1397,38 +1551,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) { @@ -1438,21 +1593,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
@@ -1469,6 +1631,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
@@ -1485,6 +1649,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
@@ -1501,6 +1667,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
@@ -1509,8 +1677,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();
@@ -1524,6 +1691,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
@@ -1532,8 +1701,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());
@@ -1544,6 +1712,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
@@ -1566,6 +1736,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
@@ -1574,8 +1746,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();
@@ -1589,6 +1760,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
@@ -1597,8 +1770,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());
@@ -1609,6 +1781,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
@@ -1617,8 +1791,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());
@@ -1629,6 +1802,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
@@ -1641,8 +1816,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);
@@ -1650,6 +1824,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
@@ -1669,6 +1845,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
@@ -1688,6 +1866,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
@@ -1696,11 +1876,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
@@ -1709,14 +1890,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
@@ -1725,8 +1908,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 {
@@ -1734,6 +1917,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
@@ -1743,10 +1928,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
@@ -1755,12 +1942,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
@@ -1769,38 +1957,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
@@ -1809,9 +2007,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 { @@ -1819,6 +2020,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 @@ -1827,7 +2030,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) { @@ -1837,6 +2042,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
@@ -1845,9 +2052,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 { @@ -1855,6 +2065,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
@@ -1863,7 +2075,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) { @@ -1880,6 +2094,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
@@ -1888,10 +2104,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()); @@ -1902,6 +2121,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
@@ -1910,9 +2131,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(); @@ -1926,6 +2150,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
@@ -1934,7 +2160,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) { @@ -1951,6 +2179,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
@@ -1959,7 +2189,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) { @@ -1973,6 +2205,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
@@ -1981,10 +2215,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()); @@ -1995,6 +2232,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
@@ -2003,14 +2242,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); @@ -2018,6 +2259,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
@@ -2026,7 +2269,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) { @@ -2039,6 +2284,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
@@ -2047,7 +2294,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) { @@ -2060,6 +2309,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
@@ -2068,13 +2319,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
@@ -2083,16 +2338,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
@@ -2101,10 +2361,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 { @@ -2112,6 +2375,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
@@ -2120,13 +2385,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
@@ -2135,14 +2406,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
@@ -2151,18 +2428,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(), @@ -2171,9 +2456,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); } @@ -2183,12 +2468,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(); } @@ -2197,27 +2482,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; @@ -2232,6 +2517,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 1502fa2ad..26e8c40a9 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
@@ -16,9 +34,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
@@ -29,6 +48,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
@@ -39,6 +60,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
@@ -47,9 +70,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
@@ -58,10 +82,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
@@ -70,11 +95,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
@@ -83,10 +111,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
@@ -95,10 +126,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
@@ -107,11 +141,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
@@ -120,7 +157,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 1051699da..0c34449fe 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -60,7 +82,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 @@ -69,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. The full resource name of the bucket to undelete.
    *
@@ -90,17 +116,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 { @@ -109,6 +136,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,8 +148,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -145,15 +172,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; } @@ -172,132 +199,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(); @@ -307,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_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 @@ -328,8 +359,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; } @@ -345,38 +379,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; @@ -416,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) { @@ -436,10 +473,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.
      *
@@ -453,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; @@ -469,6 +511,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -482,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 { @@ -499,6 +544,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -512,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 full resource name of the bucket to undelete.
      *
@@ -538,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() { @@ -548,6 +604,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The full resource name of the bucket to undelete.
      *
@@ -561,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); } @@ -586,12 +648,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(); } @@ -600,27 +662,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; @@ -635,6 +697,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 deee3fce2..deeec7e1a 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -21,11 +39,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.
    *
@@ -39,9 +62,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 71% 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 1779b3e5d..b757225a9 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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); } 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.
    *
@@ -60,7 +82,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 @@ -69,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. The full resource name of the bucket to update.
    *
@@ -90,17 +116,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 { @@ -111,11 +138,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 @@ -123,11 +153,14 @@ public boolean hasBucket() { return bucket_ != null; } /** + * + * *
    * Required. The updated bucket.
    * 
* * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucket. */ @java.lang.Override @@ -135,6 +168,8 @@ public com.google.logging.v2.LogBucket getBucket() { return bucket_ == null ? com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; } /** + * + * *
    * Required. The updated bucket.
    * 
@@ -149,6 +184,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
@@ -160,7 +197,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 @@ -168,6 +207,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * 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
@@ -179,7 +220,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 @@ -187,6 +230,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
@@ -198,7 +243,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() { @@ -206,6 +252,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,8 +264,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_); } @@ -241,12 +287,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (bucket_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBucket()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBucket()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -256,24 +300,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; @@ -301,132 +343,136 @@ 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() - 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(); @@ -446,9 +492,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 @@ -467,8 +513,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; } @@ -479,14 +528,10 @@ private void buildPartial0(com.google.logging.v2.UpdateBucketRequest result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.bucket_ = bucketBuilder_ == null - ? bucket_ - : bucketBuilder_.build(); + result.bucket_ = bucketBuilder_ == null ? bucket_ : bucketBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -494,38 +539,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; @@ -571,31 +617,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) { @@ -605,10 +651,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.
      *
@@ -622,14 +671,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; @@ -638,6 +689,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to update.
      *
@@ -651,16 +704,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 { @@ -668,6 +722,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to update.
      *
@@ -681,19 +737,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.
      *
@@ -707,7 +769,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() { @@ -717,6 +782,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The full resource name of the bucket to update.
      *
@@ -730,13 +797,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; @@ -746,24 +817,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() { @@ -774,11 +856,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) { @@ -794,14 +879,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 { @@ -812,17 +899,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; @@ -835,11 +925,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); @@ -852,11 +945,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; @@ -864,36 +960,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_; @@ -901,8 +1005,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
@@ -914,13 +1023,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
@@ -932,17 +1045,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
@@ -954,7 +1073,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) { @@ -970,6 +1090,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
@@ -981,10 +1103,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 { @@ -995,6 +1117,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
@@ -1006,13 +1130,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; @@ -1025,6 +1150,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
@@ -1036,7 +1163,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); @@ -1049,6 +1177,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
@@ -1060,7 +1190,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; @@ -1068,6 +1199,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
@@ -1079,17 +1212,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
@@ -1101,24 +1238,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); } @@ -1128,12 +1269,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(); } @@ -1142,27 +1283,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; @@ -1177,6 +1318,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 1fa69edee..ea683252d 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -21,11 +39,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.
    *
@@ -39,31 +62,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.
    * 
@@ -73,6 +106,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
@@ -84,11 +119,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
@@ -100,11 +139,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
@@ -116,7 +159,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 71% 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 697f112e8..d1bd841af 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,9 +1,26 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 package com.google.logging.v2; /** + * + * *
  * The parameters to
  * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
@@ -15,43 +32,48 @@
  *
  * 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);
   }
 
   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.
    *
@@ -70,6 +92,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -78,14 +101,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.
    *
@@ -104,16 +128,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 { @@ -124,6 +147,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.
    *
@@ -132,7 +157,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 @@ -140,6 +168,8 @@ public boolean hasCmekSettings() { return cmekSettings_ != null; } /** + * + * *
    * Required. The CMEK settings to update.
    *
@@ -148,14 +178,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.
    *
@@ -164,16 +201,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
@@ -184,7 +227,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 @@ -192,6 +237,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * 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
@@ -202,7 +249,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 @@ -210,6 +259,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
@@ -220,7 +271,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() { @@ -228,6 +280,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,8 +292,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -263,12 +315,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (cmekSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCmekSettings()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCmekSettings()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -278,24 +328,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; @@ -323,99 +371,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].
@@ -427,33 +480,32 @@ 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()
-    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();
@@ -473,9 +525,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
@@ -494,8 +546,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;
     }
@@ -506,14 +561,11 @@ private void buildPartial0(com.google.logging.v2.UpdateCmekSettingsRequest resul
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.cmekSettings_ = cmekSettingsBuilder_ == null
-            ? cmekSettings_
-            : cmekSettingsBuilder_.build();
+        result.cmekSettings_ =
+            cmekSettingsBuilder_ == null ? cmekSettings_ : cmekSettingsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
     }
 
@@ -521,38 +573,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;
@@ -560,7 +613,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;
@@ -598,31 +652,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) {
@@ -632,10 +686,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.
      *
@@ -654,13 +711,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; @@ -669,6 +726,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -687,15 +746,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 { @@ -703,6 +761,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -721,18 +781,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.
      *
@@ -751,6 +815,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -760,6 +825,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name for the CMEK settings to update.
      *
@@ -778,12 +845,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; @@ -793,8 +862,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.
      *
@@ -803,13 +877,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.
      *
@@ -818,17 +897,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.
      *
@@ -837,7 +923,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) { @@ -853,6 +941,8 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) { return this; } /** + * + * *
      * Required. The CMEK settings to update.
      *
@@ -861,10 +951,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 { @@ -875,6 +966,8 @@ public Builder setCmekSettings( return this; } /** + * + * *
      * Required. The CMEK settings to update.
      *
@@ -883,13 +976,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; @@ -902,6 +997,8 @@ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) { return this; } /** + * + * *
      * Required. The CMEK settings to update.
      *
@@ -910,7 +1007,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); @@ -923,6 +1022,8 @@ public Builder clearCmekSettings() { return this; } /** + * + * *
      * Required. The CMEK settings to update.
      *
@@ -931,7 +1032,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; @@ -939,6 +1042,8 @@ public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() { return getCmekSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The CMEK settings to update.
      *
@@ -947,17 +1052,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.
      *
@@ -966,17 +1076,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_; @@ -984,8 +1099,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
@@ -996,13 +1116,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
@@ -1013,17 +1137,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
@@ -1034,7 +1164,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) { @@ -1050,6 +1181,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
@@ -1060,10 +1193,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 { @@ -1074,6 +1207,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
@@ -1084,13 +1219,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; @@ -1103,6 +1239,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
@@ -1113,7 +1251,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); @@ -1126,6 +1265,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
@@ -1136,7 +1277,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; @@ -1144,6 +1286,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
@@ -1154,17 +1298,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
@@ -1175,24 +1323,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); } @@ -1202,12 +1354,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(); } @@ -1216,27 +1368,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; @@ -1251,6 +1403,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 75% 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 a0ac9baf2..4683952ea 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -26,10 +44,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.
    *
@@ -48,12 +69,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.
    *
@@ -62,11 +85,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.
    *
@@ -75,11 +103,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.
    *
@@ -88,11 +121,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
@@ -103,11 +140,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
@@ -118,11 +159,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
@@ -133,7 +178,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 352e954d5..5b3007e39 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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); } 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:
    *
@@ -60,7 +82,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 @@ -69,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. The resource name of the exclusion to update:
    *
@@ -90,17 +116,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 { @@ -111,12 +138,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 @@ -124,34 +155,47 @@ public boolean hasExclusion() { return exclusion_ != null; } /** + * + * *
    * 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
@@ -163,7 +207,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 @@ -171,6 +217,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * 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
@@ -182,7 +230,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 @@ -190,6 +240,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
@@ -201,7 +253,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() { @@ -209,6 +262,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,8 +274,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -244,12 +297,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (exclusion_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExclusion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -259,24 +310,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; @@ -304,132 +353,136 @@ 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() - 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(); @@ -449,9 +502,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 @@ -470,8 +523,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; } @@ -482,14 +538,10 @@ private void buildPartial0(com.google.logging.v2.UpdateExclusionRequest result) result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.exclusion_ = exclusionBuilder_ == null - ? exclusion_ - : exclusionBuilder_.build(); + result.exclusion_ = exclusionBuilder_ == null ? exclusion_ : exclusionBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -497,38 +549,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; @@ -574,31 +627,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) { @@ -608,10 +661,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the exclusion to update:
      *
@@ -625,14 +681,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; @@ -641,6 +699,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the exclusion to update:
      *
@@ -654,16 +714,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 { @@ -671,6 +732,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the exclusion to update:
      *
@@ -684,19 +747,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:
      *
@@ -710,7 +779,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() { @@ -720,6 +792,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name of the exclusion to update:
      *
@@ -733,13 +807,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; @@ -749,42 +827,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) { @@ -800,15 +897,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 { @@ -819,18 +919,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; @@ -843,12 +947,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); @@ -861,12 +969,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; @@ -874,38 +986,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_; @@ -913,8 +1037,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
@@ -926,13 +1055,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
@@ -944,17 +1077,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
@@ -966,7 +1105,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) { @@ -982,6 +1122,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
@@ -993,10 +1135,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 { @@ -1007,6 +1149,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
@@ -1018,13 +1162,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; @@ -1037,6 +1182,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
@@ -1048,7 +1195,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); @@ -1061,6 +1209,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
@@ -1072,7 +1222,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; @@ -1080,6 +1231,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
@@ -1091,17 +1244,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
@@ -1113,24 +1270,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); } @@ -1140,12 +1301,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(); } @@ -1154,27 +1315,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; @@ -1189,6 +1350,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 74% 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 b73750c99..f28d1f445 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -21,11 +39,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:
    *
@@ -39,43 +62,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
@@ -87,11 +125,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
@@ -103,11 +145,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
@@ -119,7 +165,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 07384cb75..fcc401e35 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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); } 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:
    *
@@ -57,7 +79,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 @@ -66,14 +91,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:
    *
@@ -84,17 +110,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 { @@ -105,11 +132,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 @@ -117,11 +147,14 @@ public boolean hasMetric() { return metric_ != null; } /** + * + * *
    * Required. The updated metric.
    * 
* * .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 updated metric.
    * 
@@ -141,6 +176,7 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -173,8 +208,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); } if (metric_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMetric()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMetric()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -184,19 +218,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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; @@ -220,132 +253,136 @@ 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() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,9 +397,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 @@ -381,8 +418,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; } @@ -393,9 +433,7 @@ private void buildPartial0(com.google.logging.v2.UpdateLogMetricRequest result) result.metricName_ = metricName_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.metric_ = metricBuilder_ == null - ? metric_ - : metricBuilder_.build(); + result.metric_ = metricBuilder_ == null ? metric_ : metricBuilder_.build(); } } @@ -403,38 +441,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; @@ -477,24 +516,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) { @@ -504,10 +544,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object metricName_ = ""; /** + * + * *
      * Required. The resource name of the metric to update:
      *
@@ -518,14 +561,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; @@ -534,6 +579,8 @@ public java.lang.String getMetricName() { } } /** + * + * *
      * Required. The resource name of the metric to update:
      *
@@ -544,16 +591,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 { @@ -561,6 +609,8 @@ public java.lang.String getMetricName() { } } /** + * + * *
      * Required. The resource name of the metric to update:
      *
@@ -571,19 +621,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:
      *
@@ -594,7 +650,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() { @@ -604,6 +663,8 @@ public Builder clearMetricName() { return this; } /** + * + * *
      * Required. The resource name of the metric to update:
      *
@@ -614,13 +675,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; @@ -630,24 +695,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() { @@ -658,11 +734,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) { @@ -678,14 +757,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 { @@ -696,17 +777,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; @@ -719,11 +803,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); @@ -736,11 +823,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; @@ -748,43 +838,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); } @@ -794,12 +892,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(); } @@ -808,27 +906,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; @@ -843,6 +941,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 d10923d64..82dff0ca4 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
    *
@@ -18,11 +36,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:
    *
@@ -33,31 +56,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 73% 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 4727fa160..2555b3039 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,9 +1,26 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 package com.google.logging.v2; /** + * + * *
  * The parameters to
  * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings].
@@ -15,43 +32,48 @@
  *
  * 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);
   }
 
   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.
    *
@@ -67,6 +89,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -75,14 +98,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for the settings to update.
    *
@@ -98,16 +122,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 { @@ -118,6 +141,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.
    *
@@ -126,7 +151,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 @@ -134,6 +161,8 @@ public boolean hasSettings() { return settings_ != null; } /** + * + * *
    * Required. The settings to update.
    *
@@ -142,7 +171,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 @@ -150,6 +181,8 @@ public com.google.logging.v2.Settings getSettings() { return settings_ == null ? com.google.logging.v2.Settings.getDefaultInstance() : settings_; } /** + * + * *
    * Required. The settings to update.
    *
@@ -158,7 +191,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() { @@ -168,6 +202,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
@@ -178,7 +214,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 @@ -186,6 +224,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * 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
@@ -196,7 +236,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 @@ -204,6 +246,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
@@ -214,7 +258,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() { @@ -222,6 +267,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +279,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -257,12 +302,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (settings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSettings()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSettings()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -272,24 +315,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; @@ -317,99 +358,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].
@@ -421,33 +467,32 @@ 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()
-    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();
@@ -467,9 +512,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
@@ -488,8 +533,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;
     }
@@ -500,14 +548,10 @@ private void buildPartial0(com.google.logging.v2.UpdateSettingsRequest result) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.settings_ = settingsBuilder_ == null
-            ? settings_
-            : settingsBuilder_.build();
+        result.settings_ = settingsBuilder_ == null ? settings_ : settingsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateMask_ = updateMaskBuilder_ == null
-            ? updateMask_
-            : updateMaskBuilder_.build();
+        result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build();
       }
     }
 
@@ -515,38 +559,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;
@@ -592,31 +637,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) {
@@ -626,10 +671,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for the settings to update.
      *
@@ -645,13 +693,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; @@ -660,6 +708,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the settings to update.
      *
@@ -675,15 +725,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 { @@ -691,6 +740,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the settings to update.
      *
@@ -706,18 +757,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.
      *
@@ -733,6 +788,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -742,6 +798,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name for the settings to update.
      *
@@ -757,12 +815,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; @@ -772,8 +832,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.
      *
@@ -782,13 +847,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.
      *
@@ -797,7 +866,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() { @@ -808,6 +879,8 @@ public com.google.logging.v2.Settings getSettings() { } } /** + * + * *
      * Required. The settings to update.
      *
@@ -816,7 +889,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) { @@ -832,6 +906,8 @@ public Builder setSettings(com.google.logging.v2.Settings value) { return this; } /** + * + * *
      * Required. The settings to update.
      *
@@ -840,10 +916,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 { @@ -854,6 +930,8 @@ public Builder setSettings( return this; } /** + * + * *
      * Required. The settings to update.
      *
@@ -862,13 +940,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; @@ -881,6 +960,8 @@ public Builder mergeSettings(com.google.logging.v2.Settings value) { return this; } /** + * + * *
      * Required. The settings to update.
      *
@@ -889,7 +970,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); @@ -902,6 +984,8 @@ public Builder clearSettings() { return this; } /** + * + * *
      * Required. The settings to update.
      *
@@ -910,7 +994,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; @@ -918,6 +1003,8 @@ public com.google.logging.v2.Settings.Builder getSettingsBuilder() { return getSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The settings to update.
      *
@@ -926,17 +1013,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.
      *
@@ -945,17 +1034,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_; @@ -963,8 +1056,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
@@ -975,13 +1073,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
@@ -992,17 +1094,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
@@ -1013,7 +1121,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) { @@ -1029,6 +1138,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
@@ -1039,10 +1150,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 { @@ -1053,6 +1164,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
@@ -1063,13 +1176,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; @@ -1082,6 +1196,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
@@ -1092,7 +1208,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); @@ -1105,6 +1222,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
@@ -1115,7 +1234,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; @@ -1123,6 +1243,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
@@ -1133,17 +1255,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
@@ -1154,24 +1280,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); } @@ -1181,12 +1311,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(); } @@ -1195,27 +1325,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; @@ -1230,6 +1360,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 2e6294c74..0ebe19476 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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.
    *
@@ -23,10 +41,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.
    *
@@ -42,12 +63,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.
    *
@@ -56,11 +79,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.
    *
@@ -69,11 +96,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.
    *
@@ -82,11 +113,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
@@ -97,11 +131,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
@@ -112,11 +150,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
@@ -127,7 +169,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 76% 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 9863c5c7f..1b4819de8 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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); } 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:
@@ -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 full resource name of the sink to update, including the
    * parent resource and the sink identifier:
@@ -92,17 +118,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 { @@ -113,12 +140,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 @@ -126,12 +156,15 @@ public boolean hasSink() { return sink_ != null; } /** + * + * *
    * 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 @@ -139,6 +172,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`.
@@ -154,6 +189,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
@@ -169,6 +206,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -179,6 +217,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
@@ -198,7 +238,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 @@ -206,6 +248,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * 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
@@ -225,7 +269,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 @@ -233,6 +279,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
@@ -252,7 +300,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() { @@ -260,6 +309,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,8 +321,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_); } @@ -298,16 +347,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sinkName_); } if (sink_ != null) { - 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 (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -317,26 +363,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; @@ -356,8 +398,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(); @@ -367,132 +408,136 @@ 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() - 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(); @@ -513,9 +558,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 @@ -534,8 +579,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; } @@ -546,17 +594,13 @@ private void buildPartial0(com.google.logging.v2.UpdateSinkRequest result) { result.sinkName_ = sinkName_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.sink_ = sinkBuilder_ == null - ? sink_ - : sinkBuilder_.build(); + result.sink_ = sinkBuilder_ == null ? sink_ : sinkBuilder_.build(); } 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(); } } @@ -564,38 +608,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; @@ -644,36 +689,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) { @@ -683,10 +729,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:
@@ -701,14 +750,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; @@ -717,6 +768,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -731,16 +784,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 { @@ -748,6 +802,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -762,19 +818,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:
@@ -789,7 +851,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() { @@ -799,6 +864,8 @@ public Builder clearSinkName() { return this; } /** + * + * *
      * Required. The full resource name of the sink to update, including the
      * parent resource and the sink identifier:
@@ -813,13 +880,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; @@ -829,26 +900,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() { @@ -859,6 +939,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`.
@@ -880,6 +962,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`.
@@ -887,8 +971,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 {
@@ -899,6 +982,8 @@ public Builder setSink(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -908,9 +993,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;
@@ -923,6 +1008,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`.
@@ -941,6 +1028,8 @@ public Builder clearSink() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears
      * as part of `sink_name`.
@@ -954,6 +1043,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`.
@@ -965,11 +1056,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`.
@@ -978,21 +1070,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
@@ -1008,6 +1105,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -1015,6 +1113,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
@@ -1030,6 +1130,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. */ @@ -1041,6 +1142,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
@@ -1056,6 +1159,7 @@ public Builder setUniqueWriterIdentity(boolean value) {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUniqueWriterIdentity() { @@ -1067,8 +1171,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
@@ -1088,13 +1197,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
@@ -1114,17 +1227,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
@@ -1144,7 +1263,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) { @@ -1160,6 +1280,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
@@ -1179,10 +1301,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 { @@ -1193,6 +1315,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
@@ -1212,13 +1336,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; @@ -1231,6 +1356,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
@@ -1250,7 +1377,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); @@ -1263,6 +1391,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
@@ -1282,7 +1412,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; @@ -1290,6 +1421,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
@@ -1309,17 +1442,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
@@ -1339,24 +1476,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); } @@ -1366,12 +1507,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(); } @@ -1380,27 +1521,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; @@ -1415,6 +1556,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 9569d5787..8b5966131 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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:
@@ -22,11 +40,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:
@@ -41,33 +64,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`.
@@ -78,6 +111,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
@@ -93,11 +128,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
@@ -117,11 +155,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
@@ -141,11 +183,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
@@ -165,7 +211,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 73% 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 29eade357..708b4d567 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,52 +1,74 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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); } 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
    *
@@ -58,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -66,14 +89,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The full resource name of the view to update
    *
@@ -85,16 +109,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,11 +128,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 @@ -117,11 +143,14 @@ public boolean hasView() { return view_ != null; } /** + * + * *
    * Required. The updated view.
    * 
* * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The view. */ @java.lang.Override @@ -129,6 +158,8 @@ public com.google.logging.v2.LogView getView() { return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; } /** + * + * *
    * Required. The updated view.
    * 
@@ -143,6 +174,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
@@ -154,7 +187,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 @@ -162,6 +197,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Field mask that specifies the fields in `view` that need
    * an update. A field will be overwritten if, and only if, it is
@@ -173,7 +210,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 @@ -181,6 +220,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
@@ -192,7 +233,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() { @@ -200,6 +242,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +254,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -235,12 +277,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (view_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getView()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getView()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateMask()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -250,24 +290,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; @@ -295,132 +332,136 @@ 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() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +481,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 @@ -461,8 +502,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; } @@ -473,14 +517,10 @@ private void buildPartial0(com.google.logging.v2.UpdateViewRequest result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.view_ = viewBuilder_ == null - ? view_ - : viewBuilder_.build(); + result.view_ = viewBuilder_ == null ? view_ : viewBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } } @@ -488,38 +528,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; @@ -565,31 +606,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) { @@ -599,10 +640,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
      *
@@ -614,13 +658,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; @@ -629,6 +673,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the view to update
      *
@@ -640,15 +686,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 { @@ -656,6 +701,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the view to update
      *
@@ -667,18 +714,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
      *
@@ -690,6 +741,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -699,6 +751,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The full resource name of the view to update
      *
@@ -710,12 +764,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -725,24 +781,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() { @@ -753,6 +818,8 @@ public com.google.logging.v2.LogView getView() { } } /** + * + * *
      * Required. The updated view.
      * 
@@ -773,14 +840,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 { @@ -791,6 +859,8 @@ public Builder setView( return this; } /** + * + * *
      * Required. The updated view.
      * 
@@ -799,9 +869,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; @@ -814,6 +884,8 @@ public Builder mergeView(com.google.logging.v2.LogView value) { return this; } /** + * + * *
      * Required. The updated view.
      * 
@@ -831,6 +903,8 @@ public Builder clearView() { return this; } /** + * + * *
      * Required. The updated view.
      * 
@@ -843,6 +917,8 @@ public com.google.logging.v2.LogView.Builder getViewBuilder() { return getViewFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated view.
      * 
@@ -853,11 +929,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.
      * 
@@ -865,14 +942,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_; @@ -880,8 +960,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
@@ -893,13 +978,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
@@ -911,17 +1000,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
@@ -933,7 +1028,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) { @@ -949,6 +1045,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
@@ -960,10 +1058,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 { @@ -974,6 +1072,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
@@ -985,13 +1085,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; @@ -1004,6 +1105,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
@@ -1015,7 +1118,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); @@ -1028,6 +1132,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
@@ -1039,7 +1145,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; @@ -1047,6 +1154,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
@@ -1058,17 +1167,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
@@ -1080,24 +1193,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); } @@ -1107,12 +1224,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(); } @@ -1121,27 +1238,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; @@ -1156,6 +1273,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 fd470d4d2..4edf6cf25 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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
    *
@@ -19,10 +37,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
    *
@@ -34,30 +55,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.
    * 
@@ -67,6 +96,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
@@ -78,11 +109,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
@@ -94,11 +129,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
@@ -110,7 +149,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 3434230da..5fd8cec7b 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,86 +1,109 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { 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
@@ -93,20 +116,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
@@ -123,6 +145,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
@@ -135,17 +159,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
@@ -158,8 +183,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();
@@ -170,6 +194,7 @@ public com.google.rpc.Status getLogEntryErrorsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -181,14 +206,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);
   }
 
@@ -198,15 +218,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;
@@ -216,15 +236,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;
   }
@@ -246,153 +266,155 @@ 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"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { 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.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { 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(); @@ -402,9 +424,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 @@ -423,8 +445,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; } @@ -441,38 +466,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 +506,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 +536,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.MapEntry - logEntryErrors__ = input.readMessage( - LogEntryErrorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLogEntryErrors().getMutableMap().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() + .getMutableMap() + .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,10 +565,11 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - 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() { if (logEntryErrors_ == null) { @@ -546,11 +578,12 @@ public Builder mergeFrom( } return logEntryErrors_; } + private com.google.protobuf.MapField internalGetMutableLogEntryErrors() { if (logEntryErrors_ == null) { - logEntryErrors_ = com.google.protobuf.MapField.newMapField( - LogEntryErrorsDefaultEntryHolder.defaultEntry); + logEntryErrors_ = + com.google.protobuf.MapField.newMapField(LogEntryErrorsDefaultEntryHolder.defaultEntry); } if (!logEntryErrors_.isMutable()) { logEntryErrors_ = logEntryErrors_.copy(); @@ -559,10 +592,13 @@ public Builder mergeFrom( onChanged(); 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
@@ -575,20 +611,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
@@ -605,6 +640,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
@@ -617,17 +654,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
@@ -640,8 +678,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();
@@ -650,13 +687,15 @@ public com.google.rpc.Status getLogEntryErrorsOrThrow(
       }
       return map.get(key);
     }
+
     public Builder clearLogEntryErrors() {
       bitField0_ = (bitField0_ & ~0x00000001);
-      internalGetMutableLogEntryErrors().getMutableMap()
-          .clear();
+      internalGetMutableLogEntryErrors().getMutableMap().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
@@ -668,23 +707,20 @@ public Builder clearLogEntryErrors() {
      *
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
-    public Builder removeLogEntryErrors(
-        int key) {
+    public Builder removeLogEntryErrors(int key) {
 
-      internalGetMutableLogEntryErrors().getMutableMap()
-          .remove(key);
+      internalGetMutableLogEntryErrors().getMutableMap().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().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -696,17 +732,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().getMutableMap()
-          .put(key, value);
+      if (value == null) {
+        throw new NullPointerException("map value");
+      }
+      internalGetMutableLogEntryErrors().getMutableMap().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
@@ -720,14 +757,13 @@ public Builder putLogEntryErrors(
      */
     public Builder putAllLogEntryErrors(
         java.util.Map values) {
-      internalGetMutableLogEntryErrors().getMutableMap()
-          .putAll(values);
+      internalGetMutableLogEntryErrors().getMutableMap().putAll(values);
       bitField0_ |= 0x00000001;
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -737,12 +773,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();
   }
@@ -751,27 +787,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;
@@ -786,6 +822,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 69%
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 6035ebfe4..f6478cf19 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,13 +1,31 @@
+/*
+ * Copyright 2024 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See 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
 
 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
@@ -21,6 +39,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
@@ -32,15 +52,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
@@ -52,9 +70,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
@@ -67,11 +86,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
@@ -83,6 +104,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 1f7ab845e..6b2779225 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,24 +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
 
 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(); @@ -26,40 +44,43 @@ 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"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { 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); } 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`:
@@ -80,7 +101,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    * 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 @@ -89,14 +113,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`:
@@ -117,17 +142,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 { @@ -138,6 +164,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:
@@ -149,7 +177,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 @@ -157,6 +187,8 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Optional. A default monitored resource object that is assigned to all log
    * entries in `entries` that do not specify a value for `resource`. Example:
@@ -168,7 +200,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 @@ -176,6 +210,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:
@@ -187,7 +223,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() { @@ -195,32 +232,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
@@ -231,20 +270,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
@@ -259,6 +299,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
@@ -269,17 +311,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
@@ -290,11 +334,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();
     }
@@ -302,9 +346,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
@@ -332,13 +379,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
@@ -366,14 +417,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
@@ -401,13 +456,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
@@ -435,13 +494,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
@@ -469,17 +532,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
@@ -491,6 +557,7 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The partialSuccess. */ @java.lang.Override @@ -501,6 +568,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
@@ -508,6 +577,7 @@ public boolean getPartialSuccess() {
    * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dryRun. */ @java.lang.Override @@ -516,6 +586,7 @@ public boolean getDryRun() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -527,20 +598,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 (resource_ != null) { 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)); } @@ -563,30 +629,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, logName_); } if (resource_ != null) { - 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; @@ -596,28 +658,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; } @@ -644,164 +701,164 @@ 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"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { 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.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { 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() - 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(); @@ -826,9 +883,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 @@ -847,9 +904,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; } @@ -872,9 +932,7 @@ private void buildPartial0(com.google.logging.v2.WriteLogEntriesRequest result) result.logName_ = logName_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.resource_ = resourceBuilder_ == null - ? resource_ - : resourceBuilder_.build(); + result.resource_ = resourceBuilder_ == null ? resource_ : resourceBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.labels_ = internalGetLabels(); @@ -892,38 +950,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; @@ -940,8 +999,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()) { @@ -961,9 +1019,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_); } @@ -1001,56 +1060,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) { @@ -1060,10 +1124,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`:
@@ -1084,14 +1151,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; @@ -1100,6 +1169,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`:
@@ -1120,16 +1191,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 { @@ -1137,6 +1209,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`:
@@ -1157,19 +1231,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`:
@@ -1190,7 +1270,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() { @@ -1200,6 +1283,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`:
@@ -1220,13 +1305,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; @@ -1236,8 +1325,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:
@@ -1249,13 +1343,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:
@@ -1267,17 +1365,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:
@@ -1289,7 +1393,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) { @@ -1305,6 +1410,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:
@@ -1316,10 +1423,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 { @@ -1330,6 +1437,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:
@@ -1341,13 +1450,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; @@ -1360,6 +1470,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:
@@ -1371,7 +1483,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); @@ -1384,6 +1497,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:
@@ -1395,7 +1510,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; @@ -1403,6 +1519,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:
@@ -1414,17 +1532,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:
@@ -1436,37 +1558,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(); @@ -1475,10 +1599,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
@@ -1489,20 +1616,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
@@ -1517,6 +1645,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
@@ -1527,17 +1657,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
@@ -1548,23 +1680,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
@@ -1574,23 +1708,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
@@ -1600,17 +1733,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
@@ -1620,27 +1756,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
@@ -1668,7 +1808,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) { @@ -1678,6 +1820,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
@@ -1705,7 +1849,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) { @@ -1715,6 +1861,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
@@ -1742,7 +1890,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) { @@ -1752,6 +1902,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
@@ -1779,10 +1931,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(); @@ -1796,6 +1949,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
@@ -1823,10 +1978,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()); @@ -1837,6 +1993,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
@@ -1864,7 +2022,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) { @@ -1880,6 +2040,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
@@ -1907,10 +2069,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(); @@ -1924,6 +2087,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
@@ -1951,10 +2116,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()); @@ -1965,6 +2131,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
@@ -1992,10 +2160,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()); @@ -2006,6 +2175,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
@@ -2033,14 +2204,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); @@ -2048,6 +2220,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
@@ -2075,7 +2249,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) { @@ -2088,6 +2264,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
@@ -2115,7 +2293,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) { @@ -2128,6 +2308,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
@@ -2155,13 +2337,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
@@ -2189,16 +2374,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
@@ -2226,10 +2415,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 { @@ -2237,6 +2428,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
@@ -2264,13 +2457,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
@@ -2298,14 +2495,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
@@ -2333,29 +2533,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
@@ -2367,6 +2573,7 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The partialSuccess. */ @java.lang.Override @@ -2374,6 +2581,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
@@ -2385,6 +2594,7 @@ public boolean getPartialSuccess() {
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The partialSuccess to set. * @return This builder for chaining. */ @@ -2396,6 +2606,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
@@ -2407,6 +2619,7 @@ public Builder setPartialSuccess(boolean value) {
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPartialSuccess() { @@ -2416,8 +2629,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
@@ -2425,6 +2640,7 @@ public Builder clearPartialSuccess() {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dryRun. */ @java.lang.Override @@ -2432,6 +2648,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
@@ -2439,6 +2657,7 @@ public boolean getDryRun() {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The dryRun to set. * @return This builder for chaining. */ @@ -2450,6 +2669,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
@@ -2457,6 +2678,7 @@ public Builder setDryRun(boolean value) {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDryRun() { @@ -2465,9 +2687,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); } @@ -2477,12 +2699,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(); } @@ -2491,27 +2713,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; @@ -2526,6 +2748,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 e7873f958..c9c827188 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,13 +1,31 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 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`:
@@ -28,11 +46,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`:
@@ -53,13 +76,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:
@@ -71,11 +98,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:
@@ -87,11 +118,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:
@@ -103,11 +138,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
@@ -119,6 +157,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
@@ -128,15 +168,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
@@ -146,9 +184,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
@@ -159,11 +198,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
@@ -173,10 +214,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
@@ -204,11 +246,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
@@ -236,10 +281,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
@@ -267,10 +316,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
@@ -298,11 +351,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
@@ -330,12 +386,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
@@ -347,11 +406,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
@@ -359,6 +421,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 5d51014a7..a47ea7d2f 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,48 +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.proto 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; @@ -54,8 +73,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); } @@ -73,12 +91,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; @@ -96,132 +115,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(); @@ -229,9 +252,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 @@ -250,7 +273,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; } @@ -259,38 +283,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; @@ -325,12 +350,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) { @@ -340,9 +366,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); } @@ -352,12 +378,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(); } @@ -366,27 +392,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; @@ -401,6 +427,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..f7314ad33 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 + +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